Skip to content

Commit 1bc58ad

Browse files
committed
Merge pull request python-telegram-bot#4 from JRoot3D/master
user without username
2 parents cde4405 + 164d6d2 commit 1bc58ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

telegram/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def de_json(data):
6262
from_user = None
6363

6464
if 'chat' in data:
65-
if 'username' in data['chat']:
65+
if 'username' in data['chat'] or 'id' in data['chat']:
6666
from telegram import User
6767
chat = User.de_json(data['chat'])
6868
if 'title' in data['chat']:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy