Fix: answer to callback (to stop buttons blinking)

This commit is contained in:
UserA 2024-08-13 04:16:43 +03:00
parent 0e0cca3984
commit 77c931c7bc

View File

@ -317,6 +317,8 @@ func ProcessUpdate(bc BotController, update tgbotapi.Update) {
bc.bot.Send(msg) bc.bot.Send(msg)
} }
} }
canswer := tgbotapi.NewCallback(update.CallbackQuery.ID, "")
bc.bot.Send(canswer)
} else if update.ChannelPost != nil { // TODO } else if update.ChannelPost != nil { // TODO
post := update.ChannelPost post := update.ChannelPost
if post.Text == "setchannelid" { if post.Text == "setchannelid" {