From cd95928843132c58ffe7f6f18d6417411c249328 Mon Sep 17 00:00:00 2001 From: winet Date: Sat, 3 Feb 2024 14:59:51 +0000 Subject: [PATCH] changed flood sleep threshold --- paper/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper/client.py b/paper/client.py index 9b6292f..07d365c 100644 --- a/paper/client.py +++ b/paper/client.py @@ -29,7 +29,7 @@ from telethon.errors.rpcerrorlist import ( class PaperClient(TelegramClient): def __init__(self, session: str | Session) -> None: api = API.TelegramAndroid.Generate("paper") - super().__init__(f"sessions/{session}.session", api) + super().__init__(f"sessions/{session}.session", api, flood_sleep_threshold=0) async def invite_self(self, group: Entity | EntityLike): group = await self.__cast_to_entity(group)