fix: double send of more_info

This commit is contained in:
Akulij 2025-03-29 19:35:07 +08:00
parent bf1d7df88f
commit 201437d6c2

View File

@ -154,7 +154,6 @@ func handleCallbackQuery(bc BotController, update tgbotapi.Update) {
user := bc.GetUser(update.CallbackQuery.From.ID) user := bc.GetUser(update.CallbackQuery.From.ID)
if update.CallbackQuery.Data == "more_info" { if update.CallbackQuery.Data == "more_info" {
sendMessage(bc, update.FromChat().ID, bc.GetBotContent("more_info_text"))
msg := tgbotapi.NewMessage(update.FromChat().ID, bc.GetBotContent("more_info_text")) msg := tgbotapi.NewMessage(update.FromChat().ID, bc.GetBotContent("more_info_text"))
var entities []tgbotapi.MessageEntity var entities []tgbotapi.MessageEntity
meta, _ := bc.GetBotContentMetadata("more_info_text") meta, _ := bc.GetBotContentMetadata("more_info_text")