Class TelegramBot


  • public class TelegramBot
    extends java.lang.Object
    • Constructor Detail

      • TelegramBot

        protected TelegramBot​(TelegramBotRegistry registry,
                              java.lang.String apiKey)
    • Method Detail

      • downloadFile

        public java.io.InputStream downloadFile​(TelegramFile file)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • downloadFile

        public java.io.InputStream downloadFile​(java.lang.String filePath)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • getApiKey

        public java.lang.String getApiKey()
      • getBotInfo

        public User getBotInfo()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • setBotInfo

        public void setBotInfo​(User botInfo)