Skip to content

Constructor for Telegram chat bots. Like WordPress, but for Telegram bots.

Notifications You must be signed in to change notification settings

brebiv/BotMaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BotMaker

Web-interface preview

Dashboard page Builder page Add command modal

Installation guide

Clone repository

$ git clone https://github.com/brebiv/BotMaker
$ cd BotMaker

Create virtual environment

$ python3 -m venv venv

Activate virtual environment

$ source venv/bin/activate

Install python requirements

$ pip install -r requirements.txt

Migrate Django database

$ python manage.py migrate

Create Django superuser account

$ python manage.py createsuperuser

Run local Django development server and run BotRunner instance.

You should use two terminal windows or run them in the background.

$ python manage.py runserver
$ python manage.py runbotrunner

Go to http://localhost:8000/admin. Login with credntials you set in createsuperuser step.

Go to bots folder and click add bot. Input bot token and choose owner.

You can register new bot and obtain token from Telegram Bot @BotFather.

Now go to http://localhost:8000/ click Dashboard button there input PIN-code which is 10891089. Done. You have installed BotRunner localy. Congrats. Now try to figure out how to use it on your own. It does not refresh commands automatically, so you have to click stop and then start button to make bot respond to commands you've made.