Class DefaultBotSession
java.lang.Object
org.telegram.telegrambots.updatesreceivers.DefaultBotSession
- All Implemented Interfaces:
BotSession
- Version:
- 1.0 Thread to request updates with active wait
- Author:
- Ruben Bermudez
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetCallback(LongPollingBot callback) voidsetOptions(BotOptions options) voidvoidsetUpdatesSupplier(DefaultBotSession.UpdatesSupplier updatesSupplier) voidstart()voidstop()
-
Constructor Details
-
DefaultBotSession
public DefaultBotSession()
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceBotSession
-
stop
public void stop()- Specified by:
stopin interfaceBotSession
-
setUpdatesSupplier
-
setOptions
- Specified by:
setOptionsin interfaceBotSession
-
setToken
- Specified by:
setTokenin interfaceBotSession
-
setCallback
- Specified by:
setCallbackin interfaceBotSession
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceBotSession
-