fix: copy button shows only the code number
This commit is contained in:
@@ -173,7 +173,7 @@ def _summary_keyboard(can_reply: bool = True, is_promotion: bool = False,
|
|||||||
kb.append([{"text": f"🔗 {text}", "url": url}])
|
kb.append([{"text": f"🔗 {text}", "url": url}])
|
||||||
if verification_code:
|
if verification_code:
|
||||||
code = verification_code.split(" ", 1)[-1] if " " in verification_code else verification_code
|
code = verification_code.split(" ", 1)[-1] if " " in verification_code else verification_code
|
||||||
kb.append([{"text": f"📋 复制验证码 {code}", "type": "copy_text", "text": code}])
|
kb.append([{"text": code, "type": "copy_text", "text": code}])
|
||||||
return {"inline_keyboard": kb}
|
return {"inline_keyboard": kb}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user