Данный бот предназначен для контроля статуса домашего задания, отправленного на проверку. Периодически бот делает запросы к API Яндекс.Практикум, в случае изменения статуса работы присылает уведомление в Telegram.
Дополнительно реализован контроль ошибок, в случае критических ошибок бот присылает уведомление об этом в Telegram.
- Python 3.9.10
- Python-Telegram-Bot 13.7
Клонировать репозиторий, перейти в новую директорию:
git clone https://github.com/GetLucky777/homework_bot
Инициализировать виртуальное окружение:
python -m venv venv
Активировать виртуальное окружение:
source venv/Scripts/activate
Установить зависимости проекта:
pip install -r requirements.txt
Создать файл .env, добавить токены Телеграм. Яндекс.Практикум, Телеграм Chat ID Запустить бота:
python homework.py