Interface WebhookTelegramBot

All Superinterfaces:
TelegramBot

public sealed interface WebhookTelegramBot extends TelegramBot
Represents a Telegram bot that uses webhooks to receive updates.
  • 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

      @NotNull @NotNull WebhookBotSettings getBotSettings()
      Gets the webhook bot settings.
      Specified by:
      getBotSettings in interface TelegramBot
      Returns:
      The webhook bot settings. Can't be null.
    • getDeleteWebhook

      @NotNull @NotNull DeleteWebhook getDeleteWebhook()
      Gets the delete webhook for the bot.
      Returns:
      The delete webhook for the bot. Can't be null
    • setDeleteWebhook

      void setDeleteWebhook(@NotNull @NotNull DeleteWebhook deleteWebhook)
      Sets the webhook for the bot.
      Parameters:
      deleteWebhook - The webhook to set. Can't be null.