From 194a323bf0b5177f7f4d682f88f0dd4d0f64a09b Mon Sep 17 00:00:00 2001 From: Aleksandr Simonov <34252505+0x0BSoD@users.noreply.github.com> Date: Fri, 25 Jul 2025 17:29:46 +0300 Subject: [PATCH] Fix inline callback parsing --- helpers.go | 2 +- keyboards.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/helpers.go b/helpers.go index 72ea122..513a0c1 100644 --- a/helpers.go +++ b/helpers.go @@ -52,7 +52,7 @@ func parseStatus(s int) (string, string) { status = "Downloading" case 5: icon = "▶️️" - status = "'Queued to seed" + status = "Queued to seed" case 6: icon = "▶️️" status = "Seeding" diff --git a/keyboards.go b/keyboards.go index f6df37f..f63ab91 100644 --- a/keyboards.go +++ b/keyboards.go @@ -38,7 +38,7 @@ func torrentDeleteKbd(hash string) tgbotapi.InlineKeyboardMarkup { return tgbotapi.NewInlineKeyboardMarkup( tgbotapi.NewInlineKeyboardRow( tgbotapi.NewInlineKeyboardButtonData("Yes", "delete-yes_"+hash), - tgbotapi.NewInlineKeyboardButtonData("Yes(with data)", "delete-yes+data"+hash), + tgbotapi.NewInlineKeyboardButtonData("Yes(with data)", "delete-yes+data_"+hash), tgbotapi.NewInlineKeyboardButtonData("Cancel", "delete-no_"+hash), ), ) @@ -49,8 +49,8 @@ func torrentQueueKbd(hash string) tgbotapi.InlineKeyboardMarkup { tgbotapi.NewInlineKeyboardRow( tgbotapi.NewInlineKeyboardButtonData("⏫", "prior-top_"+hash), tgbotapi.NewInlineKeyboardButtonData("🔼", "prior-up_"+hash), - tgbotapi.NewInlineKeyboardButtonData("🔽", "prior-down"+hash), - tgbotapi.NewInlineKeyboardButtonData("⏬", "prior-bottom"+hash), + tgbotapi.NewInlineKeyboardButtonData("🔽", "prior-down_"+hash), + tgbotapi.NewInlineKeyboardButtonData("⏬", "prior-bottom_"+hash), ), tgbotapi.NewInlineKeyboardRow( tgbotapi.NewInlineKeyboardButtonData("Cancel", "prior-no_"+hash),