{ "info": { "author": "Mahdi Ghane.g", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: CherryPy", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: POSIX :: Linux", "Operating System :: Unix", "Programming Language :: Python :: 3 :: Only", "Topic :: Software Development :: Libraries" ], "description": "Telegram Bot for Cherrypy\n=========================\n\n`python-telegram-bot `_ support for cherrypy.\n\nInstallation\n------------\n::\n\n pip install marbaloo_telegram\n\nUsage\n-----\nFor the simple way you can just send anything supported by `python-telegram-bot `_,\n\n::\n\n # app.py\n import marbaloo_telegram\n import cherrypy\n\n marbaloo_telegram.Plugin(cherrypy.engine, 'TOKEN').subscribe()\n cherrypy.tools.telegram = marbaloo_telegram.Tool()\n\n\n class Root(object):\n @cherrypy.expose\n def index(self):\n bot = cherrypy.request.telegram_dp.bot\n message = bot.sendMessage(text='TestMessage!', chat_id='38855883')\n return message.text\n\n root_path = os.path.dirname(__file__)\n cherrypy.quickstart(Root(), '/', {\n '/': {\n 'tools.telegram.on': True,\n }\n })\n\nBut if you want to use more interactive interface,\nyou can get bot dispatcher from plugin and define your telegram controller after ``cherrypy.engine.start``,", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/marbaloo/marbaloo_telegram", "keywords": "telegram_bot telegram python_telegram_bot cherrypy marbaloo marbaloo_telegram", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "marbaloo_telegram", "package_url": "https://pypi.org/project/marbaloo_telegram/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/marbaloo_telegram/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/marbaloo/marbaloo_telegram" }, "release_url": "https://pypi.org/project/marbaloo_telegram/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "python-telegram-bot support for cherrypy.", "version": "0.1.0" }, "last_serial": 2640495, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "7b6f248f805f509534e9b7e669f167af", "sha256": "fb4b6f5b7ed40f5596dc8a39b77e9166586e38ce77f0ad98e7e9481487e0af91" }, "downloads": -1, "filename": "marbaloo_telegram-0.1.0.tar.gz", "has_sig": false, "md5_digest": "7b6f248f805f509534e9b7e669f167af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2429, "upload_time": "2017-02-14T08:53:05", "url": "https://files.pythonhosted.org/packages/c3/d6/67e5e6fe1b3a06d7568e2378f1f1f815c7e4454deadeb4dd5ac4572a44bb/marbaloo_telegram-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7b6f248f805f509534e9b7e669f167af", "sha256": "fb4b6f5b7ed40f5596dc8a39b77e9166586e38ce77f0ad98e7e9481487e0af91" }, "downloads": -1, "filename": "marbaloo_telegram-0.1.0.tar.gz", "has_sig": false, "md5_digest": "7b6f248f805f509534e9b7e669f167af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2429, "upload_time": "2017-02-14T08:53:05", "url": "https://files.pythonhosted.org/packages/c3/d6/67e5e6fe1b3a06d7568e2378f1f1f815c7e4454deadeb4dd5ac4572a44bb/marbaloo_telegram-0.1.0.tar.gz" } ] }