Working with Yandex.Praktikum API.
Bot checks status of homework reviewing, rejected, approved and send a message to telegram chat if got one of them.
The core library is python-telegram-bot
- Install python 3.7 or later
- Install dependencies
pip install -r requirements.txt - Open telegram client and:
- Use @BotFather to create new bot (command
/newbot). You'll get token - Use @userinfobot and get
user ID
Manual run
- Fill key-fields in
.envfile (use template) - Run
python homework.pyDocker run Rundo
API token here: https://oauth.yandex.ru/authorize?response_type=token&client_id=1d0b9dd4d652455a9eb710d450ff456a
<=== Yandex.Praktikum ===>
Lesson at: Яндекс.Практикум (yandex.ru)