doesn't receive updates from inline keyboard
SavostinVladimir opened this issue · 2 comments
SavostinVladimir commented
https://go-telegram-bot-api.dev/examples/inline-keyboard
from this example I expect to receive updates in updates chann when click on buttons. But nothing happens. What do I do wrong?
SavostinVladimir commented
I looked deeper into getUpdates method. When it invoked it returns nothing when I click any button
VeryEvilHumna commented
After 45 minutes of dealing with same issue I found a solution. This is not specified in TG or gotgbotapi's documentation, but I think you must explicitly specify that you want to receive inline keyboard updates.
u := tgbotapi.NewUpdate(0)
u.AllowedUpdates = []string{"callback_query", "message"} // add more updates that you want to receive