The objective of this project is to create an open source system for the management of telegram bots with the ability to respond to handlers through http apis.
Home Page
Bot manager page
Handler manager
-
- Configure for use with out sudo.
-
Clone this repository:
$: git clone https://github.com/Ymil/telegram-bot-manager.git $: cd telegram-bot-manager
-
Build images
$: docker-compose -f bot-manager-build.yml build
-
Run stack
$: docker-compose -f bot-manager-stack.yml up -d
-
Configure database
docker-compose -f bot-manager-stack.yml up -d docker exec -it telegram-bot-db psql --user postgres -c "create database botmanager" docker exec -it telegram-bot-server bash -c "python manager.py makemigrates; python manager.py migrate";
-
Create first bot, remplace variables $bot_name and $bot_token
INSERT INTO public.bots_bot (id, token, name, response_all, description) VALUES (1, "$bot_name", "$bot_token", false, NULL);
6.1 And copy and insert to
docker exec -it telegram-bot-db psql --user postgres botmanager
6.2 After copy developers/insert.sql to postgres shell
-
Restart task
docker-compose -f bot-manager-stack.yml down docker-compose -f bot-manager-stack.yml up -d
-
Access to telegram bot manager http://localhost:3000/