Telethon
Telethon copied to clipboard
Pure Python 3 MTProto API Telegram client library, for bots too!
Probably [borrow it from `tdesktop`](https://github.com/telegramdesktop/tdesktop/blob/c1f3fe1961959f939746a4dad925eb3bae65d585/Telegram/SourceFiles/mtproto/session_private.cpp#L1486-L1538). Otherwise it fails very badly, Telegram sends up to 4865 `bad_msg_notification` before giving up with 429 Too Many Requests as seen in [log.txt.zip](https://github.com/LonamiWebs/Telethon/files/4560748/log.txt.zip) (148KB compressed,...
https://core.telegram.org/mtproto/description#content-related-message
I cannot get video thumbnail displayed. The code used to send out video is standard code in the manual. I tried all possible ways I can find to send the...
**Checklist** * [x] The error is in the library's code, and not in my own. * [x] I have searched for this issue before posting it and there isn't a...
Maybe it would be wise to have some form of base class that indicates "this can be converted into this input type".
> If you don't enter your password in time, the srp id will expire. Sending the password after it expires results in an rpc_error: SRP_ID_INVALID. This can be resolved by...
Something like: ```python client.delete_messages(chat, from_user='foo') ``` This would use [`channels.deleteUserHistory`](https://tl.telethon.dev/methods/channels/delete_user_history.html) (after verifying that's actually the right request to use…). Parameter name may vary, and it should be documented that bots...
Currently, [the library downloads `WebDocument` and `WebDocumentNoProxy` in the same way](https://github.com/LonamiWebs/Telethon/blob/c1774276c2ae706593ab1965e07a154ea53aa3f1/telethon/client/downloads.py#L358). This however is a security risk, since it allows websites to learn information about the client, such as IP...
The code that generates https://tl.telethon.dev is a mess and should be cleaned up. In particular, things like "here" being a link are a sign of poor accessibility (the link should...
I just recently used [qr_login](https://github.com/LonamiWebs/Telethon/blob/master/telethon/client/auth.py#L539) and noticed that it doesn't provide a way to enter a 2FA password. So I had to come up with this solution: ```python password =...