Pyrogram


NamePyrogram JSON
Version 2.0.103 PyPI version JSON
download
home_pagehttps://github.com/pyrogram
SummaryElegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots
upload_time2023-04-03 14:30:46
maintainer
docs_urlNone
authorDan
requires_python~=3.7
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/pyrogram/pyrogram">
        <img src="https://docs.pyrogram.org/_static/pyrogram.png" alt="Pyrogram" width="128">
    </a>
    <br>
    <b>Telegram MTProto API Framework for Python</b>
    <br>
    <a href="https://pyrogram.org">
        Homepage
    </a>
    •
    <a href="https://docs.pyrogram.org">
        Documentation
    </a>
    •
    <a href="https://docs.pyrogram.org/releases">
        Releases
    </a>
    •
    <a href="https://t.me/pyrogram">
        News
    </a>
</p>

## Pyrogram

> Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots

``` python
from pyrogram import Client, filters

app = Client("my_account")


@app.on_message(filters.private)
async def hello(client, message):
    await message.reply("Hello from Pyrogram!")


app.run()
```

**Pyrogram** is a modern, elegant and asynchronous [MTProto API](https://docs.pyrogram.org/topics/mtproto-vs-botapi)
framework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a bot
identity (bot API alternative) using Python.

### Support

If you'd like to support Pyrogram, you can consider:

- [Become a GitHub sponsor](https://github.com/sponsors/delivrance).
- [Become a LiberaPay patron](https://liberapay.com/delivrance).
- [Become an OpenCollective backer](https://opencollective.com/pyrogram).

### Key Features

- **Ready**: Install Pyrogram with pip and start building your applications right away.
- **Easy**: Makes the Telegram API simple and intuitive, while still allowing advanced usages.
- **Elegant**: Low-level details are abstracted and re-presented in a more convenient way.
- **Fast**: Boosted up by [TgCrypto](https://github.com/pyrogram/tgcrypto), a high-performance cryptography library written in C.  
- **Type-hinted**: Types and methods are all type-hinted, enabling excellent editor support.
- **Async**: Fully asynchronous (also usable synchronously if wanted, for convenience).
- **Powerful**: Full access to Telegram's API to execute any official client action and more.

### Installing

``` bash
pip3 install pyrogram
```

### Resources

- Check out the docs at https://docs.pyrogram.org to learn more about Pyrogram, get started right
away and discover more in-depth material for building your client applications.
- Join the official channel at https://t.me/pyrogram and stay tuned for news, updates and announcements.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/pyrogram",
    "name": "Pyrogram",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "~=3.7",
    "maintainer_email": "",
    "keywords": "telegram chat messenger mtproto api client library python",
    "author": "Dan",
    "author_email": "dan@pyrogram.org",
    "download_url": "https://files.pythonhosted.org/packages/f5/32/460a1cc4ef152d7eb3bf927542154fdfef7dec70979c690c08b479104478/Pyrogram-2.0.103.tar.gz",
    "platform": null,
    "description": "<p align=\"center\">\n    <a href=\"https://github.com/pyrogram/pyrogram\">\n        <img src=\"https://docs.pyrogram.org/_static/pyrogram.png\" alt=\"Pyrogram\" width=\"128\">\n    </a>\n    <br>\n    <b>Telegram MTProto API Framework for Python</b>\n    <br>\n    <a href=\"https://pyrogram.org\">\n        Homepage\n    </a>\n    \u2022\n    <a href=\"https://docs.pyrogram.org\">\n        Documentation\n    </a>\n    \u2022\n    <a href=\"https://docs.pyrogram.org/releases\">\n        Releases\n    </a>\n    \u2022\n    <a href=\"https://t.me/pyrogram\">\n        News\n    </a>\n</p>\n\n## Pyrogram\n\n> Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots\n\n``` python\nfrom pyrogram 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(\"Hello from Pyrogram!\")\n\n\napp.run()\n```\n\n**Pyrogram** is a modern, elegant and asynchronous [MTProto API](https://docs.pyrogram.org/topics/mtproto-vs-botapi)\nframework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a bot\nidentity (bot API alternative) using Python.\n\n### Support\n\nIf you'd like to support Pyrogram, you can consider:\n\n- [Become a GitHub sponsor](https://github.com/sponsors/delivrance).\n- [Become a LiberaPay patron](https://liberapay.com/delivrance).\n- [Become an OpenCollective backer](https://opencollective.com/pyrogram).\n\n### Key Features\n\n- **Ready**: Install Pyrogram with pip and start building your applications right away.\n- **Easy**: Makes the Telegram API simple and intuitive, while still allowing advanced usages.\n- **Elegant**: Low-level details are abstracted and re-presented in a more convenient way.\n- **Fast**: Boosted up by [TgCrypto](https://github.com/pyrogram/tgcrypto), a high-performance cryptography library written in C.  \n- **Type-hinted**: Types and methods are all type-hinted, enabling excellent editor support.\n- **Async**: Fully asynchronous (also usable synchronously if wanted, for convenience).\n- **Powerful**: Full access to Telegram's API to execute any official client action and more.\n\n### Installing\n\n``` bash\npip3 install pyrogram\n```\n\n### Resources\n\n- Check out the docs at https://docs.pyrogram.org to learn more about Pyrogram, get started right\naway and discover more in-depth material for building your client applications.\n- Join the official channel at https://t.me/pyrogram and stay tuned for news, updates and announcements.\n",
    "bugtrack_url": null,
    "license": "LGPLv3",
    "summary": "Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots",
    "version": "2.0.103",
    "split_keywords": [
        "telegram",
        "chat",
        "messenger",
        "mtproto",
        "api",
        "client",
        "library",
        "python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "075fdd487121ad8aae50cc64531b3aa643aa8603f7be7c9ada912a053384fd10",
                "md5": "3b2d3d24869813b3efe4442a979e5ab6",
                "sha256": "d972d0ee767730830f1c387ccba23c7f3703cc60ae149b4b4f540323d886e722"
            },
            "downloads": -1,
            "filename": "Pyrogram-2.0.103-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3b2d3d24869813b3efe4442a979e5ab6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "~=3.7",
            "size": 3521368,
            "upload_time": "2023-04-03T14:30:43",
            "upload_time_iso_8601": "2023-04-03T14:30:43.936601Z",
            "url": "https://files.pythonhosted.org/packages/07/5f/dd487121ad8aae50cc64531b3aa643aa8603f7be7c9ada912a053384fd10/Pyrogram-2.0.103-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f532460a1cc4ef152d7eb3bf927542154fdfef7dec70979c690c08b479104478",
                "md5": "fe9f08c03dcbed427c733eac6b9d564e",
                "sha256": "3778cb19becb9e7cccb99aa997dd574681627b904d31b83d058a3e1a99dddc5a"
            },
            "downloads": -1,
            "filename": "Pyrogram-2.0.103.tar.gz",
            "has_sig": false,
            "md5_digest": "fe9f08c03dcbed427c733eac6b9d564e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "~=3.7",
            "size": 343650,
            "upload_time": "2023-04-03T14:30:46",
            "upload_time_iso_8601": "2023-04-03T14:30:46.643026Z",
            "url": "https://files.pythonhosted.org/packages/f5/32/460a1cc4ef152d7eb3bf927542154fdfef7dec70979c690c08b479104478/Pyrogram-2.0.103.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-03 14:30:46",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "pyrogram"
}
        
Dan
Elapsed time: 0.05379s