-
Notifications
You must be signed in to change notification settings - Fork 14
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
now not working at all #23
Comments
bro stop update your youtube file your bot is not working 2024-09-08 20:54:24 | INFO | 86 | 0504945571 | Wait 28 seconds before start File "/root/MuskEmpireBot/main.py", line 13, in File "/root/.pyenv/versions/3.11.0/lib/python3.11/asyncio/runners.py", line 190, in run File "/root/MuskEmpireBot/bot/launcher.py", line 88, in run_bot_with_delay File "/root/MuskEmpireBot/bot/core/bot.py", line 408, in run_bot
File "/root/MuskEmpireBot/bot/core/bot.py", line 322, in login_to_app AttributeError: 'NoneType' object has no attribute 'hash' |
Add
Replace this line
with this 👇
And replace
With
This can be solve problem ;) |
in api.py file |
Pro, i got error after repalce and run with your tips: PS C:\Users\tuan> cd D:\Telebot\MuskEmpireBot-main |
the problem is that the bot is flooding the api |
probably because the spaces import asyncio import aiohttp from bot.config.logger import log from .errors import TapsError class TgWebData(NamedTuple): class CryptoBotApi:
|
probably because the spaces
import aiohttp from bot.config.logger import log from .errors import TapsError class TgWebData(NamedTuple): class CryptoBotApi:
|
pro, 319 line right?. |
[0504945571] Waiting for 8 seconds before continuing (required by "contacts.ResolveUsername") |
no just take the text from this file and replace all of it with your apy.py |
Worked but it's don't do anything: [0504945571] Waiting for 8 seconds before continuing (required by "contacts.ResolveUsername") |
yeah thats still not good |
after using the aa.txt, it just keep waiting |
2024-09-07 20:42:02 | INFO | 86 | 0504945571 | Wait 11 seconds before start
2024-09-07 20:42:02 | INFO | 86 | 0507166010 | Wait 40 seconds before start
2024-09-07 20:42:02 | INFO | 86 | 0544548116 | Wait 12 seconds before start
2024-09-07 20:42:14 | ERROR | 92 | GLOBAL | 0504945571 | Authorization error: Telegram says: [420 FLOOD_WAIT_X] - A wait of 30 seconds is required (caused by "contacts.ResolveUsername")
2024-09-07 20:42:15 | ERROR | 92 | GLOBAL | 0544548116 | Authorization error: Telegram says: [420 FLOOD_WAIT_X] - A wait of 393 seconds is required (caused by "contacts.ResolveUsername")
2024-09-07 20:42:17 | ERROR | 399 | 0504945571 | Unknown error
Traceback (most recent call last):
File "/root/MuskEmpireBot/main.py", line 13, in
asyncio.run(main())
│ │ └ <function main at 0xffffbb8304a0>
│ └ <function run at 0xffffbae99260>
└ <module 'asyncio' from '/root/.pyenv/versions/3.11.0/lib/python3.11/asyncio/init.py'>
File "/root/.pyenv/versions/3.11.0/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
│ │ └ <coroutine object main at 0xffffb848d3c0>
│ └ <function Runner.run at 0xffffbad10040>
└ <asyncio.runners.Runner object at 0xffffbb6c7cd0>
File "/root/.pyenv/versions/3.11.0/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
│ │ │ └ <Task pending name='Task-1' coro=<main() running at /root/MuskEmpireBot/main.py:8> wait_for=<_GatheringFuture pending cb=[Tas...
│ │ └ <function BaseEventLoop.run_until_complete at 0xffffbad0dbc0>
│ └ <_UnixSelectorEventLoop running=True closed=False debug=False>
└ <asyncio.runners.Runner object at 0xffffbb6c7cd0>
File "/root/.pyenv/versions/3.11.0/lib/python3.11/asyncio/base_events.py", line 637, in run_until_complete
self.run_forever()
│ └ <function BaseEventLoop.run_forever at 0xffffbad0db20>
└ <_UnixSelectorEventLoop running=True closed=False debug=False>
File "/root/.pyenv/versions/3.11.0/lib/python3.11/asyncio/base_events.py", line 604, in run_forever
self._run_once()
│ └ <function BaseEventLoop._run_once at 0xffffbad0f920>
└ <_UnixSelectorEventLoop running=True closed=False debug=False>
File "/root/.pyenv/versions/3.11.0/lib/python3.11/asyncio/base_events.py", line 1909, in _run_once
handle._run()
│ └ <function Handle._run at 0xffffbae99bc0>
└ <Handle Task.task_wakeup()>
File "/root/.pyenv/versions/3.11.0/lib/python3.11/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
│ │ │ │ │ └ <member '_args' of 'Handle' objects>
│ │ │ │ └ <Handle Task.task_wakeup()>
│ │ │ └ <member '_callback' of 'Handle' objects>
│ │ └ <Handle Task.task_wakeup()>
│ └ <member '_context' of 'Handle' objects>
└ <Handle Task.task_wakeup()>
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 (iPad; CPU OS 17_0_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile...
│ │ └ None
│ └ <pyrogram.client.Client object at 0xffffb8a0fdd0>
└ <function run_bot at 0xffffb8dd59e0>
File "/root/MuskEmpireBot/bot/core/bot.py", line 408, in run_bot
await CryptoBot(tg_client=tg_client, additional_data=additional_data).run(proxy=proxy)
│ │ │ └ None
│ │ └ [{'User-Agent': 'Mozilla/5.0 (iPad; CPU OS 17_0_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile...
│ └ <pyrogram.client.Client object at 0xffffb8a0fdd0>
└ <class 'bot.core.bot.CryptoBot'>
File "/root/MuskEmpireBot/bot/core/bot.py", line 322, in login_to_app
self.http_client.headers["Api-Key"] = tg_web_data.hash
The text was updated successfully, but these errors were encountered: