mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-01-03 09:49:21 +01:00
commit
1bc58ad746
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ class Message(object):
|
|||
from_user = None
|
||||
|
||||
if 'chat' in data:
|
||||
if 'username' in data['chat']:
|
||||
if 'username' in data['chat'] or 'id' in data['chat']:
|
||||
from telegram import User
|
||||
chat = User.de_json(data['chat'])
|
||||
if 'title' in data['chat']:
|
||||
|
|
Loading…
Reference in a new issue