Class TelegramBotInitializer

java.lang.Object
org.telegram.telegrambots.starter.TelegramBotInitializer
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public class TelegramBotInitializer extends Object implements org.springframework.beans.factory.InitializingBean
Receives all beand which are #LongPollingBot and #WebhookBot and register them in #TelegramBotsApi.
  • Constructor Details

    • TelegramBotInitializer

      public TelegramBotInitializer(org.telegram.telegrambots.meta.TelegramBotsApi telegramBotsApi, List<org.telegram.telegrambots.meta.generics.LongPollingBot> longPollingBots, List<SpringWebhookBot> webHookBots)
  • Method Details

    • afterPropertiesSet

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