Skip to content

davidtorosyan/telegram-drillbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DrillBot - The Telegram Menu Bot

Table of contents

Introduction

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:

Demo: UniversalRemoteBot.py

Installing

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

Usage

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.

License

MIT

About

DrillBot - The Telegram Menu Bot

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages