Class TelegramLongPollingBot

All Implemented Interfaces:
LongPollingBot, TelegramBot

public abstract class TelegramLongPollingBot extends DefaultAbsSender implements LongPollingBot
Version:
1.0 Base abstract class for a bot that will get updates using long-polling method
Author:
Ruben Bermudez
  • Constructor Details

    • TelegramLongPollingBot

      @Deprecated public TelegramLongPollingBot()
      Deprecated.
      Overwriting the getBotToken() method is deprecated. Use the constructor instead
      If this is used getBotToken has to be overridden in order to return the bot token!
    • TelegramLongPollingBot

      @Deprecated public TelegramLongPollingBot(DefaultBotOptions options)
      Deprecated.
      Overwriting the getBotToken() method is deprecated. Use the constructor instead
      If this is used getBotToken has to be overridden in order to return the bot token!
    • TelegramLongPollingBot

      public TelegramLongPollingBot(String botToken)
    • TelegramLongPollingBot

      public TelegramLongPollingBot(DefaultBotOptions options, String botToken)
  • Method Details