Skip to main content

python-telegram-bot support for cherrypy.

Project description

python-telegram-bot support for cherrypy.


pip install marbaloo_telegram


For the simple way you can just send anything supported by python-telegram-bot,

import marbaloo_telegram
import cherrypy

marbaloo_telegram.Plugin(cherrypy.engine, 'TOKEN').subscribe() = marbaloo_telegram.Tool()

class Root(object):
    def index(self):
        bot =
        message = bot.sendMessage(text='TestMessage!', chat_id='38855883')
        return  message.text

root_path = os.path.dirname(__file__)
cherrypy.quickstart(Root(), '/', {
                            '/': {
                                'tools.telegram.on': True,

But if you want to use more interactive interface, you can get bot dispatcher from plugin and define your telegram controller after cherrypy.engine.start,

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
marbaloo_telegram-0.1.0.tar.gz (2.4 kB) Copy SHA256 hash SHA256 Source None Feb 14, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page