public interface BotSession
| Modifier and Type | Method and Description |
|---|---|
default void |
close()
Deprecated.
Use @link{
stop()} instead |
boolean |
isRunning()
Check if the bot is running
|
void |
setCallback(LongPollingBot callback) |
void |
setOptions(BotOptions options) |
void |
setToken(String token) |
void |
start()
Starts the bot
|
void |
stop()
Stops the bot
|
void setOptions(BotOptions options)
void setToken(String token)
void setCallback(LongPollingBot callback)
void start()
void stop()
boolean isRunning()
default void close()
stop()} insteadCopyright © 2017. All rights reserved.