Interface BotSession
-
public interface BotSession
- Version:
- 1.0 Bot session interface
- Author:
- Ruben Bermudez
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isRunning()
Check if the bot is runningvoid
setCallback(LongPollingBot callback)
void
setOptions(BotOptions options)
void
setToken(String token)
void
start()
Starts the botvoid
stop()
Stops the bot
-
-
-
Method Detail
-
setOptions
void setOptions(BotOptions options)
-
setToken
void setToken(String token)
-
setCallback
void setCallback(LongPollingBot callback)
-
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
-
-