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 Summary
Constructors Constructor Description TelegramBotStarterConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
org.telegram.telegrambots.meta.TelegramBotsApi
telegramBotsApi()
-
-
-
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)
-
-