<p align="center">
<a href="https://github.com/telectron/telectron">
<img src="https://i.imgur.com/BOgY9ai.png" alt="telectron">
</a>
<br>
<b>Telegram MTProto API Framework for Python</b>
<br>
<a href="https://docs.telectron.org">
Documentation
</a>
•
<a href="https://github.com/telectron/telectron/releases">
Releases
</a>
•
<a href="https://t.me/telectron">
Community
</a>
</p>
## telectron
``` python
from telectron import Client, filters
app = Client("my_account")
@app.on_message(filters.private)
async def hello(client, message):
await message.reply_text(f"Hello {message.from_user.mention}")
app.run()
```
**telectron** is a modern, elegant and easy-to-use [Telegram](https://telegram.org/) client library framework written
from the ground up in Python and C. It enables you to easily create custom Telegram client applications for both user
and bot identities (bot API alternative) via the [MTProto API](https://docs.telectron.org/topics/mtproto-vs-botapi).
### Features
- **Easy**: You can install telectron with pip and start building your applications right away.
- **Elegant**: Low-level details are abstracted and re-presented in a much nicer and easier way.
- **Fast**: Crypto parts are boosted up by [TgCrypto](https://github.com/telectron/tgcrypto), a high-performance library
written in pure C.
- **Asynchronous**: Allows both synchronous and asynchronous models to fit all usage needs.
- **Documented**: API methods, types and public interfaces are all [well documented](https://docs.telectron.org).
- **Type-hinted**: Types and methods are all type-hinted, enabling excellent editor support.
- **Updated**, to make use of the latest Telegram API version and features.
- **Bot API-like**: Similar to the Bot API in its simplicity, but much more powerful and detailed.
- **Pluggable**: The Smart Plugin system allows to write components with minimal boilerplate code.
- **Comprehensive**: Execute any advanced action an official client is able to do, and even more.
### Requirements
- Python 3.6 or higher.
- A [Telegram API key](https://docs.telectron.org/intro/setup#api-keys).
### Installing
``` bash
pip3 install telectron
```
### Resources
- The docs contain lots of resources to help you get started with telectron: https://docs.telectron.org.
- Seeking extra help? Come join and ask our community: https://t.me/telectron.
- For other kind of inquiries, you can send a [message](https://t.me/haskell) or an [e-mail](mailto:dan@telectron.org).
### Copyright & License
- Copyright (C) 2017-2021 Dan <<https://github.com/delivrance>>
- Licensed under the terms of the [GNU Lesser General Public License v3 or later (LGPLv3+)](COPYING.lesser)
Raw data
{
"_id": null,
"home_page": "https://github.com/telectron",
"name": "telectron",
"maintainer": null,
"docs_url": null,
"requires_python": "~=3.6",
"maintainer_email": null,
"keywords": "telegram chat messenger mtproto api client library python",
"author": "Dan",
"author_email": "dan@telectron.org",
"download_url": "https://files.pythonhosted.org/packages/5e/d5/a13f875b6acf92d2d5b72d5b281cd02cd3e54e746a7718ffa4e789fd9195/telectron-2.0.112.4.tar.gz",
"platform": null,
"description": "<p align=\"center\">\n <a href=\"https://github.com/telectron/telectron\">\n <img src=\"https://i.imgur.com/BOgY9ai.png\" alt=\"telectron\">\n </a>\n <br>\n <b>Telegram MTProto API Framework for Python</b>\n <br>\n <a href=\"https://docs.telectron.org\">\n Documentation\n </a>\n \u2022\n <a href=\"https://github.com/telectron/telectron/releases\">\n Releases\n </a>\n \u2022\n <a href=\"https://t.me/telectron\">\n Community\n </a>\n</p>\n\n## telectron\n\n``` python\nfrom telectron import Client, filters\n\napp = Client(\"my_account\")\n\n\n@app.on_message(filters.private)\nasync def hello(client, message):\n await message.reply_text(f\"Hello {message.from_user.mention}\")\n\n\napp.run()\n```\n\n**telectron** is a modern, elegant and easy-to-use [Telegram](https://telegram.org/) client library framework written\nfrom the ground up in Python and C. It enables you to easily create custom Telegram client applications for both user\nand bot identities (bot API alternative) via the [MTProto API](https://docs.telectron.org/topics/mtproto-vs-botapi).\n\n### Features\n\n- **Easy**: You can install telectron with pip and start building your applications right away.\n- **Elegant**: Low-level details are abstracted and re-presented in a much nicer and easier way.\n- **Fast**: Crypto parts are boosted up by [TgCrypto](https://github.com/telectron/tgcrypto), a high-performance library\n written in pure C.\n- **Asynchronous**: Allows both synchronous and asynchronous models to fit all usage needs.\n- **Documented**: API methods, types and public interfaces are all [well documented](https://docs.telectron.org).\n- **Type-hinted**: Types and methods are all type-hinted, enabling excellent editor support.\n- **Updated**, to make use of the latest Telegram API version and features.\n- **Bot API-like**: Similar to the Bot API in its simplicity, but much more powerful and detailed.\n- **Pluggable**: The Smart Plugin system allows to write components with minimal boilerplate code.\n- **Comprehensive**: Execute any advanced action an official client is able to do, and even more.\n\n### Requirements\n\n- Python 3.6 or higher.\n- A [Telegram API key](https://docs.telectron.org/intro/setup#api-keys).\n\n### Installing\n\n``` bash\npip3 install telectron\n```\n\n### Resources\n\n- The docs contain lots of resources to help you get started with telectron: https://docs.telectron.org.\n- Seeking extra help? Come join and ask our community: https://t.me/telectron.\n- For other kind of inquiries, you can send a [message](https://t.me/haskell) or an [e-mail](mailto:dan@telectron.org).\n\n### Copyright & License\n\n- Copyright (C) 2017-2021 Dan <<https://github.com/delivrance>>\n- Licensed under the terms of the [GNU Lesser General Public License v3 or later (LGPLv3+)](COPYING.lesser)\n",
"bugtrack_url": null,
"license": "LGPLv3+",
"summary": "Telegram MTProto API Client Library and Framework for Python",
"version": "2.0.112.4",
"project_urls": {
"Documentation": "https://docs.telectron.org",
"Download": "https://github.com/telectron/telectron/releases/latest",
"Homepage": "https://github.com/telectron",
"Source": "https://gitlab.com/Telectron/telectron",
"Tracker": "https://gitlab.com/Telectron/telectron/issues"
},
"split_keywords": [
"telegram",
"chat",
"messenger",
"mtproto",
"api",
"client",
"library",
"python"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9bc76a8d30bb97a53e2982a57bb0b4b19362b151376775175c229e038361b46b",
"md5": "692db468d179957c1318371f0dc5db44",
"sha256": "676367f5b2f1184cea3ece21e20b468d2c63f81b1338944613c3269090385808"
},
"downloads": -1,
"filename": "telectron-2.0.112.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "692db468d179957c1318371f0dc5db44",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.6",
"size": 4230662,
"upload_time": "2024-10-18T07:10:01",
"upload_time_iso_8601": "2024-10-18T07:10:01.906448Z",
"url": "https://files.pythonhosted.org/packages/9b/c7/6a8d30bb97a53e2982a57bb0b4b19362b151376775175c229e038361b46b/telectron-2.0.112.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5ed5a13f875b6acf92d2d5b72d5b281cd02cd3e54e746a7718ffa4e789fd9195",
"md5": "f6b4652b9b94825294838769befe337d",
"sha256": "8b4c178eab11528901adbed33abf519afb617458b2c417abb16b1dca92860b4c"
},
"downloads": -1,
"filename": "telectron-2.0.112.4.tar.gz",
"has_sig": false,
"md5_digest": "f6b4652b9b94825294838769befe337d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.6",
"size": 874888,
"upload_time": "2024-10-18T07:10:04",
"upload_time_iso_8601": "2024-10-18T07:10:04.962798Z",
"url": "https://files.pythonhosted.org/packages/5e/d5/a13f875b6acf92d2d5b72d5b281cd02cd3e54e746a7718ffa4e789fd9195/telectron-2.0.112.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-18 07:10:04",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "telectron",
"github_project": "telectron",
"github_not_found": true,
"lcname": "telectron"
}