{
"info": {
"author": "Will Boyce",
"author_email": "me@willboyce.com",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX",
"Programming Language :: Python :: 2.7"
],
"description": "Disclaimer README\n==================================\n\n|Build Status| |Coverage Status| |Code Quality| |Current Version|\n|Python Versions|\n\nDespite this code having been in production in quite a heavy use\nenvironment for a good few months, I really wouldn't class it as an\nexample of great code.\n\nIt would be fair to say I got sidetracked, and decided to see how much I\ncould abuse certain aspects of Python (such as metaclasses/class\ncreation).\n\nYou have been warned!\n\nWith that out of the way, ``telegrambot`` is pretty easy to get up and\nrunning.\n\n::\n\n % pip install telegrambot\n % cat mybot.cfg\n [core]\n bot_id = \n token = \n [bing]\n key = \n % telegrambot mybot.cfg\n\nAs it stands the framework exposes three commands; ``/crash`` and\n``/hang`` were used to test error handling and threading during\ndevelopment whereas ``/get`` is a bring-your-own-api-key bing image\nsearcher.\n\nAdding plugins aims to be really easy, just create a namespace package\nunder ``telegrambot.plugins`` and subclass\n``telegrambot.plugins.base.BasePlugin`` (now that I think about it, the\nnamespace package may not be necessary - I will have to re-think my\nmotivation on that one).\n\nExample Plugin\n--------------\n\n.. code:: python\n\n from telegrambot.plugins.base import BasePlugin\n\n # due to annoying limitations class names must be unique\n class HelloWorld(BasePlugin):\n # register /hello command to 'hello_handler' method\n commands {'hello': 'hello_handler'}\n\n def hello_handler(self, args, msg):\n # `args` is a list of the arguments after the command:\n # '/hello world' -> args=['world']\n # `msg` is a dictionary representing the Telegram `Message` object\n # see TelegramAPIMixin for available Telegram API functions\n self.send_message('Hello, {}'.(' '.join(args)),\n msg['chat']['id'],\n reply=msg['message_id'])\n\n.. |Build Status| image:: https://img.shields.io/travis/wrboyce/telegrambot.svg\n :target: https://travis-ci.org/wrboyce/telegrambot\n.. |Coverage Status| image:: https://img.shields.io/codecov/c/github/wrboyce/telegrambot.svg\n :target: https://codecov.io/github/wrboyce/telegrambot\n.. |Code Quality| image:: https://img.shields.io/codacy/9f4cdfa263b149c0853fbb3a1ff22e4a.svg\n :target: https://www.codacy.com/app/wrboyce/telegrambot\n.. |Current Version| image:: https://img.shields.io/pypi/v/telegrambot.svg\n :target: https://pypi.python.org/pypi/telegrambot\n.. |Python Versions| image:: https://img.shields.io/pypi/pyversions/telegrambot.svg\n :target: https://pypi.python.org/pypi/telegrambot",
"description_content_type": null,
"docs_url": null,
"download_url": "UNKNOWN",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://www.github.com/wrboyce/telegrambot",
"keywords": null,
"license": "License :: OSI Approved :: Apache Software License",
"maintainer": null,
"maintainer_email": null,
"name": "telegrambot",
"package_url": "https://pypi.org/project/telegrambot/",
"platform": "Operating System :: MacOS :: MacOS X,Operating System :: POSIX",
"project_url": "https://pypi.org/project/telegrambot/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "https://www.github.com/wrboyce/telegrambot"
},
"release_url": "https://pypi.org/project/telegrambot/2.4.0.dev12/",
"requires_dist": null,
"requires_python": null,
"summary": "Pluggable Python Telegram Bot",
"version": "2.4.0.dev12"
},
"last_serial": 2499301,
"releases": {
"2.4.0.dev10": [
{
"comment_text": "",
"digests": {
"md5": "79496c4341e6da6004a1f6ff7aed00a8",
"sha256": "0862ee363ef3ea85051d24c41af3bcb843a2aca0e9ae768d0d18e4504047ad41"
},
"downloads": -1,
"filename": "telegrambot-2.4.0.dev10.tar.gz",
"has_sig": true,
"md5_digest": "79496c4341e6da6004a1f6ff7aed00a8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 22038,
"upload_time": "2016-12-05T00:27:22",
"url": "https://files.pythonhosted.org/packages/6a/b9/5990fe8ae170959ca3e64a4d74ab97087fb824105df3ac6645063b0c8110/telegrambot-2.4.0.dev10.tar.gz"
}
],
"2.4.0.dev11": [
{
"comment_text": "",
"digests": {
"md5": "f4792e26bc538a5cb4685c4711118b07",
"sha256": "4f5732aced78ef6835fe8d9340c4cd0317eff60793edf5c35981c2b14c17007f"
},
"downloads": -1,
"filename": "telegrambot-2.4.0.dev11.tar.gz",
"has_sig": true,
"md5_digest": "f4792e26bc538a5cb4685c4711118b07",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 22043,
"upload_time": "2016-12-05T00:37:49",
"url": "https://files.pythonhosted.org/packages/eb/2c/4eb0948246790fb36f06129f168e821672e225c60538da6d0f4d08a0d3ba/telegrambot-2.4.0.dev11.tar.gz"
}
],
"2.4.0.dev12": [
{
"comment_text": "",
"digests": {
"md5": "ccd9f300c1c187a64d1cb0be391996e0",
"sha256": "76ed6804c9d13f53e257a6ce801e0c301c4670201e5a2418272768bf8c49658b"
},
"downloads": -1,
"filename": "telegrambot-2.4.0.dev12.tar.gz",
"has_sig": true,
"md5_digest": "ccd9f300c1c187a64d1cb0be391996e0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 22049,
"upload_time": "2016-12-05T00:59:02",
"url": "https://files.pythonhosted.org/packages/d0/c2/64ac235f2e9ffd7d1dbaf68c9c071987d867e7fe41c3d663466d238be5b5/telegrambot-2.4.0.dev12.tar.gz"
}
],
"2.4.0.dev6": [
{
"comment_text": "",
"digests": {
"md5": "07e87d97756623605ef592b013d8640c",
"sha256": "99adc5591c03b156d3867ef8123ed90974f50ca2c65e5793eb1ba6be8a4fbf1b"
},
"downloads": -1,
"filename": "telegrambot-2.4.0.dev6.tar.gz",
"has_sig": false,
"md5_digest": "07e87d97756623605ef592b013d8640c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 22317,
"upload_time": "2016-11-14T12:48:39",
"url": "https://files.pythonhosted.org/packages/5a/0d/b8253000b6119389fa31a4de77cc5c00a17a5f74526d981e9b78ebeff02c/telegrambot-2.4.0.dev6.tar.gz"
}
],
"2.4.0.dev8": [
{
"comment_text": "",
"digests": {
"md5": "8e5228f8f03c1bcd0984bb281c045a80",
"sha256": "31f2ab56b1023d8a7dbdfcc21a777e66e9309a6d3f3c1dc7556dd81f8db45f72"
},
"downloads": -1,
"filename": "telegrambot-2.4.0.dev8.tar.gz",
"has_sig": true,
"md5_digest": "8e5228f8f03c1bcd0984bb281c045a80",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 22027,
"upload_time": "2016-12-05T00:07:22",
"url": "https://files.pythonhosted.org/packages/35/d9/6a814404a36d8ce9fbfef4f19d7be8daa224f103cdd0cf66f0b386a9868e/telegrambot-2.4.0.dev8.tar.gz"
}
],
"2.4.0.dev9": [
{
"comment_text": "",
"digests": {
"md5": "b3e41eba14292cc43c13e57318c3c8f9",
"sha256": "8eede59200e4972709e6e305c98537e835e67e2dff24ee3c5fb63fa3c26d9a16"
},
"downloads": -1,
"filename": "telegrambot-2.4.0.dev9.tar.gz",
"has_sig": true,
"md5_digest": "b3e41eba14292cc43c13e57318c3c8f9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 22026,
"upload_time": "2016-12-05T00:16:28",
"url": "https://files.pythonhosted.org/packages/37/4d/7aecdbe9e01612ced13e8307f9eac044fcb6076a5b6ce317a495c2848484/telegrambot-2.4.0.dev9.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "ccd9f300c1c187a64d1cb0be391996e0",
"sha256": "76ed6804c9d13f53e257a6ce801e0c301c4670201e5a2418272768bf8c49658b"
},
"downloads": -1,
"filename": "telegrambot-2.4.0.dev12.tar.gz",
"has_sig": true,
"md5_digest": "ccd9f300c1c187a64d1cb0be391996e0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 22049,
"upload_time": "2016-12-05T00:59:02",
"url": "https://files.pythonhosted.org/packages/d0/c2/64ac235f2e9ffd7d1dbaf68c9c071987d867e7fe41c3d663466d238be5b5/telegrambot-2.4.0.dev12.tar.gz"
}
]
}