Show Alert
Author: EghbaliiCreated Jan 28, 2024Updated Oct 1, 2025
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?
Source: go-telegram-bot-api/telegram-bot-api