Interface WebhookBot
-
- All Superinterfaces:
TelegramBot
public interface WebhookBot extends TelegramBot
- Version:
- 1.0 Callback to handle updates.
- Author:
- Ruben Bermudez
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetBotPath()Gets in the url for the webhookBotApiMethod<?>onWebhookUpdateReceived(Update update)This method is called when receiving updates via webhookvoidsetWebhook(SetWebhook setWebhook)Execute setWebhook method to set up the url of the webhook-
Methods inherited from interface org.telegram.telegrambots.meta.generics.TelegramBot
getBotToken, getBotUsername, onRegister
-
-
-
-
Method Detail
-
onWebhookUpdateReceived
BotApiMethod<?> onWebhookUpdateReceived(Update update)
This method is called when receiving updates via webhook- Parameters:
update- Update received
-
setWebhook
void setWebhook(SetWebhook setWebhook) throws TelegramApiException
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
-
-