telectron


Nametelectron JSON
Version 2.0.110.17 PyPI version JSON
download
home_pagehttps://github.com/telectron
SummaryTelegram MTProto API Client Library and Framework for Python
upload_time2024-03-24 15:48:32
maintainerNone
docs_urlNone
authorDan
requires_python~=3.6
licenseLGPLv3+
keywords telegram chat messenger mtproto api client library python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <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/ae/df/7b863cea0a81017db8a797fdc8ffc0072519cc6dbdc40d1160e793b3158d/telectron-2.0.110.17.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.110.17",
    "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": "5022afb3d74dbf5e972d0d3bc33f6a1f387f85767ccb162b6daf5ce37bcffe84",
                "md5": "6e5555d45e23aae121d6783c4299f018",
                "sha256": "762f7144ada8c54f6d8908bb6651da72df6a4ffdf7d4bac656bf1b4399a1f8f6"
            },
            "downloads": -1,
            "filename": "telectron-2.0.110.17-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6e5555d45e23aae121d6783c4299f018",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "~=3.6",
            "size": 3878022,
            "upload_time": "2024-03-24T15:48:28",
            "upload_time_iso_8601": "2024-03-24T15:48:28.708525Z",
            "url": "https://files.pythonhosted.org/packages/50/22/afb3d74dbf5e972d0d3bc33f6a1f387f85767ccb162b6daf5ce37bcffe84/telectron-2.0.110.17-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "aedf7b863cea0a81017db8a797fdc8ffc0072519cc6dbdc40d1160e793b3158d",
                "md5": "77c81f383d917619dfb0bcd9adf619ab",
                "sha256": "883e3934d76690d98292a06c0648f537f3fd4a0a5b1aa06d117689af7cfa1631"
            },
            "downloads": -1,
            "filename": "telectron-2.0.110.17.tar.gz",
            "has_sig": false,
            "md5_digest": "77c81f383d917619dfb0bcd9adf619ab",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "~=3.6",
            "size": 820759,
            "upload_time": "2024-03-24T15:48:32",
            "upload_time_iso_8601": "2024-03-24T15:48:32.607080Z",
            "url": "https://files.pythonhosted.org/packages/ae/df/7b863cea0a81017db8a797fdc8ffc0072519cc6dbdc40d1160e793b3158d/telectron-2.0.110.17.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-24 15:48:32",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "telectron",
    "github_project": "telectron",
    "github_not_found": true,
    "lcname": "telectron"
}
        
Dan
Elapsed time: 0.23830s