Class 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 Detail

      • TelegramBotInitializer

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

      • afterPropertiesSet

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