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 voidclearWebhook(DefaultAbsSender bot)static voidsetWebhook(DefaultAbsSender bot, String url, String publicCertificatePath)
-
-
-
Method Detail
-
setWebhook
public static void setWebhook(DefaultAbsSender bot, String url, String publicCertificatePath) throws TelegramApiRequestException
- Throws:
TelegramApiRequestException
-
clearWebhook
public static void clearWebhook(DefaultAbsSender bot) throws TelegramApiRequestException
- Throws:
TelegramApiRequestException
-
-