public interface LongPollingBot
| Modifier and Type | Method and Description |
|---|---|
void |
clearWebhook()
Clear current webhook (if present) calling setWebhook method with empty url.
|
String |
getBotToken()
Return bot token to access Telegram API
|
String |
getBotUsername()
Return bot username of this bot
|
BotOptions |
getOptions()
Gets options for current bot
|
default void |
onClosing()
Called when the BotSession is being closed
|
void |
onUpdateReceived(Update update)
This method is called when receiving updates via GetUpdates method
|
void onUpdateReceived(Update update)
update - Update receivedString getBotUsername()
String getBotToken()
BotOptions getOptions()
void clearWebhook()
throws TelegramApiRequestException
TelegramApiRequestExceptiondefault void onClosing()
Copyright © 2016. All rights reserved.