How to dockerize your Telegram bot
Clone or fork this repo to use it as a base to create a dockerized Telegram bot, using Python as programming language.
Structure
bot.py
: your bot's codebaseDockerfile
: the file to build the bot image.docker-compose.yml
: used to start the bot.requirements.txt
: used to specify your dependencies.
How to deploy the bot
- Clone or fork this repo.
- Write an
.env
file with yourTELEGRAM_TOKEN
in it and other env vars. - Run
docker-compose up -d
and wait for the build to finish.
That's it. Enjoy your dockerized bot.
Config synology cameras camera example:
{
"id": 3,
"name": "panels",
"skip_first_n_secs": 0,
"max_length_secs": 10,
"scale": 1280
}