Class BgerpBot

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

    public class BgerpBot
    extends org.telegram.telegrambots.bots.TelegramLongPollingBot
    • Field Summary

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

        exe
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBotToken()  
      java.lang.String getBotUsername()  
      static BgerpBot getInstance()  
      void onUpdateReceived​(org.telegram.telegrambots.meta.api.objects.Update e)  
      void sendMessage​(java.lang.Long chanId, java.lang.String text)  
      • Methods inherited from class org.telegram.telegrambots.bots.TelegramLongPollingBot

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

        downloadFile, downloadFile, downloadFileAsync, downloadFileAsync, 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
    • Method Detail

      • getInstance

        public static BgerpBot getInstance()
      • getBotUsername

        public java.lang.String getBotUsername()
      • getBotToken

        public java.lang.String getBotToken()
        Specified by:
        getBotToken in interface org.telegram.telegrambots.meta.generics.LongPollingBot
        Specified by:
        getBotToken in class org.telegram.telegrambots.bots.DefaultAbsSender
      • onUpdateReceived

        public void onUpdateReceived​(org.telegram.telegrambots.meta.api.objects.Update e)
      • sendMessage

        public void sendMessage​(java.lang.Long chanId,
                                java.lang.String text)