Package org.telegram.telegrambots.util
Class WebhookUtils
java.lang.Object
org.telegram.telegrambots.util.WebhookUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidsetWebhook(DefaultAbsSender bot, WebhookBot webhookBot, SetWebhook setWebhook) Set webhook address to receive updates
-
Method Details
-
setWebhook
public static void setWebhook(DefaultAbsSender bot, WebhookBot webhookBot, SetWebhook setWebhook) throws TelegramApiException Set webhook address to receive updates- Parameters:
bot- Bot to set the webhook tosetWebhook- SetSebhook object with webhook information- Throws:
TelegramApiRequestException- If any issue executing the requestTelegramApiException
-
clearWebhook
- Throws:
TelegramApiRequestException
-