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 Summary
ConstructorsConstructorDescriptionTelegramBotInitializer(org.telegram.telegrambots.meta.TelegramBotsApi telegramBotsApi, List<org.telegram.telegrambots.meta.generics.LongPollingBot> longPollingBots, List<SpringWebhookBot> webHookBots) -
Method Summary
-
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:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-