mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 03:22:29 +00:00
Add session storages
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user