go-telegram / bot

Telegram Bot API Go framework
MIT License
502 stars 46 forks source link

Inline keyboard example - Buttons' callback doesn't get run #81

Closed NihadBadalov closed 1 month ago

NihadBadalov commented 2 months ago

I tried following the inline keyboard example here. Use this gist for reference.

After writing "yep" in the chat to the bot, the buttons do get printed:

image

However, when I click the buttons, the fmt.Println(...) on line 116 doesn't get printed - the function doesn't get executed at all. What is wrong?

Help will be appreciated! Thanks in advance.

negasus commented 1 month ago

Your example (with some fixes for omit oris/commands) correctly works for me gist

NihadBadalov commented 1 month ago

Still doesn't work for me. Even tried the code in the gist you sent

NihadBadalov commented 1 month ago

Resetting the bot's token helped