mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Fix _document_by_attribute calls using cond
This commit is contained in:
parent
b8912ea0aa
commit
4d8f078ad9
|
@ -764,7 +764,7 @@ class Message(ChatGetter, SenderGetter, TLObject, abc.ABC):
|
|||
if doc:
|
||||
for attr in doc.attributes:
|
||||
if isinstance(attr, kind):
|
||||
if not condition or condition(doc):
|
||||
if not condition or condition(attr):
|
||||
return doc
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user