-
Notifications
You must be signed in to change notification settings - Fork 2
telethon.errors.rpcerrorlist.FloodWaitError: A wait of X seconds is required (caused by CheckChatInviteRequest) #12
Copy link
Copy link
Open
Description
I am trying to import a chat backup to a private group. The backup size is 2.5 GB. I have some kind of error related to flood. This is the first test I've done since yesterday, so I don't quite understand the second wait thing.
By the way, I have to thank you for making this script. I'm trying to recover a 10-year chat history of family conversations, videos, and photos. My wife accidentally left the group and lost all of this.
This is the error:
$ python3 telegram_import.py --path Family-ChatExport_2024-08-29 --peer "joinlink"
Loading config.ini
Loading result.json
Converting format
Traceback (most recent call last):
File "/home/user/git/telegram_import/telegram_import.py", line 251, in <module>
import_history(
File "/home/user/git/telegram_import/telegram_import.py", line 200, in import_history
client(functions.messages.CheckHistoryImportPeerRequest(
File "/home/user/.local/lib/python3.12/site-packages/telethon/sync.py", line 39, in syncified
return loop.run_until_complete(coro)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.12/site-packages/telethon/client/users.py", line 30, in __call__
return await self._call(self._sender, request, ordered=ordered)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.12/site-packages/telethon/client/users.py", line 43, in _call
await r.resolve(self, utils)
File "/home/user/.local/lib/python3.12/site-packages/telethon/tl/functions/messages.py", line 218, in resolve
self.peer = utils.get_input_peer(await client.get_input_entity(self.peer))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.12/site-packages/telethon/client/users.py", line 439, in get_input_entity
await self._get_entity_from_string(peer))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.12/site-packages/telethon/client/users.py", line 543, in _get_entity_from_string
invite = await self(
^^^^^^^^^^^
File "/home/user/.local/lib/python3.12/site-packages/telethon/client/users.py", line 30, in __call__
return await self._call(self._sender, request, ordered=ordered)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.12/site-packages/telethon/client/users.py", line 87, in _call
result = await future
^^^^^^^^^^^^
telethon.errors.rpcerrorlist.FloodWaitError: A wait of 129 seconds is required (caused by CheckChatInviteRequest)
Best regards.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels