TelegramBots icon indicating copy to clipboard operation
TelegramBots copied to clipboard

Warnings in telegrambots-spring-boot-starter, Spring integration

Open EXL opened this issue 6 years ago • 2 comments

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

EXL avatar Sep 17 '19 20:09 EXL

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

rubenlagus avatar Sep 22 '19 12:09 rubenlagus

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.

EXL avatar Nov 21 '19 05:11 EXL