TelegramBots
TelegramBots copied to clipboard
Warnings in telegrambots-spring-boot-starter, Spring integration
These warnings appear when the Spring application starts:
03:01:22.550 [restartedMain] DEBUG org.telegram.telegrambots.meta.ApiContext - Class org.telegram.telegrambots.meta.generics.BotSession already registered
03:01:22.557 [restartedMain] DEBUG org.telegram.telegrambots.meta.ApiContext - Class org.telegram.telegrambots.meta.generics.Webhook already registered
Is this ok?
Spring Boot v2.1.5.RELEASE telegrambots v4.4.0.1 telegrambots-spring-boot-starter v4.4.0.1
That error means that you are calling the initialization more than one: https://github.com/rubenlagus/TelegramBots/blob/master/telegrambots/src/main/java/org/telegram/telegrambots/ApiContextInitializer.java#L18
There should be no problems tho
It looks like this warning occurs when the bot is launched from IntelliJ IDEA. If I run a bot outside of IDEA, a warning does not appear.