Commit Graph

34 Commits

Author SHA1 Message Date
Lonami Exo
94048d9102 finalize does not need to return last_msg_id 2024-06-07 22:14:40 +02:00
Lonami Exo
4536667a6a Fix formatting 2024-06-07 22:14:17 +02:00
Lonami Exo
38241dffd2 Migrate from chat to peer 2024-03-18 18:55:23 +01:00
Lonami Exo
46223bcbcc Rename PackedChat type to PeerRef 2024-03-17 13:21:26 +01: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
c7d1a36969 Return serialized container MsgId on finalize 2024-03-16 14:06:12 +01:00
Lonami Exo
48bf78a855 Fix getting and using participants 2023-11-02 14:40:20 +01:00
Lonami Exo
6e88264b28 Support custom connectors 2023-10-29 21:45:21 +01:00
Lonami Exo
b31f4fe063 Use logger 2023-10-12 21:10:00 +02:00
Lonami Exo
034bf304bb Enable and use ruff 2023-10-12 18:17:41 +02:00
Lonami Exo
7fabf7da0a Continue documentation and reducing public API 2023-10-08 15:07:39 +02:00
Lonami Exo
9e43700f55 Fix docgen in strict mode 2023-09-13 20:07:07 +02:00
Lonami Exo
aa83e7b043 Add session storages 2023-09-10 19:54:05 +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
49c0645fcb Fix full transport overreading 2023-09-02 01:15:10 +02:00
Lonami Exo
c46387f7bf Make Session more convenient to use 2023-09-02 00:48:26 +02:00
Lonami Exo
da011e4b1d Implement some auth methods 2023-09-01 17:41:47 +02:00
Lonami Exo
cc65ee473e Mark tests requiring network access 2023-09-01 14:09:53 +02:00
Lonami Exo
f69e309b0b Use pytest-asyncio for client and sender tests 2023-09-01 14:02:24 +02:00
Lonami Exo
294f7dedd5 Implement client connection 2023-09-01 13:42:23 +02:00
Lonami Exo
2e1321b6c9 Remove enqueuer abstraction from sender
Unnecessary complexity since Python lacks exclusive ownership.
2023-09-01 11:57:41 +02:00
Lonami Exo
332215ea2e Bring client parsers for commonmark and HTML 2023-08-31 23:07:37 +02:00
Lonami Exo
c77c10b48f Implemnet chat hash cache and adapting updates 2023-08-31 17:36:08 +02:00
Lonami Exo
7166059132 Fix mtsender enqueuer and complete test 2023-08-31 12:27:43 +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
d5e6dbe36b Change transports to pack into a write fn 2023-08-30 16:37:04 +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