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

FloodWait error: Telegram says: [420 FLOOD_WAIT_X] #33

Open
mrdarkerr opened this issue Sep 13, 2024 · 3 comments
Open

FloodWait error: Telegram says: [420 FLOOD_WAIT_X] #33

mrdarkerr opened this issue Sep 13, 2024 · 3 comments

Comments

@mrdarkerr
Copy link

FloodWait error: Telegram says: [420 FLOOD_WAIT_X] - A wait of 38 seconds is required (caused by "contacts.ResolveUsername") | Retry in 38 seconds

@mrdarkerr
Copy link
Author

And then

  File "/usr/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
    │    │            │    │           │    └ <member '_args' of 'Handle' objects>
    │    │            │    │           └ <Handle Task.task_wakeup(<Future finished result=None>)>
    │    │            │    └ <member '_callback' of 'Handle' objects>
    │    │            └ <Handle Task.task_wakeup(<Future finished result=None>)>
    │    └ <member '_context' of 'Handle' objects>
    └ <Handle Task.task_wakeup(<Future finished result=None>)>

  File "/root/MuskEmpireBot/bot/launcher.py", line 88, in run_bot_with_delay
    await run_bot(tg_client=tg_client, proxy=proxy, additional_data=additional_data)
          │                 │                │                      └ [{'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0...
          │                 │                └ None
          │                 └ <pyrogram.client.Client object at 0x7f90a090ead0>
          └ <function run_bot at 0x7f90a0fadea0>

  File "/root/MuskEmpireBot/bot/core/bot.py", line 410, in run_bot
    await CryptoBot(tg_client=tg_client, additional_data=additional_data).run(proxy=proxy)
          │                   │                          │                          └ None
          │                   │                          └ [{'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0...
          │                   └ <pyrogram.client.Client object at 0x7f90a090ead0>
          └ <class 'bot.core.bot.CryptoBot'>

> File "/root/MuskEmpireBot/bot/core/bot.py", line 351, in run
    if await self.login_to_app(proxy):
             │    │            └ None
             │    └ <function CryptoBot.login_to_app at 0x7f90a0aa1480>
             └ <bot.core.bot.CryptoBot object at 0x7f90a090efe0>

  File "/root/MuskEmpireBot/bot/core/bot.py", line 321, in login_to_app
    tg_web_data = await self.get_tg_web_data(proxy=proxy)
                        │    │                     └ None
                        │    └ <function CryptoBotApi.get_tg_web_data at 0x7f90a09048b0>
                        └ <bot.core.bot.CryptoBot object at 0x7f90a090efe0>

  File "/root/MuskEmpireBot/bot/core/api.py", line 68, in get_tg_web_data
    self._peer = await self.tg_client.resolve_peer(config.bot_name)
    │    │             │    │         │            │      └ 'empirebot'
    │    │             │    │         │            └ Settings(API_ID=25994506, API_HASH='a689a84bb54f225648a5820cf6e92d01', LOGIN_TIMEOUT=3600, TAPS_ENABLED=True, TAPS_PER_SECOND...
    │    │             │    │         └ <function ResolvePeer.resolve_peer at 0x7f90a11adc60>
    │    │             │    └ <pyrogram.client.Client object at 0x7f90a090ead0>
    │    │             └ <bot.core.bot.CryptoBot object at 0x7f90a090efe0>
    │    └ None
    └ <bot.core.bot.CryptoBot object at 0x7f90a090efe0>

  File "/root/MuskEmpireBot/venv/lib/python3.10/site-packages/pyrogram/methods/advanced/resolve_peer.py", line 76, in resolve_peer
    await self.invoke(
          │    └ <function Invoke.invoke at 0x7f90a11acee0>
          └ <pyrogram.client.Client object at 0x7f90a090ead0>
  File "/root/MuskEmpireBot/venv/lib/python3.10/site-packages/pyrogram/methods/advanced/invoke.py", line 79, in invoke
    r = await self.session.invoke(
              │    │       └ <function Session.invoke at 0x7f90a1354670>
              │    └ <pyrogram.session.session.Session object at 0x7f90a093e110>
              └ <pyrogram.client.Client object at 0x7f90a090ead0>
  File "/root/MuskEmpireBot/venv/lib/python3.10/site-packages/pyrogram/session/session.py", line 389, in invoke
    return await self.send(query, timeout=timeout)
                 │    │    │              └ 15
                 │    │    └ pyrogram.raw.functions.contacts.ResolveUsername(username='empirebot')
                 │    └ <function Session.send at 0x7f90a13545e0>
                 └ <pyrogram.session.session.Session object at 0x7f90a093e110>
  File "/root/MuskEmpireBot/venv/lib/python3.10/site-packages/pyrogram/session/session.py", line 357, in send
    RPCError.raise_it(result, type(data))
    │        │        │            └ pyrogram.raw.functions.contacts.ResolveUsername(username='empirebot')
    │        │        └ pyrogram.raw.types.RpcError(error_code=420, error_message='FLOOD_WAIT_38')
    │        └ <staticmethod(<function RPCError.raise_it at 0x7f90a142c790>)>
    └ <class 'pyrogram.errors.rpc_error.RPCError'>
  File "/root/MuskEmpireBot/venv/lib/python3.10/site-packages/pyrogram/errors/rpc_error.py", line 91, in raise_it
    raise getattr(

@paveL1boyko
Copy link
Owner

I fix it

@Suman2131
Copy link

Uploading IMG20240913201822.jpg…
Still this is coming... please solve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants