diff --git a/telethon/telegram_client.py b/telethon/telegram_client.py index bdaa41d8..ca359b47 100644 --- a/telethon/telegram_client.py +++ b/telethon/telegram_client.py @@ -873,9 +873,9 @@ class TelegramClient(TelegramBareClient): pass if isinstance(entity, int) or ( - isinstance(entity, TLObject) and + isinstance(entity, TLObject) and # crc32(b'InputPeer') and crc32(b'Peer') - type(entity).SUBCLASS_OF_ID in (0xc91c90b6, 0x2d45687)): + type(entity).SUBCLASS_OF_ID in (0xc91c90b6, 0x2d45687)): ie = self.get_input_entity(entity) result = None if isinstance(ie, InputPeerUser):