/wachter_bot

Butler for your Telegram community

Primary LanguagePython

Wachter Telegram bot

Docker prod Docker testing

telegram logo Вахтёр Бот

photo_2023-10-28_15-36-58

Как добавить в свою группу

  1. Добавить в группу.
  2. Сделать администратором.
  3. Опционально, настроить бота в личном чате.

Local Development

Prerequisites

We are using black to keep our code looking nice and tidy. To make things easier, there's a pre-commit hook which ensures that files to commit are properly formatted. You need to install and initialize pre-commit. Any installation should suffice, one can find pipenv good choice since we use it in this project. After installation run:

pre-commit install

Then will be executed black against changed files in commits.

Running

  1. Run cp env.template .env;

  2. Set TELEGRAM_TOKEN and TELEGRAM_ERROR_CHAT_ID in .env;

  3. Run:

docker-compose -f docker-compose.dev.yml build && docker-compose -f docker-compose.dev.yml up