Class DefaultBotUpdatesPoller
- java.lang.Object
-
- com.cadiducho.telegrambotapi.handlers.DefaultBotUpdatesPoller
-
- All Implemented Interfaces:
BotUpdatesPoller
public class DefaultBotUpdatesPoller extends Object implements BotUpdatesPoller
-
-
Constructor Summary
Constructors Constructor Description DefaultBotUpdatesPoller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
running()
Check if the bot poller is runningvoid
start()
Starts the bot pollervoid
stop()
Stops the bot poller-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.cadiducho.telegrambotapi.handlers.BotUpdatesPoller
setExceptionHandler, setHandler, setUpdatesSupplier
-
-
-
-
Method Detail
-
start
public void start()
Description copied from interface:BotUpdatesPoller
Starts the bot poller- Specified by:
start
in interfaceBotUpdatesPoller
-
stop
public void stop()
Description copied from interface:BotUpdatesPoller
Stops the bot poller- Specified by:
stop
in interfaceBotUpdatesPoller
-
running
public boolean running()
Description copied from interface:BotUpdatesPoller
Check if the bot poller is running- Specified by:
running
in interfaceBotUpdatesPoller
- Returns:
- True if the bot is running
-
-