-
For some reasons, I don't want to implement I'm doing something wrong, is it doable? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Did you register the LongPollingBot with the API? TelegramBotsApi telegramBotsApi = new TelegramBotsApi(DefaultBotSession.class);
telegramBotsApi.registerBot(new YourBot()); |
Beta Was this translation helpful? Give feedback.
-
Yes, I did it, directly into the implementation of @Service
class MyAwesomeBot(...) : LongPollingBot {
@PostConstruct
fun postConstruct() {
TelegramBotsApi(DefaultBotSession::class.java).registerBot(this)
} I guess there's something "wrong" in what I'm doing. |
Beta Was this translation helpful? Give feedback.
-
Looks like I cannot reproduce it in the "minimalist" version of the project. |
Beta Was this translation helpful? Give feedback.
Looks like I cannot reproduce it in the "minimalist" version of the project.
That means that is doable and that I'm making something wrong.