Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 749 Bytes

README.md

File metadata and controls

54 lines (37 loc) · 749 Bytes

CaptchaBot

Telegram-bot (python, aiogram)

Captcha for incoming telegram chats users.

Launching in Docker

Create and start container:

$ export BOT_TOKEN=<BOT_TOKEN>
$ export CHAT_ID_1=<CHAT_ID_1>
$ export CHAT_ID_2=<CHAT_ID_2>
$ export CHAT_ID_3=<CHAT_ID_3>
$ export CHAT_ID_4=<CHAT_ID_4>
$ docker-compose up -d

Stop lifted containers:

$ docker-compose stop

Start stopped containers:

$ docker-compose start

Stop and delete containers and network:

$ docker-compose down

Remove image:

$ docker rmi captcha_bot

Clear logs:

$ sudo rm -rf logs/*

Execute a command in a running container:

$ docker exec -it CaptchaBot bash