From 164d6d2942526a39e7d2b4d7f262873cf45cc750 Mon Sep 17 00:00:00 2001 From: Alex Root Date: Sat, 11 Jul 2015 09:57:27 +0300 Subject: [PATCH] user without username fix library crash when connect user without username --- telegram/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram/message.py b/telegram/message.py index 8c5f74daf9b..8f4cec5529b 100644 --- a/telegram/message.py +++ b/telegram/message.py @@ -62,7 +62,7 @@ def de_json(data): 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']: 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