from_user should be reply_to_user

This commit is contained in:
JerryXiao 2019-10-15 19:12:07 +08:00
parent ae5c7b6eb5
commit 53d3fb4bb5
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA

View file

@ -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})',