Interface BotUpdatesPoller
-
- All Known Implementing Classes:
DefaultBotUpdatesPoller
public interface BotUpdatesPoller
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
running()
Check if the bot poller is runningvoid
setExceptionHandler(ExceptionHandler exceptionHandler)
void
setHandler(LongPollingHandler handler)
void
setUpdatesSupplier(UpdatesSupplier supplier)
void
start()
Starts the bot pollervoid
stop()
Stops the bot poller
-
-
-
Method Detail
-
setHandler
void setHandler(LongPollingHandler handler)
-
setUpdatesSupplier
void setUpdatesSupplier(UpdatesSupplier supplier)
-
setExceptionHandler
void setExceptionHandler(ExceptionHandler exceptionHandler)
-
start
void start()
Starts the bot poller
-
stop
void stop()
Stops the bot poller
-
running
boolean running()
Check if the bot poller is running- Returns:
- True if the bot is running
-
-