B
B
berm_13372021-07-21 16:07:05
Bots
berm_1337, 2021-07-21 16:07:05

What is the aiogram telegram bot complaining about?

Friends, forum users. I'm already tired. I downloaded the template from the guide, entered my data where necessary. All exactly I see a number of errors it is not clear because of what.

Traceback (most recent call last):
  File "C:/Users/nowos/Desktop/aiogram-bot-template-master/app.py", line 3, in <module>
    from loader import dp
  File "C:\Users\nowos\Desktop\aiogram-bot-template-master\loader.py", line 4, in <module>
    from data import config
  File "C:\Users\nowos\Desktop\aiogram-bot-template-master\data\config.py", line 7, in <module>
    BOT_TOKEN = env.str("17409""""5"""""""""wHBFj4B""""""H2-_SV""""_Mk")  # Забираем значение типа str
  File "C:\Users\nowos\Desktop\aiogram-bot-template-master\venv\lib\site-packages\environs\__init__.py", line 75, in method
    raise EnvValidationError('Environment variable "{}" not set'.format(source_key), [message])
environs.EnvValidationError: Environment variable "17409""""5"""""""""wHBFj4B""""""H2-_SV""""_Mk" not set

Help me to understand? What does he not like? The templates must be workable, given that it is downloaded from a reputable source.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shurshur, 2021-07-21
@shurshur

BOT_TOKEN="your_token"
Everything else is superfluous.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question