Telethon/telethon/client
Lonami Exo fa736f81af Handle all entity types on isinstance checks
Only the uses of `isinstance` against `InputPeer*` types were
reviewed. Notably, `utils` is exempt on this because it needs
to deal with everything on a case-by-case basis.

Since the addition of `*FromMessage` peers, any manual `isinstance`
checks to determine the type were prone to breaking or being
forgotten to be updated, so a common `helpers._entity_type()`
method was made to share this logic.

Since the conversion to `Peer` would be too expensive, a simpler
check against the name is made, which should be fast and cheap.
2019-12-23 13:52:07 +01:00
..
__init__.py Add new takeout method 2019-01-05 17:18:40 +01:00
account.py Avoid using telethon.sync in the examples 2019-08-13 23:33:39 +02:00
auth.py Fix 3.8 syntax warning and erroneous documentation 2019-12-05 11:14:02 +01:00
bots.py Avoid using telethon.sync in the examples 2019-08-13 23:33:39 +02:00
buttons.py Avoid using telethon.sync in the examples 2019-08-13 23:33:39 +02:00
chats.py Handle all entity types on isinstance checks 2019-12-23 13:52:07 +01:00
dialogs.py Handle all entity types on isinstance checks 2019-12-23 13:52:07 +01:00
downloads.py Handle all entity types on isinstance checks 2019-12-23 13:52:07 +01:00
messageparse.py Handle all entity types on isinstance checks 2019-12-23 13:52:07 +01:00
messages.py Handle all entity types on isinstance checks 2019-12-23 13:52:07 +01:00
telegrambaseclient.py fix first type found by tests :) 2019-12-08 00:30:25 +01:00
telegramclient.py Remove messy subclassing in the TelegramClient 2019-06-24 17:48:46 +02:00
updates.py Don't send pings unless the connection is made 2019-12-02 18:36:20 +01:00
uploads.py Fix return value of send_file(album) of the same media 2019-11-10 14:59:01 +01:00
users.py Handle all entity types on isinstance checks 2019-12-23 13:52:07 +01:00