Telethon/telethon
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
..
client Handle all entity types on isinstance checks 2019-12-23 13:52:07 +01:00
crypto Fix RSA key unpacking on missing fingerprint (#1324) 2019-11-05 08:54:10 +01:00
errors Remove invalid error inits and move bad msg error 2019-05-15 13:58:19 +02:00
events Fix ChatAction join/leave in channels, bump v1.10.9 2019-12-11 12:42:51 +01:00
extensions Fix unparsing text with malformed message entities 2019-12-19 15:48:59 +01:00
network Lower log severity on error during disconnect 2019-12-23 11:54:56 +01:00
sessions Don't cache entities with min flag set, bump v1.10.2 2019-09-12 19:19:46 +02:00
tl Fix several typos (#1328) 2019-11-10 11:29:43 +01:00
__init__.py Re-export the main modules and types from sync 2019-05-07 10:47:25 +02:00
entitycache.py Stop relying on __doc__ in EntityCache 2019-05-02 10:20:49 +02:00
helpers.py Handle all entity types on isinstance checks 2019-12-23 13:52:07 +01:00
hints.py Fix Python 3.5.2 type hinting (#1177) 2019-06-28 21:26:08 +02:00
password.py Remove another debug print, bump v1.10.4 2019-09-21 18:21:09 +02:00
requestiter.py Link Python keywords with Python's documentation 2019-07-06 12:11:00 +02:00
statecache.py Link Python keywords with Python's documentation 2019-07-06 12:11:00 +02:00
sync.py Avoid unnecessary await in Conversation 2019-08-13 18:11:02 +02:00
utils.py Handle *FromMessage peers in utils' casts 2019-12-23 13:47:55 +01:00
version.py Fix ChatAction join/leave in channels, bump v1.10.9 2019-12-11 12:42:51 +01:00