{ "info": { "author": "iTeam", "author_email": "co.amirh@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Python-Telegram\n\n> Welcome to Python-Telegram!\n> Python-Telegram is a python wrapper for tdlib, completely Object-Oriented and originally based on tdlib's suggested libs for python. \n\n# Installation\n\nInstalling the library is super easy. First, be sure to have Python3 installed in your server:\n`apt install python3`\n\nThen, simply execute the installation script:\n`python3 setup.py install` \n\nAnd you're ready to go!\n\n# A simple script\n\nHere's a simple script that prints every update it receives from Telegram:\n\n```\nfrom pytglib.client import Telegram\n\n# Change the values below\napi_id = 7\napi_hash = '123412341234123412341234'\nphone_number = '+12312312312'\ndbenc = '32_hexademical_chars'\n\n# Initiate the client\nclient = Telegram(api_id=api_id, api_hash=api_hash, phone=phone_number, database_encryption_key=dbenc)\n\n# Login to the client\nclient.login() \n\n# Define the handler function\ndef my_message_handler(update):\n print(update)\n\n# Register it\nclient.add_message_handler(my_message_handler)\n\ntg.idle()\n\n# And you're ready to go!\n```\n\nFor more complex scripts, go to the Examples section below:\n\n# Documentation and examples\n\nThe documentation is not complete at the moment, but you can see some examples in `examples` tree. Of course, we're doing our best to finish the documentation as soon as possible. \nBy the way, there's an auto generated documentation [here](https://pytelegram.readthedocs.io); It can help to find out about types and functions of the library.\n\n# Bugs and questions\n\nIf there is any buys or questions about the library, feel free to contact any member of our team on Telegram:\n\n[![https://telegram.me/Amir_H](https://img.shields.io/badge/\u064b\u06ba\u2019\u00ac_Telegram-Amir_H-blue.svg)](https://telegram.me/Amir_H)\n[![https://telegram.me/wsh25](https://img.shields.io/badge/\u064b\u06ba\u2019\u00ac_Telegram-WebShark25-blue.svg)](https://telegram.me/wsh25)", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/iTeam-co/python-telegram", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "Pytglib", "package_url": "https://pypi.org/project/Pytglib/", "platform": "", "project_url": "https://pypi.org/project/Pytglib/", "project_urls": { "Homepage": "https://github.com/iTeam-co/python-telegram" }, "release_url": "https://pypi.org/project/Pytglib/0.3/", "requires_dist": null, "requires_python": "", "summary": "Python library to help you build your own Telegram clients", "version": "0.3" }, "last_serial": 5254748, "releases": { "0.2.0": [ { "comment_text": "", "digests": { "md5": "70f9dcdf741e312a5083beb7d7e3c276", "sha256": "6d05ba2d398c431c98314ded3c679a3f2b95a11425afe5c107830dbd1ed241bd" }, "downloads": -1, "filename": "Pytglib-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "70f9dcdf741e312a5083beb7d7e3c276", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10954668, "upload_time": "2019-04-11T21:21:25", "url": "https://files.pythonhosted.org/packages/1f/1b/3b7eeda0f67c89e862495b8e9754d80da385c7af6dcf0b6a900434cf05e4/Pytglib-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "14521f56acac3f7cb04165476f4e9210", "sha256": "3900e57b58f866ccfd69915c26d2557e01eebb3708aba6865ff66f7a637fba57" }, "downloads": -1, "filename": "Pytglib-0.2.0.tar.gz", "has_sig": false, "md5_digest": "14521f56acac3f7cb04165476f4e9210", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10442695, "upload_time": "2019-04-11T21:21:50", "url": "https://files.pythonhosted.org/packages/22/e4/0aaf500e160eadf4bd29eb0c5d204da0e1b9686578dc36a9c901ecff829e/Pytglib-0.2.0.tar.gz" }, { "comment_text": "", "digests": { "md5": "5f2149ab175507c33fa42512f289cbe0", "sha256": "98f1448fb025e126b459b0adc08b46ec281d02e43fd5e2e6211cd449926de943" }, "downloads": -1, "filename": "Pytglib-0.2-py3.7.egg", "has_sig": false, "md5_digest": "5f2149ab175507c33fa42512f289cbe0", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": null, "size": 1707607, "upload_time": "2019-05-08T11:09:03", "url": "https://files.pythonhosted.org/packages/64/8d/342cf49a2f8c17854199b91f6032c1432232eb32fe335417635ca522e6c2/Pytglib-0.2-py3.7.egg" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "c216376b8fdb15a1420ca30643093d14", "sha256": "05cd8af5eba52a976971b43b9538bff0622634270a1ffabeef37ead5aa295622" }, "downloads": -1, "filename": "Pytglib-0.3-py3.6.egg", "has_sig": false, "md5_digest": "c216376b8fdb15a1420ca30643093d14", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 1697954, "upload_time": "2019-05-11T02:03:04", "url": "https://files.pythonhosted.org/packages/df/37/a7174dd543320a6f9949f561d1dfc358d00269bf54bcdbaae4883861b195/Pytglib-0.3-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "aae1949b54ab1a4eaa02c6fb55bb0d8f", "sha256": "fb41f73eef3ac3a613e1997780ecbf9701fc19a2d8ff3986f0ff9df429d11ac7" }, "downloads": -1, "filename": "Pytglib-0.3-py3.7.egg", "has_sig": false, "md5_digest": "aae1949b54ab1a4eaa02c6fb55bb0d8f", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": null, "size": 1708844, "upload_time": "2019-05-08T11:09:10", "url": "https://files.pythonhosted.org/packages/07/f9/d7a2d13abd46a292e8698bd26521040ff346e6e14c0d6d723230e92f0431/Pytglib-0.3-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "fa8c176730d2744670d971bfe945c8c4", "sha256": "4e48cf0b58e49c4c740444a74cb2241016e2175f267a4fb88b61286a24d910fc" }, "downloads": -1, "filename": "Pytglib-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "fa8c176730d2744670d971bfe945c8c4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 692893, "upload_time": "2019-05-11T02:02:56", "url": "https://files.pythonhosted.org/packages/b8/a5/09739e20f1688450adc7f90cc391719638ba402f49588fb3b1476344bc70/Pytglib-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a00a5c61b62340e7ea662b69de9fac24", "sha256": "bbf996ce7a47f6add109c0f2b6c58cc31a9dbcb5f7fb385e348ca0ec61344fe1" }, "downloads": -1, "filename": "Pytglib-0.3.tar.gz", "has_sig": false, "md5_digest": "a00a5c61b62340e7ea662b69de9fac24", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 236089, "upload_time": "2019-05-11T02:03:08", "url": "https://files.pythonhosted.org/packages/60/31/91f2ae81c0c80000ebf367151595d8f0b54276b40f9f0d730037ee951813/Pytglib-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c216376b8fdb15a1420ca30643093d14", "sha256": "05cd8af5eba52a976971b43b9538bff0622634270a1ffabeef37ead5aa295622" }, "downloads": -1, "filename": "Pytglib-0.3-py3.6.egg", "has_sig": false, "md5_digest": "c216376b8fdb15a1420ca30643093d14", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 1697954, "upload_time": "2019-05-11T02:03:04", "url": "https://files.pythonhosted.org/packages/df/37/a7174dd543320a6f9949f561d1dfc358d00269bf54bcdbaae4883861b195/Pytglib-0.3-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "aae1949b54ab1a4eaa02c6fb55bb0d8f", "sha256": "fb41f73eef3ac3a613e1997780ecbf9701fc19a2d8ff3986f0ff9df429d11ac7" }, "downloads": -1, "filename": "Pytglib-0.3-py3.7.egg", "has_sig": false, "md5_digest": "aae1949b54ab1a4eaa02c6fb55bb0d8f", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": null, "size": 1708844, "upload_time": "2019-05-08T11:09:10", "url": "https://files.pythonhosted.org/packages/07/f9/d7a2d13abd46a292e8698bd26521040ff346e6e14c0d6d723230e92f0431/Pytglib-0.3-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "fa8c176730d2744670d971bfe945c8c4", "sha256": "4e48cf0b58e49c4c740444a74cb2241016e2175f267a4fb88b61286a24d910fc" }, "downloads": -1, "filename": "Pytglib-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "fa8c176730d2744670d971bfe945c8c4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 692893, "upload_time": "2019-05-11T02:02:56", "url": "https://files.pythonhosted.org/packages/b8/a5/09739e20f1688450adc7f90cc391719638ba402f49588fb3b1476344bc70/Pytglib-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a00a5c61b62340e7ea662b69de9fac24", "sha256": "bbf996ce7a47f6add109c0f2b6c58cc31a9dbcb5f7fb385e348ca0ec61344fe1" }, "downloads": -1, "filename": "Pytglib-0.3.tar.gz", "has_sig": false, "md5_digest": "a00a5c61b62340e7ea662b69de9fac24", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 236089, "upload_time": "2019-05-11T02:03:08", "url": "https://files.pythonhosted.org/packages/60/31/91f2ae81c0c80000ebf367151595d8f0b54276b40f9f0d730037ee951813/Pytglib-0.3.tar.gz" } ] }