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

Show Alert

Eghbalii opened this issue · 1 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?