Telethon/telethon_generator/data
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
..
html Redirect to exact match on pressing enter 2019-06-15 22:54:25 +02:00
api.tl Update to layer 106 2019-12-22 11:17:59 +01:00
errors.csv Handle all entity types on isinstance checks 2019-12-23 13:52:07 +01:00
friendly.csv Fix wrong friendly methods mappings 2019-07-06 19:45:20 +02:00
methods.csv Handle all entity types on isinstance checks 2019-12-23 13:52:07 +01:00
mtproto.tl Update to layer 104 2019-08-14 00:03:24 +02:00