Make Session more convenient to use

This commit is contained in:
Lonami Exo
2023-09-02 00:48:26 +02:00
parent 3863cf0972
commit c46387f7bf
5 changed files with 93 additions and 10 deletions

View File

@@ -17,11 +17,7 @@ async def test_ping_pong() -> None:
assert api_hash
client = Client(
Config(
session=Session(
dcs=[],
user=None,
state=None,
),
session=Session(),
api_id=int(api_id),
api_hash=api_hash,
)