Class AbilityWebhookBot

  • All Implemented Interfaces:
    AbilityExtension, 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
    • Method Detail

      • 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​(String url,
                               String publicCertificatePath)
                        throws org.telegram.telegrambots.meta.exceptions.TelegramApiRequestException
        Specified by:
        setWebhook in interface org.telegram.telegrambots.meta.generics.WebhookBot
        Throws:
        org.telegram.telegrambots.meta.exceptions.TelegramApiRequestException
      • getBotPath

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