MTPyroger/docs/source/index.rst

109 lines
3.2 KiB
ReStructuredText
Raw Normal View History

2018-01-15 11:36:03 +00:00
Welcome to Pyrogram
===================
2017-12-30 18:47:18 +00:00
.. raw:: html
2017-12-31 10:03:10 +00:00
<div align="center">
2018-03-22 12:01:18 +00:00
<a href="https://docs.pyrogram.ml">
2018-09-19 09:58:48 +00:00
<div><img src="_static/logo.png" alt="Pyrogram Logo"></div>
2018-01-01 12:55:05 +00:00
</a>
2017-12-31 10:03:10 +00:00
</div>
<p align="center">
<b>Telegram MTProto API Client Library for Python</b>
2018-01-13 16:09:25 +00:00
<br>
2018-01-25 12:47:26 +00:00
<a href="https://github.com/pyrogram/pyrogram/releases/latest">
2018-01-13 16:09:25 +00:00
Download
</a>
<a href="https://github.com/pyrogram/pyrogram">
Source code
</a>
<a href="https://t.me/PyrogramChat">
Community
</a>
2018-01-10 19:56:43 +00:00
<br><br>
2018-01-13 16:09:25 +00:00
<a href="https://github.com/pyrogram/pyrogram/blob/master/compiler/api/source/main_api.tl">
2018-09-19 09:58:48 +00:00
<img src="https://img.shields.io/badge/SCHEME-LAYER%2082-eda738.svg?longCache=true&style=for-the-badge&colorA=262b30"
2018-06-26 22:02:54 +00:00
alt="Scheme Layer">
2018-01-10 19:56:43 +00:00
</a>
2018-02-17 13:44:59 +00:00
<a href="https://github.com/pyrogram/tgcrypto">
2018-09-19 09:58:48 +00:00
<img src="https://img.shields.io/badge/TGCRYPTO-V1.1.0-eda738.svg?longCache=true&style=for-the-badge&colorA=262b30"
2018-02-17 13:44:59 +00:00
alt="TgCrypto">
2018-01-10 19:56:43 +00:00
</a>
2017-12-31 10:03:10 +00:00
</p>
2017-12-30 18:47:18 +00:00
2018-04-12 12:13:58 +00:00
.. code-block:: python
from pyrogram import Client, Filters
app = Client("my_account")
@app.on_message(Filters.private)
def hello(client, message):
2018-06-23 12:25:19 +00:00
message.reply("Hello {}".format(message.from_user.first_name))
2018-04-12 12:13:58 +00:00
2018-06-22 11:17:39 +00:00
app.run()
2018-04-12 12:13:58 +00:00
2018-03-26 01:58:10 +00:00
Welcome to Pyrogram's Documentation! Here you can find resources for learning how to use the library.
Contents are organized by topic and can be accessed from the sidebar, or by following them one by one using the Next
2018-04-15 18:56:06 +00:00
button at the end of each page. But first, here's a brief overview of what is this all about.
2018-03-26 01:58:10 +00:00
2018-04-15 18:56:06 +00:00
About
-----
2018-04-14 20:35:38 +00:00
2018-06-26 22:02:54 +00:00
**Pyrogram** is a brand new Telegram_ Client Library written from the ground up in Python and C. It can be used for building
custom Telegram applications that interact with the MTProto API as both User and Bot.
2018-01-06 11:18:15 +00:00
2018-04-15 18:56:06 +00:00
Features
--------
2018-01-06 11:18:15 +00:00
2018-04-15 18:56:06 +00:00
- **Easy to use**: You can easily install Pyrogram using pip and start building your app right away.
- **High-level**: The low-level details of MTProto are abstracted and automatically handled.
- **Fast**: Crypto parts are boosted up by TgCrypto_, a high-performance library written in pure C.
2018-06-26 22:02:54 +00:00
- **Updated** to the latest Telegram API version, currently Layer 81 on top of MTProto 2.0.
- **Documented**: The Pyrogram API is well documented and resembles the Telegram Bot API.
2018-04-15 18:56:06 +00:00
- **Full API**, allowing to execute any advanced action an official client is able to do, and more.
2018-01-06 11:18:15 +00:00
2018-03-26 01:58:10 +00:00
To get started, press the Next button.
2018-01-06 11:18:15 +00:00
.. toctree::
:hidden:
2018-06-05 14:35:54 +00:00
:caption: Quick Start
2018-01-06 11:18:15 +00:00
2018-06-05 14:35:54 +00:00
start/Installation
start/Setup
start/Usage
2018-01-06 11:18:15 +00:00
.. toctree::
:hidden:
:caption: Resources
resources/UpdateHandling
2018-08-19 15:25:39 +00:00
resources/UsingFilters
2018-04-15 18:56:06 +00:00
resources/AutoAuthorization
2018-06-26 22:11:53 +00:00
resources/CustomizeSessions
resources/TgCrypto
2018-04-15 18:56:06 +00:00
resources/TextFormatting
2018-06-26 22:11:53 +00:00
resources/SOCKS5Proxy
2018-02-27 15:54:33 +00:00
resources/BotsInteraction
2018-04-15 18:56:06 +00:00
resources/ErrorHandling
2017-12-30 18:47:18 +00:00
.. toctree::
2018-01-06 11:18:15 +00:00
:hidden:
2018-01-04 02:05:16 +00:00
:caption: Main Package
2018-01-03 17:26:05 +00:00
2018-01-04 02:05:16 +00:00
pyrogram/index
2018-01-03 17:26:05 +00:00
.. toctree::
2018-01-06 11:18:15 +00:00
:hidden:
:caption: Telegram API
2018-01-03 17:26:05 +00:00
2018-01-03 17:36:23 +00:00
functions/index
2018-01-03 17:26:05 +00:00
types/index
2018-01-13 16:09:25 +00:00
2018-03-24 13:47:20 +00:00
.. _`Telegram`: https://telegram.org/
2018-06-05 14:35:54 +00:00
.. _TgCrypto: https://docs.pyrogram.ml/resources/TgCrypto/