Package org.telegram.telegrambots.util
Class WebhookUtils
- java.lang.Object
-
- org.telegram.telegrambots.util.WebhookUtils
-
public final class WebhookUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearWebhook(DefaultAbsSender bot)
static void
setWebhook(DefaultAbsSender bot, WebhookBot webhookBot, SetWebhook setWebhook)
Set webhook address to receive updates
-
-
-
Method Detail
-
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
public static void clearWebhook(DefaultAbsSender bot) throws TelegramApiRequestException
- Throws:
TelegramApiRequestException
-
-