public abstract class UpdateManager extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
running |
| Modifier | Constructor and Description |
|---|---|
protected |
UpdateManager(TelegramBot telegramBot) |
| Modifier and Type | Method and Description |
|---|---|
TelegramBot |
getBotInstance()
Gets the TelegramBot instance that this UpdateManager is responsible for
|
boolean |
isRunning()
Gets whether the UpdateManager is currently running
|
abstract boolean |
startUpdates()
Use this to start the UpdateManager and begin receiving Updates
|
abstract void |
stopUpdates()
Use this to stop the UpdateManager from running
|
protected UpdateManager(TelegramBot telegramBot)
public TelegramBot getBotInstance()
public abstract void stopUpdates()
public abstract boolean startUpdates()
public boolean isRunning()
Copyright © 2017. All rights reserved.