Class TelegramBotStarterConfiguration

java.lang.Object
org.telegram.telegrambots.starter.TelegramBotStarterConfiguration

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

    • TelegramBotStarterConfiguration

      public TelegramBotStarterConfiguration()
  • Method Details

    • 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)