Class TelegramBotsApi


  • public class TelegramBotsApi
    extends Object
    Version:
    1.0
    Author:
    Ruben Bermudez
    • Constructor Detail

      • TelegramBotsApi

        public TelegramBotsApi()
      • TelegramBotsApi

        public TelegramBotsApi​(String keyStore,
                               String keyStorePassword,
                               String externalUrl,
                               String internalUrl)
                        throws TelegramApiRequestException
        Creates an HTTPS server to receive webhook request
        Parameters:
        keyStore - KeyStore for the server
        keyStorePassword - Key store password for the server
        externalUrl - External base url for the webhook
        internalUrl - Internal base url for the webhook
        Throws:
        TelegramApiRequestException
      • TelegramBotsApi

        public TelegramBotsApi​(String keyStore,
                               String keyStorePassword,
                               String externalUrl,
                               String internalUrl,
                               String pathToCertificate)
                        throws TelegramApiRequestException
        Creates an HTTPS server with self-signed certificate to receive webhook request
        Parameters:
        keyStore - KeyStore for the server
        keyStorePassword - Key store password for the server
        externalUrl - External base url for the webhook
        internalUrl - Internal base url for the webhook
        pathToCertificate - Full path until .pem public certificate keys
        Throws:
        TelegramApiRequestException