Interface BotSession
public interface BotSession
- Version:
- 1.0 Bot session interface
- Author:
- Ruben Bermudez
-
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if the bot is runningvoidsetCallback(LongPollingBot callback) voidsetOptions(BotOptions options) voidvoidstart()Starts the botvoidstop()Stops the bot
-
Method Details
-
setOptions
-
setToken
-
setCallback
-
start
void start()Starts the bot -
stop
void stop()Stops the bot -
isRunning
boolean isRunning()Check if the bot is running- Returns:
- True if the bot is running, false otherwise
-