mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-23 01:46:35 +03:00
Rename last subclass_of_id to upper case (#285)
This commit is contained in:
parent
ba147bbe10
commit
0f019f0476
|
@ -569,7 +569,7 @@ class TelegramClient(TelegramBareClient):
|
|||
some performance loss.
|
||||
"""
|
||||
possible_names = []
|
||||
if not isinstance(entity, TLObject) or type(entity).subclass_of_id in (
|
||||
if not isinstance(entity, TLObject) or type(entity).SUBCLASS_OF_ID in (
|
||||
0x2da17977, 0xc5af5d94, 0x1f4661b9, 0xd49a2697
|
||||
):
|
||||
# Maybe it is an user or a chat? Or their full versions?
|
||||
|
|
Loading…
Reference in New Issue
Block a user