Interface WebhookBot

  • All Superinterfaces:
    TelegramBot

    public interface WebhookBot
    extends TelegramBot
    Version:
    1.0
    Author:
    Ruben Bermudez
    • Method Detail

      • onWebhookUpdateReceived

        BotApiMethod onWebhookUpdateReceived​(Update update)
        This method is called when receiving updates via webhook
        Parameters:
        update - Update received
      • setWebhook

        void setWebhook​(String url,
                        String publicCertificatePath)
                 throws TelegramApiRequestException
        Execute setWebhook method to set up the url of the webhook
        Parameters:
        url - Url for the webhook
        publicCertificatePath - Path to the public key certificate of the webhook
        Throws:
        TelegramApiRequestException - In case of error executing the request
      • getBotPath

        String getBotPath()
        Gets in the url for the webhook
        Returns:
        path in the url