Class DefaultBotSession
- java.lang.Object
-
- org.telegram.telegrambots.updatesreceivers.DefaultBotSession
-
- All Implemented Interfaces:
BotSession
public class DefaultBotSession extends Object implements BotSession
- Version:
- 1.0 Thread to request updates with active wait
- Author:
- Ruben Bermudez
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDefaultBotSession.UpdatesSupplier
-
Constructor Summary
Constructors Constructor Description DefaultBotSession()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisRunning()voidsetCallback(LongPollingBot callback)voidsetOptions(BotOptions options)voidsetToken(String token)voidsetUpdatesSupplier(DefaultBotSession.UpdatesSupplier updatesSupplier)voidstart()voidstop()
-
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceBotSession
-
stop
public void stop()
- Specified by:
stopin interfaceBotSession
-
setUpdatesSupplier
public void setUpdatesSupplier(DefaultBotSession.UpdatesSupplier updatesSupplier)
-
setOptions
public void setOptions(BotOptions options)
- Specified by:
setOptionsin interfaceBotSession
-
setToken
public void setToken(String token)
- Specified by:
setTokenin interfaceBotSession
-
setCallback
public void setCallback(LongPollingBot callback)
- Specified by:
setCallbackin interfaceBotSession
-
isRunning
public boolean isRunning()
- Specified by:
isRunningin interfaceBotSession
-
-