Class TelegramBotStarterConfiguration


  • @Configuration
    @ConditionalOnProperty(prefix="telegrambots",
                           name="enabled",
                           havingValue="true",
                           matchIfMissing=true)
    public class TelegramBotStarterConfiguration
    extends Object
    #TelegramBotsApi added to spring context as well
    • Constructor Detail

      • TelegramBotStarterConfiguration

        public TelegramBotStarterConfiguration()
    • Method Detail

      • telegramBotsApi

        @Bean
        @ConditionalOnMissingBean(org.telegram.telegrambots.meta.TelegramBotsApi.class)
        public org.telegram.telegrambots.meta.TelegramBotsApi telegramBotsApi()
                                                                       throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
        Throws:
        org.telegram.telegrambots.meta.exceptions.TelegramApiException
      • telegramBotInitializer

        @Bean
        @ConditionalOnMissingBean
        public TelegramBotInitializer telegramBotInitializer​(org.telegram.telegrambots.meta.TelegramBotsApi telegramBotsApi,
                                                             org.springframework.beans.factory.ObjectProvider<List<org.telegram.telegrambots.meta.generics.LongPollingBot>> longPollingBots,
                                                             org.springframework.beans.factory.ObjectProvider<List<SpringWebhookBot>> webHookBots)