mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 01:16:35 +03:00
Minor change to make the code more pythonic
This commit is contained in:
parent
042e3069a9
commit
7c84c72f06
|
@ -236,7 +236,7 @@ class MtProtoSender:
|
|||
# If the code is not parsed manually, then it was parsed by the code generator!
|
||||
# In this case, we will simply treat the incoming TLObject as an Update,
|
||||
# if we can first find a matching TLObject
|
||||
if code in tlobjects.keys():
|
||||
if code in tlobjects:
|
||||
result = reader.tgread_object()
|
||||
if updates is None:
|
||||
self._logger.debug('Ignored update for %s', repr(result))
|
||||
|
|
Loading…
Reference in New Issue
Block a user