Package org.telegram.telegrambots.bots
Class DefaultBotOptions
java.lang.Object
org.telegram.telegrambots.bots.DefaultBotOptions
- All Implemented Interfaces:
BotOptions
- Version:
- 1.0
- Author:
- Ruben Bermudez
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
org.apache.http.protocol.HttpContext
int
int
org.apache.http.client.config.RequestConfig
void
setAllowedUpdates
(List<String> allowedUpdates) void
setBackOff
(BackOff BackOff) void
setBaseUrl
(String baseUrl) void
setGetUpdatesLimit
(int getUpdatesLimit) void
setGetUpdatesTimeout
(int getUpdatesTimeout) void
setHttpContext
(org.apache.http.protocol.HttpContext httpContext) void
setMaxThreads
(int maxThreads) void
setMaxWebhookConnections
(Integer maxWebhookConnections) void
setProxyHost
(String proxyHost) void
setProxyPort
(int proxyPort) void
setProxyType
(DefaultBotOptions.ProxyType proxyType) void
setRequestConfig
(org.apache.http.client.config.RequestConfig requestConfig)
-
Constructor Details
-
DefaultBotOptions
public DefaultBotOptions()
-
-
Method Details
-
getBaseUrl
- Specified by:
getBaseUrl
in interfaceBotOptions
-
setBaseUrl
-
setMaxThreads
public void setMaxThreads(int maxThreads) -
getMaxThreads
public int getMaxThreads() -
getRequestConfig
public org.apache.http.client.config.RequestConfig getRequestConfig() -
getMaxWebhookConnections
-
getHttpContext
public org.apache.http.protocol.HttpContext getHttpContext() -
setHttpContext
public void setHttpContext(org.apache.http.protocol.HttpContext httpContext) -
setMaxWebhookConnections
-
getAllowedUpdates
-
setAllowedUpdates
-
setRequestConfig
public void setRequestConfig(org.apache.http.client.config.RequestConfig requestConfig) - Parameters:
requestConfig
- Request config to be used in all Http requests
-
getBackOff
-
setBackOff
- Parameters:
BackOff
- backOff to be used when long polling fails
-
getProxyType
-
setProxyType
-
getProxyHost
-
setProxyHost
-
getProxyPort
public int getProxyPort() -
setProxyPort
public void setProxyPort(int proxyPort) -
getGetUpdatesTimeout
public int getGetUpdatesTimeout() -
setGetUpdatesTimeout
public void setGetUpdatesTimeout(int getUpdatesTimeout) -
getGetUpdatesLimit
public int getGetUpdatesLimit() -
setGetUpdatesLimit
public void setGetUpdatesLimit(int getUpdatesLimit)
-