- All Superinterfaces:
TelegramBot
- Version:
- 1.0
- Author:
- Ruben Bermudez
-
Method Summary
void
Clear current webhook (if present) calling setWebhook method with empty url.
Gets options for current bot
default void
Called when the BotSession is being closed
void
This method is called when receiving updates via GetUpdates method
default void
This method is called when receiving updates via GetUpdates method.
-
Method Details
-
-
onUpdatesReceived
default void onUpdatesReceived(List<Update> updates)
This method is called when receiving updates via GetUpdates method.
If not reimplemented - it just sends updates by one into
onUpdateReceived(Update)
- Parameters:
updates
- list of Update received
-
getOptions
Gets options for current bot
- Returns:
- BotOptions object with options information
-
-
onClosing
default void onClosing()
Called when the BotSession is being closed