Commit Graph

21 Commits

Author SHA1 Message Date
Jahongir Qurbonov
86d41e1f06
[V2] Upgrade ruff and mypy version, format files (#4474) 2024-10-06 20:05:11 +02:00
Lonami Exo
94048d9102 finalize does not need to return last_msg_id 2024-06-07 22:14:40 +02:00
Lonami Exo
8267f5d590 Use modern typehint syntax 2024-03-17 13:06:03 +01:00
Lonami Exo
033b56f1d3 Make pyright happy 2024-03-16 19:20:01 +01:00
Lonami Exo
3250f9ec37 Unify the way deserialization is returned 2024-03-16 15:00:38 +01:00
Lonami Exo
b5db881415 Remove _out_pending_ack
Not really reliable.
Now that the sender has container IDs, it knows what to resend.
2024-03-16 14:10:40 +01:00
Lonami Exo
c7d1a36969 Return serialized container MsgId on finalize 2024-03-16 14:06:12 +01:00
Lonami Exo
e1983b80c2 Treat messages.affected* as updateDeleteMessages 2023-11-08 23:03:24 +01:00
Lonami Exo
b8b9836cf7 Work towards dialogs and drafts 2023-10-19 21:36:54 +02:00
Lonami Exo
c49f0827b1 Don't send requests until there are salts
This way we don't waste resources sending containers that may fail.
2023-10-18 20:35:55 +02:00
Lonami Exo
45f866c335 Fix handling of bad_msg 16 and 17 2023-10-18 20:31:09 +02:00
Lonami Exo
5604f530c0 Fix handling of bad_msg referring to containers 2023-10-18 19:51:18 +02:00
Lonami Exo
34dffe978e Fix file uploads and references to full_name 2023-10-16 23:06:24 +02:00
Lonami Exo
c91ce98a25 Fix handling of salts and container buffer 2023-10-14 01:21:33 +02:00
Lonami Exo
236c2f7e7c Remove TODOs 2023-10-13 22:59:56 +02:00
Lonami Exo
9e43700f55 Fix docgen in strict mode 2023-09-13 20:07:07 +02:00
Lonami Exo
4b2d252fe1 Significantly clean-up imports
Sure wish I would've automated this.
2023-09-02 23:19:04 +02:00
Lonami Exo
60ed7a32fe Use proper error types in mtp 2023-08-31 13:23:30 +02:00
Lonami Exo
dfc540c472 Fix mtp message and container handling 2023-08-31 12:26:43 +02:00
Lonami Exo
53ea35e0d5 Initial implementation of mtsender 2023-08-31 10:48:59 +02:00
Lonami Exo
269ee4f05f Port mtproto from grammers 2023-07-09 21:16:55 +02:00