MTPyroger/docs/source/index.rst

137 lines
3.4 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">
2019-01-24 19:03:14 +00:00
<b>Telegram MTProto API Framework for Python</b>
2018-01-13 16:09:25 +00:00
<br>
2019-05-10 14:14:10 +00:00
<a href="https://github.com/pyrogram/pyrogram">
GitHub
2018-01-13 16:09:25 +00:00
</a>
2019-05-10 14:14:10 +00:00
<a href="https://t.me/PyrogramChat">
Community
</a>
2018-01-13 16:09:25 +00:00
2019-01-24 19:03:14 +00:00
<a href="https://github.com/pyrogram/pyrogram/releases">
Changelog
2018-01-13 16:09:25 +00:00
</a>
2019-05-10 14:14:10 +00:00
<a href="https://pypi.org/project/Pyrogram">
PyPI
2018-01-13 16:09:25 +00:00
</a>
<br>
2019-01-24 19:03:14 +00:00
<a href="compiler/api/source/main_api.tl">
2019-03-24 17:59:56 +00:00
<img src="https://img.shields.io/badge/schema-layer%2097-eda738.svg?longCache=true&colorA=262b30"
2019-01-24 19:03:14 +00:00
alt="Schema 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-10-14 09:14:10 +00:00
<img src="https://img.shields.io/badge/tgcrypto-v1.1.1-eda738.svg?longCache=true&colorA=262b30"
2019-01-24 19:03:14 +00:00
alt="TgCrypto Version">
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
2019-02-04 12:06:23 +00:00
**Pyrogram** is an elegant, easy-to-use Telegram_ client library and framework written from the ground up in Python and C.
It enables you to easily create custom apps using both user and bot identities (bot API alternative) via the `MTProto API`_.
2018-01-06 11:18:15 +00:00
2019-05-10 14:14:10 +00:00
How the documentation is organized
----------------------------------
Contents are organized into self-contained topics and can be accessed from the sidebar, or by following them in order
using the Next button at the end of each page.
Relevant Pages
^^^^^^^^^^^^^^
2018-01-06 11:18:15 +00:00
2019-05-10 14:14:10 +00:00
- `Quick Start`_ - Concise steps to get you started as fast as possible.
- `API Usage`_ - Guide on how to use Pyrogram's API.
- `Update Handling`_ - Guide on how to handle Telegram updates.
- Client_ - Reference details about the Client class.
- Types_ - All the available Pyrogram types.
- Methods_ - All the available Pyrogram methods.
2018-01-06 11:18:15 +00:00
2019-05-10 14:14:10 +00:00
**To get started, press the Next button**
2018-03-26 01:58:10 +00:00
2018-01-06 11:18:15 +00:00
.. toctree::
:hidden:
2019-05-10 14:14:10 +00:00
:caption: Introduction
2018-01-06 11:18:15 +00:00
2019-05-10 14:14:10 +00:00
intro/start
intro/install
intro/setup
intro/auth
2018-01-06 11:18:15 +00:00
.. toctree::
:hidden:
2019-05-10 14:14:10 +00:00
:caption: Topic Guides
topics/usage
topics/update-handling
topics/using-filters
topics/more-on-updates
topics/configuration-file
topics/smart-plugins
topics/auto-authorization
topics/customize-sessions
topics/tgcrypto
topics/text-formatting
topics/socks5-proxy
topics/bots-interaction
topics/error-handling
topics/test-servers
topics/advanced-usage
topics/voice-calls
topics/changelog
2017-12-30 18:47:18 +00:00
.. toctree::
2018-01-06 11:18:15 +00:00
:hidden:
2019-05-10 14:14:10 +00:00
:caption: API Reference
2018-01-03 17:26:05 +00:00
2019-05-10 14:14:10 +00:00
core/client
core/types
core/methods
core/handlers
core/decorators
core/filters
core/errors
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
2019-05-10 14:14:10 +00:00
.. _Telegram: https://telegram.org
2019-03-21 18:02:31 +00:00
.. _TgCrypto: https://docs.pyrogram.ml/resources/TgCrypto
2019-05-10 14:14:10 +00:00
.. _MTProto API: https://core.telegram.org/api#telegram-api
.. _Quick Start: intro/start.html
.. _API Usage: topics/usage.html
.. _Update Handling: topics/update-handling.html
.. _Client: core/client.html
.. _Types: core/types.html
.. _Methods: core/methods