Class TelegramBotInitializer

java.lang.Object
com.bytedesk.social.telegram.config.TelegramBotInitializer
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public class TelegramBotInitializer extends Object implements org.springframework.beans.factory.InitializingBean
  • Field Details

    • telegramBotsApplication

      private final org.telegram.telegrambots.longpolling.TelegramBotsLongPollingApplication telegramBotsApplication
    • longPollingBots

      private final List<SpringLongPollingBot> longPollingBots
    • telegramUrl

      private final org.telegram.telegrambots.meta.TelegramUrl telegramUrl
  • Constructor Details

    • TelegramBotInitializer

      public TelegramBotInitializer(@NonNull @NonNull org.telegram.telegrambots.longpolling.TelegramBotsLongPollingApplication telegramBotsApplication, @NonNull @NonNull List<SpringLongPollingBot> longPollingBots)
    • TelegramBotInitializer

      public TelegramBotInitializer(@NonNull @NonNull org.telegram.telegrambots.longpolling.TelegramBotsLongPollingApplication telegramBotsApplication, @NonNull @NonNull List<SpringLongPollingBot> longPollingBots, org.telegram.telegrambots.meta.TelegramUrl telegramUrl)
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • handleAfterRegistrationHook

      private void handleAfterRegistrationHook(Object bot, org.telegram.telegrambots.longpolling.BotSession botSession)
    • handleAnnotatedMethod

      private void handleAnnotatedMethod(Object bot, Method method, org.telegram.telegrambots.longpolling.BotSession session)