{ "info": { "author": "Rene Tanczos", "author_email": "gravmatt@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7" ], "description": "telegram-bot\r\n============\r\n\r\nCreate telegram bot services in python.\r\n\r\nInstallation\r\n------------\r\n\r\nInstall through **pip**.\r\n\r\n::\r\n\r\n $ pip install telegram-bot\r\n\r\nor get from source\r\n\r\n::\r\n\r\n $ git clone https://github.com/gravmatt/telegram-bot.git\r\n $ cd telegram-bot\r\n $ python setup.py install\r\n\r\nUsage\r\n-----\r\n\r\nThis is just a wrapper for the Telegram Bots API.\r\n\r\nThe readme just covers the usage of this module.\r\n\r\nFor more details about the Telegram Bots API, visit `Telegram Bots API\r\nDocumentation `__.\r\n\r\nCreate a bot\r\n------------\r\n\r\n::\r\n\r\n from telegram import Bot, ChatActions\r\n\r\n myBot = Bot('1234:mySuperSecetTokenFromBotFather')\r\n\r\ngetMe\r\n-----\r\n\r\n::\r\n\r\n result = myBot.getMe()\r\n\r\n`Telegram Bots API\r\n\\|\u00a0getMe `__\r\n\r\nsendMessage\r\n-----------\r\n\r\n::\r\n\r\n result = myBot.sendMessage(chat_id, text, parse_mode='Markdown', disable_web_page_preview=True, disable_notification=False, reply_to_message_id=None, reply_markup=None)\r\n\r\n`Telegram Bots API \\|\r\nsendMessage `__\r\n\r\nforwardMessage\r\n--------------\r\n\r\n::\r\n\r\n result = myBot.forwardMessage(chat_id, from_chat_id, message_id, disable_notification=None)\r\n\r\n`Telegram Bots API\r\n\\|\u00a0forwardMessage `__\r\n\r\nsendPhoto\r\n---------\r\n\r\n::\r\n\r\n result = myBot.sendPhoto(chat_id, photopath, caption=None, reply_to_message_id=None, reply_markup=None)\r\n\r\n`Telegram Bots API\r\n\\|\u00a0sendPhoto `__\r\n\r\nsendAudio\r\n---------\r\n\r\n::\r\n\r\n result = myBot.sendAudio(chat_id, audiopath, duration=None, performer=None, title=None, reply_to_message_id=None, reply_markup=None)\r\n\r\n`Telegram Bots API\r\n\\|\u00a0sendAudio `__\r\n\r\nsendDocument\r\n------------\r\n\r\n::\r\n\r\n result = myBot.sendDocument(chat_id, documentpath, caption=None, disable_notification=None, reply_to_message_id=None, reply_markup=None)\r\n\r\n`Telegram Bots API\r\n\\|\u00a0sendDocument `__\r\n\r\nsendSticker\r\n-----------\r\n\r\n::\r\n\r\n result = myBot.sendSticker(chat_id, stickerpath, disable_notification=None, reply_to_message_id=None, reply_markup=None)\r\n\r\n`Telegram Bots API\r\n\\|\u00a0sendSticker `__\r\n\r\nsendVideo\r\n---------\r\n\r\n::\r\n\r\n result = myBot.sendVideo(chat_id, videopath, duration=None, caption=None, disable_notification=None, reply_to_message_id=None, reply_markup=None)\r\n\r\n`Telegram Bots API\r\n\\|\u00a0sendVideo `__\r\n\r\nsendVoice\r\n---------\r\n\r\n::\r\n\r\n result = myBot.sendVoice(chat_id, voicepath, duration=None, disable_notification=None, reply_to_message_id=None, reply_markup=None)\r\n\r\n`Telegram Bots API\r\n\\|\u00a0sendVoice `__\r\n\r\nsendLocation\r\n------------\r\n\r\n::\r\n\r\n result = myBot.sendLocation(chat_id, latitude, longitude, disable_notification=None, reply_to_message_id=None, reply_markup=None)\r\n\r\n`Telegram Bots API \\|\r\nsendLocation `__\r\n\r\nsendChatAction\r\n--------------\r\n\r\n::\r\n\r\n result = myBot.sendChatAction(chat_id, action)\r\n\r\n # action = one of the ChatActions (need to be imported first)\r\n\r\n ChatActions.typing\r\n ChatActions.upload_photo\r\n ChatActions.record_video\r\n ChatActions.upload_video\r\n ChatActions.record_audio\r\n ChatActions.upload_audio\r\n ChatActions.upload_document\r\n ChatActions.find_location\r\n\r\n`Telegram Bots API \\|\r\nsendChatAction `__\r\n\r\ngetUserProfilePhotos\r\n--------------------\r\n\r\n::\r\n\r\n result = myBot.getUserProfilePhotos(user_id, offset=None, limit=None)\r\n\r\n`Telegram Bots API \\|\r\ngetUserProfilePhotos `__\r\n\r\ngetFile\r\n-------\r\n\r\n::\r\n\r\n result = myBot.getFile(file_id, filename=None, directory=None)\r\n\r\n`Telegram Bots API \\|\r\ngetFile `__\r\n\r\nInline module\r\n-------------\r\n\r\n**Sorry, but it is currently not supported**\r\n\r\n**But it will follow soon!**\r\n\r\nThanks\r\n======\r\n\r\n`bottle Project `__\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n**`Bottle Micro Web Framework -\r\nhttp://bottlepy.org `__**\r\n\r\nLicence\r\n-------\r\n\r\nThe MIT License (MIT)\r\n\r\nCopyright (c) 2016 Ren\u00e9 Tanczos\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a\r\ncopy of this software and associated documentation files (the\r\n\"Software\"), to deal in the Software without restriction, including\r\nwithout limitation the rights to use, copy, modify, merge, publish,\r\ndistribute, sublicense, and/or sell copies of the Software, and to\r\npermit persons to whom the Software is furnished to do so, subject to\r\nthe following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included\r\nin all copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\nOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\r\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\r\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\r\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\r\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/gravmatt/telegram-bot", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "telegram-bot", "package_url": "https://pypi.org/project/telegram-bot/", "platform": "all", "project_url": "https://pypi.org/project/telegram-bot/", "project_urls": { "Homepage": "https://github.com/gravmatt/telegram-bot" }, "release_url": "https://pypi.org/project/telegram-bot/0.1/", "requires_dist": null, "requires_python": "", "summary": "Create telegram bot services in python.", "version": "0.1" }, "last_serial": 2009631, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "b648fb5516bed37daf52626d6d9cefab", "sha256": "3df8e76e485410bb770836eff830a0dec29fccad9fdf5fd449e3c803abb9b902" }, "downloads": -1, "filename": "telegram-bot-0.1.tar.gz", "has_sig": false, "md5_digest": "b648fb5516bed37daf52626d6d9cefab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 51312, "upload_time": "2016-03-16T08:12:51", "url": "https://files.pythonhosted.org/packages/0c/89/b5f6cdebf62f1b37dfc0fd53fee0f92760531a51d834e5238b3110429e93/telegram-bot-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b648fb5516bed37daf52626d6d9cefab", "sha256": "3df8e76e485410bb770836eff830a0dec29fccad9fdf5fd449e3c803abb9b902" }, "downloads": -1, "filename": "telegram-bot-0.1.tar.gz", "has_sig": false, "md5_digest": "b648fb5516bed37daf52626d6d9cefab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 51312, "upload_time": "2016-03-16T08:12:51", "url": "https://files.pythonhosted.org/packages/0c/89/b5f6cdebf62f1b37dfc0fd53fee0f92760531a51d834e5238b3110429e93/telegram-bot-0.1.tar.gz" } ] }