Telethon icon indicating copy to clipboard operation
Telethon copied to clipboard

Pure Python 3 MTProto API Telegram client library, for bots too!

Results 156 Telethon issues
Sort by recently updated
recently updated
newest added

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,...

cleanup

https://core.telegram.org/mtproto/description#content-related-message

cleanup

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...

bug

**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...

bug

Maybe it would be wise to have some form of base class that indicates "this can be converted into this input type".

enhancement

> 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...

cleanup

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...

enhancement

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...

bug

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...

cleanup

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 =...

enhancement