Package org.teleight.teleightbots.bot
Interface WebhookTelegramBot
- All Superinterfaces:
TelegramBot
Represents a Telegram bot that uses webhooks to receive updates.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull WebhookTelegramBotcreate(@NotNull String token, @NotNull String username, @NotNull WebhookBotSettings webhookSettings, @NotNull WebhookServer webhookServer) @NotNull WebhookBotSettingsGets the webhook bot settings.@NotNull DeleteWebhookGets the delete webhook for the bot.voidsetDeleteWebhook(@NotNull DeleteWebhook deleteWebhook) Sets the webhook for the bot.Methods inherited from interface org.teleight.teleightbots.bot.TelegramBot
createMenu, createMenu, execute, getBotMethodExecutor, getBotToken, getBotUsername, getCommandManager, getConversationManager, getEventManager, getExtensionManager, getFileDownloader, getMenuManager, getScheduler, getUpdateProcessor, getUser, getUser, getUser, getUser
-
Method Details
-
create
@Internal @NotNull static @NotNull WebhookTelegramBot create(@NotNull @NotNull String token, @NotNull @NotNull String username, @NotNull @NotNull WebhookBotSettings webhookSettings, @NotNull @NotNull WebhookServer webhookServer) -
getBotSettings
Gets the webhook bot settings.- Specified by:
getBotSettingsin interfaceTelegramBot- Returns:
- The webhook bot settings. Can't be null.
-
getDeleteWebhook
Gets the delete webhook for the bot.- Returns:
- The delete webhook for the bot. Can't be null
-
setDeleteWebhook
Sets the webhook for the bot.- Parameters:
deleteWebhook- The webhook to set. Can't be null.
-