public abstract class TelegramBot extends java.lang.Object implements java.lang.Runnable, UpdateHandler
| Modifier and Type | Field and Description |
|---|---|
protected Bot |
bot
Bot that receives updates.
|
protected EventRegistry |
events
Utility field that handles events.
|
| Constructor and Description |
|---|
TelegramBot(Bot bot) |
| Modifier and Type | Method and Description |
|---|---|
void |
onUpdate(Update update)
Handles an incoming update.
|
protected final Bot bot
protected final EventRegistry events
public TelegramBot(Bot bot)
public void onUpdate(Update update) throws java.lang.Throwable
UpdateHandleronUpdate in interface UpdateHandlerupdate - new incoming updatejava.lang.Throwable - if a throwable is thrown