Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flood wait error when creating a new session #131

Open
makovez opened this issue Jan 6, 2025 · 0 comments
Open

flood wait error when creating a new session #131

makovez opened this issue Jan 6, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@makovez
Copy link

makovez commented Jan 6, 2025

client = await tdesk.ToTelethon(f"sessions/{self.unique_id}/{self.unique_id}.session", CreateNewSession, api, proxy=proxy, password=password, timeout=15)

I get a flood wait error when creating a new session. If I use "useCurrentSession" I don't get any error.

  File "/opt/homebrew/anaconda3/envs/py38/lib/python3.8/site-packages/opentele/td/tdesktop.py", line 560, in ToTelethon
    return await tl.TelegramClient.FromTDesktop(
  File "/opt/homebrew/anaconda3/envs/py38/lib/python3.8/site-packages/opentele/tl/telethon.py", line 919, in FromTDesktop
    return await client.QRLoginToNewClient(
  File "/opt/homebrew/anaconda3/envs/py38/lib/python3.8/site-packages/opentele/tl/telethon.py", line 643, in QRLoginToNewClient
    await qr_login.wait(time_out)
  File "/opt/homebrew/anaconda3/envs/py38/lib/python3.8/site-packages/telethon/tl/custom/qrlogin.py", line 108, in wait
    resp = await self._client(self._request)
  File "/opt/homebrew/anaconda3/envs/py38/lib/python3.8/site-packages/telethon/client/users.py", line 30, in __call__
    return await self._call(self._sender, request, ordered=ordered)
  File "/opt/homebrew/anaconda3/envs/py38/lib/python3.8/site-packages/telethon/client/users.py", line 87, in _call
    result = await future
telethon.errors.rpcerrorlist.FloodWaitError: A wait of 3600 seconds is required (caused by ExportLoginTokenRequest)
@makovez makovez added the bug Something isn't working label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant