2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-09-01 14:55:12 +00:00

Update README.rst

This commit is contained in:
Dan
2019-01-24 20:00:59 +01:00
committed by GitHub
parent 44deabf399
commit 8a41075dc7

View File

@@ -3,6 +3,8 @@
Pyrogram Pyrogram
======== ========
`A fully asynchronous variant is also available! <https://github.com/pyrogram/pyrogram/issues/181>`_
.. code-block:: python .. code-block:: python
from pyrogram import Client, Filters from pyrogram import Client, Filters
@@ -17,18 +19,20 @@ Pyrogram
app.run() app.run()
**Pyrogram** is a brand new Telegram_ Client Library written from the ground up in Python and C. It can be used for **Pyrogram** is an elegant, easy-to-use Telegram_ client library and framework written from the ground up in Python and C.
building custom Telegram applications that interact with the MTProto API as both User and Bot. It enables you to easily build custom Telegram applications that interact with the MTProto API as both user and bot.
Features Features
-------- --------
- **Easy to use**: You can easily install Pyrogram using pip and start building your app right away. - **Easy**: You can install Pyrogram with pip and start building your app right away.
- **High-level**: The low-level details of MTProto are abstracted and automatically handled. - **Elegant**: Low-level details are abstracted and re-presented in a much nicer and easier way.
- **Fast**: Crypto parts are boosted up by TgCrypto_, a high-performance library written in pure C. - **Fast**: Crypto parts are boosted up by TgCrypto_, a high-performance library written in pure C.
- **Updated** to the latest Telegram API version, currently Layer 91 on top of MTProto 2.0. - **Documented**: Pyrogram API methods, types and public interfaces are well documented.
- **Documented**: The Pyrogram API is well documented and resembles the Telegram Bot API. - **Type-hinted**: Exposed Pyrogram types and method parameters are all type-hinted.
- **Full API**, allowing to execute any advanced action an official client is able to do, and more. - **Updated**, to the latest Telegram API version, currently Layer 91 on top of MTProto 2.0.
- **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 Requirements
------------ ------------
@@ -47,7 +51,7 @@ Getting Started
--------------- ---------------
- The Docs contain lots of resources to help you getting started with Pyrogram: https://docs.pyrogram.ml. - The Docs contain lots of resources to help you getting started with Pyrogram: https://docs.pyrogram.ml.
- Reading Examples_ in this repository is also a good way for learning how things work. - Reading `Examples in this repository`_ is also a good way for learning how Pyrogram works.
- Seeking extra help? Don't be shy, come join and ask our Community_! - Seeking extra help? Don't be shy, come join and ask our Community_!
- For other requests you can send an Email_ or a Message_. - For other requests you can send an Email_ or a Message_.
@@ -67,7 +71,7 @@ Copyright & License
.. _`Telegram`: https://telegram.org/ .. _`Telegram`: https://telegram.org/
.. _`Telegram API key`: https://docs.pyrogram.ml/start/ProjectSetup#api-keys .. _`Telegram API key`: https://docs.pyrogram.ml/start/ProjectSetup#api-keys
.. _`Community`: https://t.me/PyrogramChat .. _`Community`: https://t.me/PyrogramChat
.. _`Examples`: https://github.com/pyrogram/pyrogram/tree/master/examples .. _`Examples in this repository`: https://github.com/pyrogram/pyrogram/tree/master/examples
.. _`GitHub`: https://github.com/pyrogram/pyrogram/issues .. _`GitHub`: https://github.com/pyrogram/pyrogram/issues
.. _`Email`: admin@pyrogram.ml .. _`Email`: admin@pyrogram.ml
.. _`Message`: https://t.me/haskell .. _`Message`: https://t.me/haskell
@@ -83,17 +87,17 @@ Copyright & License
</h1> </h1>
<p align="center"> <p align="center">
<b>Telegram MTProto API Client Library for Python</b> <b>Telegram MTProto API Framework for Python</b>
<br> <br>
<a href="https://github.com/pyrogram/pyrogram/releases/latest">
Download
</a>
<a href="https://docs.pyrogram.ml"> <a href="https://docs.pyrogram.ml">
Documentation Documentation
</a> </a>
<a href="https://github.com/pyrogram/pyrogram/releases">
Changelog
</a>
<a href="https://t.me/PyrogramChat"> <a href="https://t.me/PyrogramChat">
Community Community
</a> </a>
@@ -104,7 +108,7 @@ Copyright & License
</a> </a>
<a href="https://github.com/pyrogram/tgcrypto"> <a href="https://github.com/pyrogram/tgcrypto">
<img src="https://img.shields.io/badge/tgcrypto-v1.1.1-eda738.svg?longCache=true&colorA=262b30" <img src="https://img.shields.io/badge/tgcrypto-v1.1.1-eda738.svg?longCache=true&colorA=262b30"
alt="TgCrypto"> alt="TgCrypto Version">
</a> </a>
</p> </p>
@@ -112,12 +116,12 @@ Copyright & License
:target: https://pyrogram.ml :target: https://pyrogram.ml
:alt: Pyrogram :alt: Pyrogram
.. |description| replace:: **Telegram MTProto API Client Library for Python** .. |description| replace:: **Telegram MTProto API Framework for Python**
.. |scheme| image:: "https://img.shields.io/badge/schema-layer%2091-eda738.svg?longCache=true&colorA=262b30" .. |schema| image:: "https://img.shields.io/badge/schema-layer%2091-eda738.svg?longCache=true&colorA=262b30"
:target: compiler/api/source/main_api.tl :target: compiler/api/source/main_api.tl
:alt: Scheme Layer :alt: Schema Layer
.. |tgcrypto| image:: "https://img.shields.io/badge/tgcrypto-v1.1.1-eda738.svg?longCache=true&colorA=262b30" .. |tgcrypto| image:: "https://img.shields.io/badge/tgcrypto-v1.1.1-eda738.svg?longCache=true&colorA=262b30"
:target: https://github.com/pyrogram/tgcrypto :target: https://github.com/pyrogram/tgcrypto
:alt: TgCrypto :alt: TgCrypto Version