From 77c931c7bc79a76c8abbc41c2fa6c6ddba93242c Mon Sep 17 00:00:00 2001 From: UserA Date: Tue, 13 Aug 2024 04:16:43 +0300 Subject: [PATCH] Fix: answer to callback (to stop buttons blinking) --- cmd/app/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/app/main.go b/cmd/app/main.go index 19e71a2..c1947a4 100644 --- a/cmd/app/main.go +++ b/cmd/app/main.go @@ -317,6 +317,8 @@ func ProcessUpdate(bc BotController, update tgbotapi.Update) { bc.bot.Send(msg) } } + canswer := tgbotapi.NewCallback(update.CallbackQuery.ID, "") + bc.bot.Send(canswer) } else if update.ChannelPost != nil { // TODO post := update.ChannelPost if post.Text == "setchannelid" {