Skip to content

Commit 691a726

Browse files
committed
Dirty patch on message.py
1 parent 32c8f10 commit 691a726

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

telegram/message.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ def de_json(data):
135135
left_chat_participant = User.de_json(data['left_chat_participant'])
136136
else:
137137
left_chat_participant = None
138-
138+
if 'chat' not in locals()
139+
chat = None
140+
139141
return Message(message_id=data.get('message_id', None),
140142
from_user=from_user,
141143
date=data.get('date', None),

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