Telegram bot for sending notifications about verification of works on dvmn.org.
pip install -r requirements.txt
- Run on local machine
To get started you need:
Get a token from dvmn.org Then create a bot in TG (How to create a channel, a bot and get a token.) Find out your id in telegram (you can find out by writing to the bot @userinfobot)
Create .env file with environment variables:
DEVMAN_API_TOKEN=<TOKEN_DEVMAN>
TG_TOKEN=<TOKEN_BOT>
TG_CHAT_ID=<CHAT_ID>
python main.py
- Register on the site and download Docker
- Run the image creation command
docker build --tag dvmn-bot-docker .
- Click the Run button in Docker Desktop, set the environment variables and run the image.
- Or run the container using the command
docker run -d --env-file.env dvmn-bot-docker