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