public class StandaloneTelegramBot extends Object
| Modifier and Type | Field and Description |
|---|---|
static String[] |
DEFAULT_ALLOWED_UPDATE_TYPE |
static int |
DEFAULT_GET_UPDATES_LIMIT |
static int |
DEFAULT_GET_UPDATES_TIMEOUT_IN_SEC |
| Constructor and Description |
|---|
StandaloneTelegramBot(String apiToken,
UpdateHandler updateHander) |
| Modifier and Type | Method and Description |
|---|---|
StandaloneTelegramBot |
setAllowedUpdateTypes(String... allowedUpdates) |
StandaloneTelegramBot |
setBotSessionStore(BotSessionStore sessionStore) |
StandaloneTelegramBot |
setGetUpdatesLimit(Integer limit) |
StandaloneTelegramBot |
setGetUpdatesTimeoutInSec(Integer timeout) |
void |
start() |
void |
stop() |
public static final int DEFAULT_GET_UPDATES_LIMIT
public static final int DEFAULT_GET_UPDATES_TIMEOUT_IN_SEC
public static final String[] DEFAULT_ALLOWED_UPDATE_TYPE
public StandaloneTelegramBot(String apiToken, UpdateHandler updateHander)
public void start()
public StandaloneTelegramBot setBotSessionStore(BotSessionStore sessionStore)
public StandaloneTelegramBot setGetUpdatesLimit(Integer limit)
public StandaloneTelegramBot setGetUpdatesTimeoutInSec(Integer timeout)
public StandaloneTelegramBot setAllowedUpdateTypes(String... allowedUpdates)
public void stop()
Copyright © 2017 iSuper.org. All Rights Reserved.