From 6d1fe29df4797e0f388a17c204a4f554db2a23a9 Mon Sep 17 00:00:00 2001 From: Zichao Lin Date: Sat, 11 Jul 2026 21:57:19 +0800 Subject: [PATCH] fix: copy_text field must be an object with text key --- src/tg_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tg_bot.py b/src/tg_bot.py index 55c62c6..db6f367 100644 --- a/src/tg_bot.py +++ b/src/tg_bot.py @@ -173,7 +173,7 @@ def _summary_keyboard(can_reply: bool = True, is_promotion: bool = False, kb.append([{"text": f"🔗 {text}", "url": url}]) if verification_code: code = verification_code.split(" ", 1)[-1] if " " in verification_code else verification_code - kb.append([{"text": code, "type": "copy_text", "copy_text": code}]) + kb.append([{"text": code, "type": "copy_text", "copy_text": {"text": code}}]) return {"inline_keyboard": kb}