From 53d3fb4bb5414cb27e403658f84e04df73eb4398 Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 15 Oct 2019 19:12:07 +0800 Subject: [PATCH] from_user should be reply_to_user --- cards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cards.py b/cards.py index ce6c559..282ae2d 100644 --- a/cards.py +++ b/cards.py @@ -149,7 +149,7 @@ def transfer_cards(update, context): tplayer.immunity_cards += amount fplayer.save() tplayer.save() - update.message.reply_text(f'{display_username(from_user)} 转给了 {display_username(from_user)} {amount}张卡', + update.message.reply_text(f'{display_username(from_user)} 转给了 {display_username(reply_to_user)} {amount}张卡', parse_mode="Markdown") else: update.message.reply_text(f'转账失败,你可能没有这么多卡哦({fplayer.immunity_cards}/{amount})',