From e2a6ca42f0f73ef34f63f44daff4b9f437a507bb Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 7 Jul 2017 23:16:03 +0300 Subject: [PATCH] boh? --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index e20f283..eb43f7d 100644 --- a/main.py +++ b/main.py @@ -589,10 +589,10 @@ def join(bot, update): game.message(bot, s.error_player_already_joined) return # Giocatore senza username - if update.message.from_user["username"] is not None: + if update.message.from_user.username is not None: game.message(bot, s.error_no_username) return - p = Player(update.message.from_user['id'], update.message.from_user['username']) + p = Player(update.message.from_user.id, update.message.from_user.username) try: p.message(bot, s.you_joined.format(game=game.name)) except Unauthorized: