Lonami Exo
60ed7a32fe
Use proper error types in mtp
2023-08-31 13:23:30 +02:00
Lonami Exo
7166059132
Fix mtsender enqueuer and complete test
2023-08-31 12:27:43 +02:00
Lonami Exo
dfc540c472
Fix mtp message and container handling
2023-08-31 12:26:43 +02:00
Lonami Exo
9e582ca0fa
Avoid storing memoryview in deserialized objects
2023-08-31 12:25:00 +02:00
Lonami Exo
352ccdd4fc
Update auth test to work under new RSA_PAD
2023-08-31 11:38:05 +02:00
Lonami Exo
d4288fd696
Update RSA encryption to use the new RSA_PAD
...
This makes the server not return -404 when using newer RSA keys.
2023-08-31 11:09:12 +02:00
Lonami Exo
4078243dad
Fix some typing issues in tests
2023-08-31 10:54:50 +02:00
Lonami Exo
53ea35e0d5
Initial implementation of mtsender
2023-08-31 10:48:59 +02:00
Lonami Exo
84e14c2ec4
Make Request class a generic container
2023-08-31 10:34:36 +02:00
Lonami Exo
8f89dbb5c2
Temporarily use old RSA keys
...
After a day's worth, the problem was newer keys are used differently.
2023-08-31 10:22:58 +02:00
Lonami Exo
e20203785a
Add missing nonce check during authentication
2023-08-31 10:22:23 +02:00
Lonami Exo
d5e6dbe36b
Change transports to pack into a write fn
2023-08-30 16:37:04 +02:00
Lonami Exo
2be75380a3
Update transports to report read length
2023-08-30 13:43:35 +02:00
Lonami Exo
269ee4f05f
Port mtproto from grammers
2023-07-09 21:16:55 +02:00
Lonami Exo
9636ef35c1
Port crypto from grammers
2023-07-08 13:04:20 +02:00
Lonami Exo
e74332de75
Improve codegen
...
Avoid on-import modification of classes.
This makes it possible to have multiple namespaces work together.
Implement equality on all generated types.
This enables support in tests as well feeling similar to dataclasses.
Make generated code constructors keyword-only.
This increases readability and reduces risk of breakage during upgrades.
2023-07-08 12:15:11 +02:00
Lonami Exo
7b707cfc6c
Port tl-types fromm grammers
2023-07-05 22:35:18 +02:00