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

Пишем Telegram-ботов с aiogram 3.x, глава - Знакомство с aiogram. #85

Closed
nikolay-may opened this issue May 6, 2024 · 1 comment

Comments

@nikolay-may
Copy link

Добрый день !
Код из файла config_reader.py может выдавать ошибку -
pydantic_core._pydantic_core.ValidationError: 1 validation error for Settings
bot_token
Field required [type=missing, input_value={}, input_type=dict]

чтобы все работало нужно дописать в файл config_reader.py следующие строки
from dotenv import load_dotenv

load_dotenv()

@MasterGroosha
Copy link
Owner

MasterGroosha commented May 30, 2024

Это необязательно. Вы файл .env создали в каталоге?
Если указан правильный Working Directory, то нужный .env подцепится автоматически.

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

2 participants