Class DefaultTelegramBot

  • All Implemented Interfaces:
    org.telegram.telegrambots.meta.generics.LongPollingBot

    public class DefaultTelegramBot
    extends AbstractTelegramBot
    Default Telegram bot implementation, handles all updates and sends notification to registered handlers.
    • Field Summary

      • Fields inherited from class org.telegram.telegrambots.bots.DefaultAbsSender

        exe
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultTelegramBot​(java.lang.String token, java.lang.String username)  
    • Method Summary

      • Methods inherited from class org.telegram.telegrambots.bots.TelegramLongPollingBot

        clearWebhook, onClosing
      • Methods inherited from class org.telegram.telegrambots.bots.DefaultAbsSender

        downloadFile, downloadFile, downloadFile, downloadFile, downloadFileAsStream, downloadFileAsStream, downloadFileAsync, downloadFileAsync, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, getBaseUrl, getOptions, sendApiMethod, sendApiMethodAsync
      • Methods inherited from class org.telegram.telegrambots.meta.bots.AbsSender

        execute, executeAsync, getMe, getMeAsync, getWebhookInfo, getWebhookInfoAsync
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.telegram.telegrambots.meta.generics.LongPollingBot

        getOptions, onUpdatesReceived
    • Constructor Detail

      • DefaultTelegramBot

        public DefaultTelegramBot​(java.lang.String token,
                                  java.lang.String username)