Class TelegramBotInitializer
java.lang.Object
com.bytedesk.social.telegram.config.TelegramBotInitializer
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class TelegramBotInitializer
extends Object
implements org.springframework.beans.factory.InitializingBean
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<SpringLongPollingBot>private final org.telegram.telegrambots.longpolling.TelegramBotsLongPollingApplicationprivate final org.telegram.telegrambots.meta.TelegramUrl -
Constructor Summary
ConstructorsConstructorDescriptionTelegramBotInitializer(@NonNull org.telegram.telegrambots.longpolling.TelegramBotsLongPollingApplication telegramBotsApplication, @NonNull List<SpringLongPollingBot> longPollingBots) TelegramBotInitializer(@NonNull org.telegram.telegrambots.longpolling.TelegramBotsLongPollingApplication telegramBotsApplication, @NonNull List<SpringLongPollingBot> longPollingBots, org.telegram.telegrambots.meta.TelegramUrl telegramUrl) -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voidhandleAfterRegistrationHook(Object bot, org.telegram.telegrambots.longpolling.BotSession botSession) private voidhandleAnnotatedMethod(Object bot, Method method, org.telegram.telegrambots.longpolling.BotSession session)
-
Field Details
-
telegramBotsApplication
private final org.telegram.telegrambots.longpolling.TelegramBotsLongPollingApplication telegramBotsApplication -
longPollingBots
-
telegramUrl
private final org.telegram.telegrambots.meta.TelegramUrl telegramUrl
-
-
Constructor Details
-
TelegramBotInitializer
public TelegramBotInitializer(@NonNull @NonNull org.telegram.telegrambots.longpolling.TelegramBotsLongPollingApplication telegramBotsApplication, @NonNull @NonNull List<SpringLongPollingBot> longPollingBots) -
TelegramBotInitializer
public TelegramBotInitializer(@NonNull @NonNull org.telegram.telegrambots.longpolling.TelegramBotsLongPollingApplication telegramBotsApplication, @NonNull @NonNull List<SpringLongPollingBot> longPollingBots, org.telegram.telegrambots.meta.TelegramUrl telegramUrl)
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
handleAfterRegistrationHook
private void handleAfterRegistrationHook(Object bot, org.telegram.telegrambots.longpolling.BotSession botSession) -
handleAnnotatedMethod
-