go-telegram-bot-api / telegram-bot-api

Golang bindings for the Telegram Bot API

Home Page:https://go-telegram-bot-api.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Show Alert

Eghbalii opened this issue · comments

I try to show an alert in my bot. when sending the request didn't receive any error, but also nothing happened in the bot.
`answerCallbackQuery := tgbotapi.CallbackConfig{CallbackQueryID: upd.CallbackQuery.ID, Text: "Error in cancelling order, please try again later", ShowAlert: true}

if err := b.ApiRequest(answerCallbackQuery); err != nil {
log.Println("Error answering Cancel callback query:", err)
}`

any idea?