{ "info": { "author": "Alexander Bogushov", "author_email": "abogushov@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "aioworkers-tg\n=============\n\n.. image:: https://travis-ci.org/aioworkers/aioworkers-tg.svg?branch=master\n :target: https://travis-ci.org/aioworkers/aioworkers-tg\n\n.. image:: https://img.shields.io/pypi/v/aioworkers-tg.svg\n :target: https://pypi.python.org/pypi/aioworkers-tg\n\n\nPlugin to work with `Telegram` in `aioworkers`.\n\nFeatures:\n\n* Telegram user.\n* Telegram channels.\n* Telegram groups.\n\n\nUsage\n-----\n\nInstall it with pip:\n\n.. code:: sh\n\n pip install aioworkers-tg\n\n\nCreate entity of bot in aioworkers config:\n\n.. code-block:: yaml\n\n bot:\n cls: 'aioworkers_tg.bot.TelegramBot'\n api_token: '1234567890'\n\nYou can use it directly from context:\n\n.. code-block:: python\n\n await context.bot.channel('@yourchannel').send_text(\"Hello from channel!\")\n\n\nAlso it is possible to create chat instance and send messages directly:\n\n.. code-block:: yaml\n\n chat:\n cls: 'aioworkers_tg.chat.TelegramChat'\n bot: 'bot' # reference to created bot\n group_id: '11111'\n\n\n.. code-block:: python\n\n await context.chat.send_text(\"Hello!\")", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/aioworkers/aioworkers-tg", "keywords": "aioworkers aiotg telegram", "license": "Apache Software License 2.0", "maintainer": "", "maintainer_email": "", "name": "aioworkers-tg", "package_url": "https://pypi.org/project/aioworkers-tg/", "platform": "", "project_url": "https://pypi.org/project/aioworkers-tg/", "project_urls": { "Homepage": "https://github.com/aioworkers/aioworkers-tg" }, "release_url": "https://pypi.org/project/aioworkers-tg/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "aioworkers plugin for Telegram", "version": "0.0.1" }, "last_serial": 4795129, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "a189f95911e5006aad41335767c38e2e", "sha256": "988bd8c0e2eee75900c0d9b182a199e782d1867fefd19a6f9e041d6a547a2377" }, "downloads": -1, "filename": "aioworkers-tg-0.0.1.tar.gz", "has_sig": false, "md5_digest": "a189f95911e5006aad41335767c38e2e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2536, "upload_time": "2019-02-08T11:00:47", "url": "https://files.pythonhosted.org/packages/ab/ba/242823e0860a25a1ccefb042d7322dae869d6ffd09cd3b1598400e05d26d/aioworkers-tg-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a189f95911e5006aad41335767c38e2e", "sha256": "988bd8c0e2eee75900c0d9b182a199e782d1867fefd19a6f9e041d6a547a2377" }, "downloads": -1, "filename": "aioworkers-tg-0.0.1.tar.gz", "has_sig": false, "md5_digest": "a189f95911e5006aad41335767c38e2e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2536, "upload_time": "2019-02-08T11:00:47", "url": "https://files.pythonhosted.org/packages/ab/ba/242823e0860a25a1ccefb042d7322dae869d6ffd09cd3b1598400e05d26d/aioworkers-tg-0.0.1.tar.gz" } ] }