mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-11-12 22:05:13 +03:00
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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| account.py | ||
| auth.py | ||
| bots.py | ||
| buttons.py | ||
| chats.py | ||
| dialogs.py | ||
| downloads.py | ||
| messageparse.py | ||
| messages.py | ||
| telegrambaseclient.py | ||
| telegramclient.py | ||
| updates.py | ||
| uploads.py | ||
| users.py | ||