diff --git a/bot.py b/bot.py index 6334c59..0acdf10 100644 --- a/bot.py +++ b/bot.py @@ -231,7 +231,7 @@ def chosen_card(bot, update): gm.leave_game(user) bot.sendMessage(chat_id, text="Player won!") - player_name = player.user.first_name + player_name = game.current_player.user.first_name if player.user.username: player_name += ' (@' + player.user.username + ')' bot.sendMessage(chat_id, text="Next player: " + player_name)