Interface WebhookBot
- All Superinterfaces:
TelegramBot
- Version:
- 1.0 Callback to handle updates.
- Author:
- Ruben Bermudez
-
Method Summary
Modifier and TypeMethodDescriptionGets in the url for the webhookBotApiMethod<?>
onWebhookUpdateReceived
(Update update) This method is called when receiving updates via webhookvoid
setWebhook
(SetWebhook setWebhook) Execute setWebhook method to set up the url of the webhookMethods inherited from interface org.telegram.telegrambots.meta.generics.TelegramBot
getBotToken, getBotUsername, onRegister
-
Method Details
-
onWebhookUpdateReceived
This method is called when receiving updates via webhook- Parameters:
update
- Update received
-
setWebhook
Execute setWebhook method to set up the url of the webhook- Throws:
TelegramApiRequestException
- In case of error executing the requestTelegramApiException
-
getBotPath
String getBotPath()Gets in the url for the webhook- Returns:
- path in the url
-