DrillBot (short for menu drilldown bot) is a library to help create remote-control-like Telegram apps.
Here's a sample of the kind of bot you can create:
Add the repo into your project as a git submodule.
$ mkdir mybot
$ cd mybot
$ git init
$ git submodule add https://github.com/davidtorosyan/telegram-drillbot telegram_drillbot
To create your bot, import DrillBot
and create a subclass.
from telegram_drillbot.drillbot.drillbot import DrillBot
from telegram_drillbot.drillbot.transition import MenuTransition
# <define 'home_state' and 'transitions'>
class MyBot(DrillBot):
def __init__(self, token):
super().__init__(token, home_state, transitions)
# <define 'token'>
MyBot(token).start_bot()
To see a full example, see here.