Merge pull request #4 from JRoot3D/master

user without username
This commit is contained in:
Leandro Toledo 2015-07-11 09:46:15 -03:00
commit 1bc58ad746

View file

@ -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']: