Compare commits
2 Commits
ac79aefa36
...
0cb92510b8
Author | SHA1 | Date |
---|---|---|
Анатолий Богомолов | 0cb92510b8 | |
Анатолий Богомолов | 65d7d3ebcd |
|
@ -30,7 +30,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, flood_sleep_threshold=0)
|
||||
super().__init__(f"sessions/{session}.session", api, flood_sleep_threshold=120)
|
||||
|
||||
async def invite_self(self, group: Entity | EntityLike):
|
||||
group = await self.__cast_to_entity(group)
|
||||
|
|
Loading…
Reference in New Issue