from_user should be reply_to_user
This commit is contained in:
parent
ae5c7b6eb5
commit
53d3fb4bb5
1 changed files with 1 additions and 1 deletions
2
cards.py
2
cards.py
|
@ -149,7 +149,7 @@ def transfer_cards(update, context):
|
||||||
tplayer.immunity_cards += amount
|
tplayer.immunity_cards += amount
|
||||||
fplayer.save()
|
fplayer.save()
|
||||||
tplayer.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")
|
parse_mode="Markdown")
|
||||||
else:
|
else:
|
||||||
update.message.reply_text(f'转账失败,你可能没有这么多卡哦({fplayer.immunity_cards}/{amount})',
|
update.message.reply_text(f'转账失败,你可能没有这么多卡哦({fplayer.immunity_cards}/{amount})',
|
||||||
|
|
Loading…
Reference in a new issue