Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Error #4

Open
ItsAmirAT opened this issue Sep 14, 2024 · 0 comments
Open

Error #4

ItsAmirAT opened this issue Sep 14, 2024 · 0 comments

Comments

@ItsAmirAT
Copy link

Traceback (most recent call last):
  File "/root/hamster_kombat_instant_keygen_tg/main.py", line 18, in <module>
    asyncio.run(start())
  File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/root/hamster_kombat_instant_keygen_tg/main.py", line 13, in start
    from bot.startup import startup_bot
  File "/root/hamster_kombat_instant_keygen_tg/bot/startup.py", line 15, in <module>
    bot = Bot(
          ^^^^
  File "/root/hamster_kombat_instant_keygen_tg/venv/lib/python3.12/site-packages/aiogram/client/bot.py", line 276, in __init__
    validate_token(token)
  File "/root/hamster_kombat_instant_keygen_tg/venv/lib/python3.12/site-packages/aiogram/utils/token.py", line 17, in validate_token
    raise TokenValidationError(
aiogram.utils.token.TokenValidationError: Token is invalid! It must be 'str' type instead of <class 'NoneType'> type.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant