{ "info": { "author": "Vince Castellano, Phillip Lopo", "author_email": "surye80@gmail.com, philliplopo@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3 :: Only", "Topic :: Communications :: Chat", "Topic :: Communications :: File Sharing" ], "description": "########################################################################\nTWX: Abstraction Layer Over Telegram's Bot API and MTProto Chat Potocols\n########################################################################\n\n:contributions: Please join https://github.com/datamachine/twx\n:issues: Please use https://github.com/datamachine/twx/issues\n:Python version supported: 3.4\n\n**TWX** is a python interface for the Telegram bot API. It supports\nmaking synchronous and asynchronous calls and converts the response\ninto a usable native python object.\n\nSupport for the MTProto API is in the works, but considered pre-alpha right now.\n\n=======\nInstall\n=======\n\nFor stable:\n\n``pip install twx``\n\nFor dev:\n\n``pip install -i https://testpypi.python.org/pypi twx``\n\n===========\nQuick Start\n===========\n\n\n::\n\n from twx.botapi import TelegramBot, ReplyKeyboardMarkup\n \n \"\"\"\n Setup the bot\n \"\"\"\n \n bot = TelegramBot('')\n bot.update_bot_info().wait()\n print(bot.username)\n\n \"\"\"\n Send a message to a user\n \"\"\"\n user_id = int()\n\n result = bot.send_message(user_id, 'test message body').wait()\n print(result)\n\n \"\"\"\n Get updates sent to the bot\n \"\"\"\n updates = bot.get_updates().wait()\n for update in updates:\n print(update)\n\n \"\"\"\n Use a custom keyboard\n \"\"\"\n keyboard = [\n ['7', '8', '9'],\n ['4', '5', '6'],\n ['1', '2', '3'],\n ['0']\n ]\n reply_markup = ReplyKeyboardMarkup.create(keyboard)\n\n bot.send_message(user_id, 'please enter a number', reply_markup=reply_markup).wait()", "description_content_type": null, "docs_url": "https://pythonhosted.org/twx/", "download_url": "https://github.com/datamachine/twx/archive/0.5a5.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/datamachine/twx", "keywords": "datamachine,telex,telegram,bot,api,rpc", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "twx", "package_url": "https://pypi.org/project/twx/", "platform": "Linux,Unix,MacOsX,Windows", "project_url": "https://pypi.org/project/twx/", "project_urls": { "Download": "https://github.com/datamachine/twx/archive/0.5a5.tar.gz", "Homepage": "https://github.com/datamachine/twx" }, "release_url": "https://pypi.org/project/twx/0.5a5/", "requires_dist": null, "requires_python": null, "summary": "Abstraction Layer Over Telegram's Bot API and MTProto Chat Potocols", "version": "0.5a5" }, "last_serial": 1612473, "releases": { "0.5a4": [ { "comment_text": "", "digests": { "md5": "b8c0a08964b8f911b15998069b5c07f1", "sha256": "00b4a540d590773eff8b8ace31873207b8c98cea61399ec61b447c0e3eadd9b9" }, "downloads": -1, "filename": "twx-0.5a4-py3.4.egg", "has_sig": false, "md5_digest": "b8c0a08964b8f911b15998069b5c07f1", "packagetype": "bdist_egg", "python_version": "3.4", "requires_python": null, "size": 50683, "upload_time": "2015-06-28T05:46:18", "url": "https://files.pythonhosted.org/packages/9e/4c/00e6ac7e4a6536c6373731345aa637a6cc115d52e4e1f8940dec41d29af6/twx-0.5a4-py3.4.egg" } ], "0.5a5": [ { "comment_text": "", "digests": { "md5": "b82c2b62980abc9c15bb5dfe0cf7fe33", "sha256": "37df8219a7430b9cd494c2653a45fa3fb884e1580227cd7ed8dea3fe3233d4eb" }, "downloads": -1, "filename": "twx-0.5a5-py3.4.egg", "has_sig": false, "md5_digest": "b82c2b62980abc9c15bb5dfe0cf7fe33", "packagetype": "bdist_egg", "python_version": "3.4", "requires_python": null, "size": 15740, "upload_time": "2015-06-30T01:35:09", "url": "https://files.pythonhosted.org/packages/5c/59/4546f9e8f1598f12853c15c337478cbd617f1b10e6f44d382c383001673f/twx-0.5a5-py3.4.egg" }, { "comment_text": "", "digests": { "md5": "dd255b3dc68be3123885084cd19b7c03", "sha256": "27c898e5d9c8bb8d87791eaeaa6e3dbc33da9f3f09fc24750e6c3488bda72083" }, "downloads": -1, "filename": "twx-0.5a5.zip", "has_sig": false, "md5_digest": "dd255b3dc68be3123885084cd19b7c03", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10071, "upload_time": "2015-06-30T01:35:20", "url": "https://files.pythonhosted.org/packages/b7/12/68694603d2699ef77489160866324520e930211c973f60b79104748c4a19/twx-0.5a5.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b82c2b62980abc9c15bb5dfe0cf7fe33", "sha256": "37df8219a7430b9cd494c2653a45fa3fb884e1580227cd7ed8dea3fe3233d4eb" }, "downloads": -1, "filename": "twx-0.5a5-py3.4.egg", "has_sig": false, "md5_digest": "b82c2b62980abc9c15bb5dfe0cf7fe33", "packagetype": "bdist_egg", "python_version": "3.4", "requires_python": null, "size": 15740, "upload_time": "2015-06-30T01:35:09", "url": "https://files.pythonhosted.org/packages/5c/59/4546f9e8f1598f12853c15c337478cbd617f1b10e6f44d382c383001673f/twx-0.5a5-py3.4.egg" }, { "comment_text": "", "digests": { "md5": "dd255b3dc68be3123885084cd19b7c03", "sha256": "27c898e5d9c8bb8d87791eaeaa6e3dbc33da9f3f09fc24750e6c3488bda72083" }, "downloads": -1, "filename": "twx-0.5a5.zip", "has_sig": false, "md5_digest": "dd255b3dc68be3123885084cd19b7c03", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10071, "upload_time": "2015-06-30T01:35:20", "url": "https://files.pythonhosted.org/packages/b7/12/68694603d2699ef77489160866324520e930211c973f60b79104748c4a19/twx-0.5a5.zip" } ] }