Closed pomkalk closed 10 months ago
I also encountered a similar issue as you. My fix was to add AllowedUpdates to the initialization snippet.
bot, err := tgbotapi.NewBotAPI(os.Getenv("TELEGRAM_APITOKEN"))
if err != nil {
log.Panic(err)
}
bot.Debug = true
log.Printf("Authorized on account %s", bot.Self.UserName)
u := tgbotapi.NewUpdate(0)
u.Timeout = 60
u.AllowedUpdates = []string{"message", "edited_channel_post", "callback_query"}
You can view document of Telegram in here https://core.telegram.org/bots/api#getupdates
Hi, I try this example from docs, but QueryCallback is always nil. I try to click on some button and nothing happens