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 Deprecated Methods Modifier and Type Method Description static voidclearWebhook(DefaultAbsSender bot)static voidsetWebhook(DefaultAbsSender bot, String url, String publicCertificatePath)Deprecated.Use {setWebhook(DefaultAbsSender, SetWebhook)} insteadstatic voidsetWebhook(DefaultAbsSender bot, SetWebhook setWebhook)Set webhook address to receive updates
-
-
-
Method Detail
-
setWebhook
public static void setWebhook(DefaultAbsSender bot, 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
-
setWebhook
@Deprecated public static void setWebhook(DefaultAbsSender bot, String url, String publicCertificatePath) throws TelegramApiRequestException
Deprecated.Use {setWebhook(DefaultAbsSender, SetWebhook)} instead- Throws:
TelegramApiRequestException
-
clearWebhook
public static void clearWebhook(DefaultAbsSender bot) throws TelegramApiRequestException
- Throws:
TelegramApiRequestException
-
-