From b23196b233271d823ced613a5b03b9b59b40863e Mon Sep 17 00:00:00 2001 From: winet Date: Wed, 13 Mar 2024 18:14:46 +1000 Subject: [PATCH] Set session name as key for device generation --- paper/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper/client.py b/paper/client.py index 38fa2e6..a171ff8 100644 --- a/paper/client.py +++ b/paper/client.py @@ -30,7 +30,7 @@ from telethon.errors.rpcerrorlist import ( class PaperClient(TelegramClient): def __init__(self, session: str | Session) -> None: - api = API.TelegramAndroid.Generate("paper") + api = API.TelegramAndroid.Generate(session) super().__init__(f"sessions/{session}.session", api, flood_sleep_threshold=120) async def invite_self(self, group: Entity | EntityLike):