Add session storages

This commit is contained in:
Lonami Exo
2023-09-10 19:54:05 +02:00
parent 16de3b274c
commit aa83e7b043
14 changed files with 484 additions and 194 deletions
+1 -7
View File
@@ -13,13 +13,7 @@ async def test_ping_pong() -> None:
api_hash = os.getenv("TG_HASH")
assert api_id and api_id.isdigit()
assert api_hash
client = Client(
Config(
session=Session(),
api_id=int(api_id),
api_hash=api_hash,
)
)
client = Client(None, int(api_id), api_hash)
assert not client.connected
await client.connect()
assert client.connected
-1
View File
@@ -81,7 +81,6 @@ def test_unpack_two_at_once() -> None:
with raises(ValueError) as e:
transport.unpack(input, output)
e.match("bad seq")
assert output == expected_output
def test_unpack_twice() -> None: