Class AbilityWebhookBot

java.lang.Object
org.telegram.telegrambots.meta.bots.AbsSender
All Implemented Interfaces:
AbilityExtension, org.telegram.telegrambots.meta.generics.TelegramBot, org.telegram.telegrambots.meta.generics.WebhookBot

public abstract class AbilityWebhookBot extends BaseAbilityBot implements org.telegram.telegrambots.meta.generics.WebhookBot
A WebhookBot-flavor AbilityBot. It delegates all updates to a TelegramWebhookBot instance.
Author:
Abbas Abou Daya
  • Constructor Details

  • Method Details

    • onWebhookUpdateReceived

      public org.telegram.telegrambots.meta.api.methods.BotApiMethod<?> onWebhookUpdateReceived(org.telegram.telegrambots.meta.api.objects.Update update)
      Specified by:
      onWebhookUpdateReceived in interface org.telegram.telegrambots.meta.generics.WebhookBot
    • setWebhook

      public void setWebhook(org.telegram.telegrambots.meta.api.methods.updates.SetWebhook setWebhook) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
      Specified by:
      setWebhook in interface org.telegram.telegrambots.meta.generics.WebhookBot
      Throws:
      org.telegram.telegrambots.meta.exceptions.TelegramApiException
    • getBotPath

      public String getBotPath()
      Specified by:
      getBotPath in interface org.telegram.telegrambots.meta.generics.WebhookBot