{ "info": { "author": "Juan Madurga", "author_email": "jlmadurga@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "=============================\ndjango-telegram-bot\n=============================\nCI:\n\n.. image:: https://travis-ci.org/jlmadurga/django-telegram-bot.svg?branch=master\n :target: https://travis-ci.org/jlmadurga/django-telegram-bot\n\n.. image:: https://coveralls.io/repos/github/jlmadurga/django-telegram-bot/badge.svg?branch=master \n\t:target: https://coveralls.io/github/jlmadurga/django-telegram-bot?branch=master\n \n.. image:: https://requires.io/github/jlmadurga/django-telegram-bot/requirements.svg?branch=master\n :target: https://requires.io/github/jlmadurga/django-telegram-bot/requirements/?branch=master\n :alt: Requirements Status\n \nPyPI:\n\n\n.. image:: https://img.shields.io/pypi/v/django-telegram-bot.svg\n :target: https://pypi.python.org/pypi/django-telegram-bot\n\nDocs:\n\n.. image:: https://readthedocs.org/projects/django-telegram-bot/badge/?version=latest\n :target: https://readthedocs.org/projects/django-telegram-bot/?badge=latest\n :alt: Documentation Status\n\nDjango app to write Telegram bots. Just define commands and how to handle them.\n\n**Try Permabots**: more stable django app for bots https://github.com/jlmadurga/permabots\n\nNOTE: Just for text messages at this moment.\n\nDocumentation\n-------------\n\nThe full documentation is at https://django-telegram-bot.readthedocs.org.\n\nTelegram API documentation at https://core.telegram.org/bots/api\n\nQuickstart\n----------\n\nInstall django-telegram-bot::\n\n pip install django-telegram-bot\n \nAdd ``telegrambot`` and ``rest_framework`` to your ``INSTALLED_APPS``, and run::\n\n\t$ python manage.py migrate\n\t\n\nAfter creating a bot in Telegram Platform, create at least one bot with django admin. Token is the only\nrequired field. You may need to provided public key certificate for your server. https://core.telegram.org/bots/self-signed\nHeroku has https and ssl by default so it is a good option if you dont want to deal with that.\n\nAdd webhook url to your urlpatterns::\n\n\turl(r'^telegrambot/', include('telegrambot.urls', namespace=\"telegrambot\")\t\n\nDefine whe file where commands will be defined in ``urlpatterns`` variable, analogue to django ``urls``\nand ``ROOT_URLCONF``::\n\n\tTELEGRAM_BOT_HANDLERS_CONF = \"app.handlers\"\n\t\nSet bot commands handlers is very easy just as defining `urls` in django. Module with ``urlpatterns`` that list \ndifferent handlers. You can `regex` directly or use shortcuts like `command` or `unknown_command` ::\n\n\turlpatterns = [command('start', StartView.as_command_view()),\n \t command('author', AuthorCommandView.as_command_view()),\n \t command('author_inverse', AuthorInverseListView.as_command_view()),\n command('author_query', login_required(AuthorCommandQueryView.as_command_view())),\n unknown_command(UnknownView.as_command_view()),\n regex(r'author_(?P\\w+)', AuthorName.as_command_view()),\n ]\n\nTo set the webhook for telegram you need ``django.contrib.sites`` installed, ``SITE_ID`` configured \nin settings and with it correct value in the DB. The webhook for each bot is set when a Bot is saved and \n``enabled`` field is set to true.\n\t\nBot views responses with Telegram messages to the user who send the command with a text message and keyboard.\nCompound with a context and a template. The way it is handled is analogue to Django views. Visits docs for more \ndetails https://django-telegram-bot.readthedocs.org/usage.html\n\n\nFeatures\n--------\n\n* Multiple bots\n* Message handling definition.\n* Authentication\n* Text responses and keyboards. \n* Media messages not supported.\n* Only Markup parse mode.\n\n.. image:: https://raw.github.com/jlmadurga/django-oscar-telegram-bot/master/docs/imgs/list_commands.png\n\n.. image:: https://raw.github.com/jlmadurga/django-oscar-telegram-bot/master/docs/imgs/categories.png\n\nRunning Tests\n--------------\n\nDoes the code actually work?\n\n::\n\n source /bin/activate\n (myenv) $ pip install -r requirements/test.txt\n (myenv) $ make test\n (myenv) $ make test-all\n\n\n\n\n\n\nHistory\n-------\n\n0.1.0 (2016-21-01)\n++++++++++++++++++\n\n* First release on PyPI.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jlmadurga/django-telegram-bot", "keywords": "django-telegram-bot", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-telegram-bot", "package_url": "https://pypi.org/project/django-telegram-bot/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-telegram-bot/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/jlmadurga/django-telegram-bot" }, "release_url": "https://pypi.org/project/django-telegram-bot/0.6.0/", "requires_dist": null, "requires_python": null, "summary": "Django app to write Telegram bots", "version": "0.6.0" }, "last_serial": 2210508, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "28796945c791f4494c4f6428b70bdee3", "sha256": "d1c28aa72225ab93654e25d5d9473ae56c99f496de1d60d323db17e1656b0346" }, "downloads": -1, "filename": "django_telegram_bot-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "28796945c791f4494c4f6428b70bdee3", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 14816, "upload_time": "2016-01-25T13:56:04", "url": "https://files.pythonhosted.org/packages/e7/bd/25cb4f246c53a3fa8a6588cebe1cf76ca419de1da29efd7f527be50e4692/django_telegram_bot-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fbdf0e2f20ce7435246998b849a6498f", "sha256": "fb7bc346c28770b9e2b68a442e7903dcb85869cf927ab5fd7467b23ea36b86bf" }, "downloads": -1, "filename": "django-telegram-bot-0.1.0.tar.gz", "has_sig": false, "md5_digest": "fbdf0e2f20ce7435246998b849a6498f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11089, "upload_time": "2016-01-25T13:55:42", "url": "https://files.pythonhosted.org/packages/38/38/459bcc8fae1b66d836f90a220984b9102b87e83764760caffebfc723394d/django-telegram-bot-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "3a880f2354e1a28dbb3357cc460b1333", "sha256": "1be9bdd8c65326f577f19efc5c0fa79cd0fa9b3b55f5a32f2e9aebd5b5c69d20" }, "downloads": -1, "filename": "django_telegram_bot-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3a880f2354e1a28dbb3357cc460b1333", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 16101, "upload_time": "2016-01-27T12:22:56", "url": "https://files.pythonhosted.org/packages/2e/33/839f438e4d28a0c606014f756b0f962ae44a1e79617fff79912e6c7bf5db/django_telegram_bot-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b85d629edad789376242149f13470a12", "sha256": "e4b8a75c5c659ba8be1c923accaa14ae04c4821622563c52a41408a2995d3b71" }, "downloads": -1, "filename": "django-telegram-bot-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b85d629edad789376242149f13470a12", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11574, "upload_time": "2016-01-27T12:22:50", "url": "https://files.pythonhosted.org/packages/f7/7c/7ff4dfce120b3370457f6226436e42c976646e0037f3d51ad4b871c7527d/django-telegram-bot-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "482482fe7c720be774af06d69956bea4", "sha256": "a07eec442b246722c26fafc6e510ce9e137529c453ac146d1881c5af8bdf7bf1" }, "downloads": -1, "filename": "django_telegram_bot-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "482482fe7c720be774af06d69956bea4", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 16396, "upload_time": "2016-01-28T17:35:24", "url": "https://files.pythonhosted.org/packages/08/a3/8a5f741b0d389cffdf704bf515c889b17f6d708d725e51a8b01ebc80f131/django_telegram_bot-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1a9312f33a5e758505c7e05b83f91dff", "sha256": "141794fa4aa20d36e848faaa3f9eac5cd1a6cf8781dc3fc190a438f0cfe39c56" }, "downloads": -1, "filename": "django-telegram-bot-0.2.0.tar.gz", "has_sig": false, "md5_digest": "1a9312f33a5e758505c7e05b83f91dff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11757, "upload_time": "2016-01-28T17:35:18", "url": "https://files.pythonhosted.org/packages/4c/17/377e06305cfc1009c5fc23307b8c444116b0e671f4e934f9328ff801672c/django-telegram-bot-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "4b819147093579a6abb2c399c32da5de", "sha256": "744ae4c843f51a013b942a995d65443d409ff439f8ba6a35fa5d2d74e0b39705" }, "downloads": -1, "filename": "django_telegram_bot-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4b819147093579a6abb2c399c32da5de", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 18396, "upload_time": "2016-01-29T17:34:12", "url": "https://files.pythonhosted.org/packages/84/44/8730fbb61b6baa765eb74453798ad11b9c668e279567bfcc8346aa8b15f6/django_telegram_bot-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3d10a811a2e16a65506ece138bdbf767", "sha256": "2d102d6e283745109902558c7366b2e4e6576bcd67a621d4432bb85bd6e0f529" }, "downloads": -1, "filename": "django-telegram-bot-0.2.1.tar.gz", "has_sig": false, "md5_digest": "3d10a811a2e16a65506ece138bdbf767", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13035, "upload_time": "2016-01-29T17:34:06", "url": "https://files.pythonhosted.org/packages/f5/cd/1363c68371b511e0a9bc200f085250763c219ab2984c7ac43c2c4ed9bbe0/django-telegram-bot-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "3546a6fe4fd247f0489e61df6c843c2a", "sha256": "6f25aefee94090d7baf76cd3206b33c904c471b9127619ba0deec51c0447b116" }, "downloads": -1, "filename": "django_telegram_bot-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3546a6fe4fd247f0489e61df6c843c2a", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 19182, "upload_time": "2016-01-31T14:49:08", "url": "https://files.pythonhosted.org/packages/4a/e6/f72a25f61a085fbd9b37686f10a0f6a16342e0f2169fe2264639d368dac8/django_telegram_bot-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1830874c88f48895eaac537b3e55b90f", "sha256": "04e34fa0d16841ceaa8776c9bba86dfa2367d87b665edf294ceadf9b57424b1e" }, "downloads": -1, "filename": "django-telegram-bot-0.3.0.tar.gz", "has_sig": false, "md5_digest": "1830874c88f48895eaac537b3e55b90f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13551, "upload_time": "2016-01-31T14:49:01", "url": "https://files.pythonhosted.org/packages/12/bd/cb8a39f541aa90a76a42314e369fd44bbe7ec8a96f2d5b3d0c400538e711/django-telegram-bot-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "bcf157ec5e0c67e00d75c95e39eb710b", "sha256": "2c7cac7f113d20225487ffffb290b65b69f08673d00fe19eb44efdd90334a97d" }, "downloads": -1, "filename": "django_telegram_bot-0.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bcf157ec5e0c67e00d75c95e39eb710b", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 26783, "upload_time": "2016-02-03T17:49:34", "url": "https://files.pythonhosted.org/packages/c2/09/71b2bdc3726dc6d44e2d02a098a82a98accd74c8356b31abcf1f4edc8470/django_telegram_bot-0.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ce98e8cae202528b02d18cb23dea05c5", "sha256": "0f7ef4fe6399fafbfafebe6274a2a05974075040517c412cd1f8f5b286074037" }, "downloads": -1, "filename": "django-telegram-bot-0.4.0.tar.gz", "has_sig": false, "md5_digest": "ce98e8cae202528b02d18cb23dea05c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16180, "upload_time": "2016-02-03T17:49:26", "url": "https://files.pythonhosted.org/packages/8c/12/4194cf97b78bf20390bb3803bc24e5d39886ffeb40a7aa07fe76f0ac7854/django-telegram-bot-0.4.0.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "3017c3e0b129f7418c7d335a06349b5d", "sha256": "e10055f4618a7517dfe5766291173115b2972e23036d7cfdeb90ea565d46c044" }, "downloads": -1, "filename": "django_telegram_bot-0.5.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3017c3e0b129f7418c7d335a06349b5d", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 25889, "upload_time": "2016-02-09T13:02:14", "url": "https://files.pythonhosted.org/packages/56/f2/c52ff888cd0ca16af09aa018303a1ac562903f6c3bb41d75cef6c256a2d5/django_telegram_bot-0.5.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0da77cb07fcf3a9343dec58dbc06fb07", "sha256": "2682029f3f3d276e1938883b0aa264abe2a68177adeef64c81767db5327a0969" }, "downloads": -1, "filename": "django-telegram-bot-0.5.0.tar.gz", "has_sig": false, "md5_digest": "0da77cb07fcf3a9343dec58dbc06fb07", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16114, "upload_time": "2016-02-09T13:01:52", "url": "https://files.pythonhosted.org/packages/b3/a4/b709b7d634dce5569b31225ffc95f747364bbdd831eb678b1bd038dda1b2/django-telegram-bot-0.5.0.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "8636354dd9353bbdec466b016ddf0631", "sha256": "94ed5df1c3195e7c69336deee0dbcc26e89320cbd314c0d040cd4fc5e9a48fe8" }, "downloads": -1, "filename": "django_telegram_bot-0.5.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8636354dd9353bbdec466b016ddf0631", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 25926, "upload_time": "2016-04-29T10:59:48", "url": "https://files.pythonhosted.org/packages/ac/61/a05dcb802fbb9e785178a5cabdb799764198179ecf2236a4bf938c7c2025/django_telegram_bot-0.5.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b29a8b07eee6a7878716be8b3d34da84", "sha256": "c4153600c863ded7c80cf0147c7014977537d8ffede5960b78996dfddcda277e" }, "downloads": -1, "filename": "django-telegram-bot-0.5.1.tar.gz", "has_sig": false, "md5_digest": "b29a8b07eee6a7878716be8b3d34da84", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16166, "upload_time": "2016-04-29T10:59:40", "url": "https://files.pythonhosted.org/packages/96/49/8d98fdbcc2e3e8d8e2644f2be6026ae05effe6fc4e73b9e1aee7aa74063d/django-telegram-bot-0.5.1.tar.gz" } ], "0.5.3": [ { "comment_text": "", "digests": { "md5": "fb866c769e5e2e593527676c3955bd02", "sha256": "511ef67410d4cc336805320d4a69fa8b871ca602f20cb48380c40b1026fdf3cb" }, "downloads": -1, "filename": "django_telegram_bot-0.5.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fb866c769e5e2e593527676c3955bd02", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 25970, "upload_time": "2016-06-01T14:04:30", "url": "https://files.pythonhosted.org/packages/35/88/7df256b1d0ea544e14b59c3a4b1a3d5762c43b124b623c1f36b26b6bf749/django_telegram_bot-0.5.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "964748eb4f582e00ccd0c3cac506432e", "sha256": "39ca91d8925a67383c34309e7984b07a8f9f738a12be4490e081473b5a13239c" }, "downloads": -1, "filename": "django-telegram-bot-0.5.3.tar.gz", "has_sig": false, "md5_digest": "964748eb4f582e00ccd0c3cac506432e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16185, "upload_time": "2016-06-01T14:03:57", "url": "https://files.pythonhosted.org/packages/d6/6b/e2abef87178c04bf889df63aee346f6cead44aac99ae786299c5e44862c8/django-telegram-bot-0.5.3.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "bd5c6f55bd22c70497a3df1069de4d80", "sha256": "cc66d18d77d1cd9e6b44e0d82fd18fe856e00249739aa37bf2fe79fa36178ce6" }, "downloads": -1, "filename": "django_telegram_bot-0.6.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bd5c6f55bd22c70497a3df1069de4d80", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 26055, "upload_time": "2016-07-08T18:05:18", "url": "https://files.pythonhosted.org/packages/7a/3a/9e3b6a2f15639b6b7f865f0624c3e398e67bcaa642564668f21c576fd20b/django_telegram_bot-0.6.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fd387e5120d9f25122cdefd793b0ff92", "sha256": "8154fe9352ca0b62ee83e5c96b74287c3e0a973ecfe599f6278c3e92f7d9c546" }, "downloads": -1, "filename": "django-telegram-bot-0.6.0.tar.gz", "has_sig": false, "md5_digest": "fd387e5120d9f25122cdefd793b0ff92", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16241, "upload_time": "2016-07-08T18:05:12", "url": "https://files.pythonhosted.org/packages/2f/83/d06334ca090c013123d8629dfdc47960f65c38687a3a3ba2863e67cba2ce/django-telegram-bot-0.6.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bd5c6f55bd22c70497a3df1069de4d80", "sha256": "cc66d18d77d1cd9e6b44e0d82fd18fe856e00249739aa37bf2fe79fa36178ce6" }, "downloads": -1, "filename": "django_telegram_bot-0.6.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bd5c6f55bd22c70497a3df1069de4d80", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 26055, "upload_time": "2016-07-08T18:05:18", "url": "https://files.pythonhosted.org/packages/7a/3a/9e3b6a2f15639b6b7f865f0624c3e398e67bcaa642564668f21c576fd20b/django_telegram_bot-0.6.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fd387e5120d9f25122cdefd793b0ff92", "sha256": "8154fe9352ca0b62ee83e5c96b74287c3e0a973ecfe599f6278c3e92f7d9c546" }, "downloads": -1, "filename": "django-telegram-bot-0.6.0.tar.gz", "has_sig": false, "md5_digest": "fd387e5120d9f25122cdefd793b0ff92", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16241, "upload_time": "2016-07-08T18:05:12", "url": "https://files.pythonhosted.org/packages/2f/83/d06334ca090c013123d8629dfdc47960f65c38687a3a3ba2863e67cba2ce/django-telegram-bot-0.6.0.tar.gz" } ] }