An easy-to-use bot for telegram based on python-droit and python-telegram-bot.
Customize your bot using the Droit Database Script - question-to-answer rules are defined that simple:
TELE*cmd!start->TEXT!Welcome to the telepyd bot.
SRTX!how are you->TEXT!I'm fine.
The integrated telegram-plugins make it possible to display InlineKeyboards
.
Just have a look at data/bot.dda
. If you aren't familiar with Droit Database Script you can learn about it by reading "an introduction to Droit v1.1".
Download or clone this repository.
git clone https://github.com/jarinox/telepyd.git
cd telepyd
and install the requirements from requirements.txt
pip install -r requirements.txt
Rename the file data/config.sample.json
to data/config.json
and insert your token. You can get a token using BotFather. If you want to change the name of your bot or disable logging you can adjust those settings too.
Open the telepyd
folder with your terminal and run:
python3 telepyd.py
This wiki entry from python-telegram-bot explains how to host your bot.