2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-23 10:28:00 +00:00
pyrogram/docs/source/index.rst

161 lines
4.0 KiB
ReStructuredText
Raw Normal View History

2018-01-15 12:36:03 +01:00
Welcome to Pyrogram
===================
2017-12-30 19:47:18 +01:00
.. raw:: html
2017-12-31 11:03:10 +01:00
<div align="center">
2018-03-22 13:01:18 +01:00
<a href="https://docs.pyrogram.ml">
2018-09-19 11:58:48 +02:00
<div><img src="_static/logo.png" alt="Pyrogram Logo"></div>
2018-01-01 13:55:05 +01:00
</a>
2017-12-31 11:03:10 +01:00
</div>
<p align="center">
2019-01-24 20:03:14 +01:00
<b>Telegram MTProto API Framework for Python</b>
2018-01-13 17:09:25 +01:00
<br>
2019-05-10 16:14:10 +02:00
<a href="https://github.com/pyrogram/pyrogram">
GitHub
2018-01-13 17:09:25 +01:00
</a>
2019-05-10 16:14:10 +02:00
<a href="https://t.me/PyrogramChat">
Community
</a>
2018-01-13 17:09:25 +01:00
2019-01-24 20:03:14 +01:00
<a href="https://github.com/pyrogram/pyrogram/releases">
2019-05-13 18:04:44 +02:00
Releases
2018-01-13 17:09:25 +01:00
</a>
2019-05-10 16:14:10 +02:00
<a href="https://pypi.org/project/Pyrogram">
PyPI
2018-01-13 17:09:25 +01:00
</a>
<br>
2019-01-24 20:03:14 +01:00
<a href="compiler/api/source/main_api.tl">
2019-03-24 18:59:56 +01:00
<img src="https://img.shields.io/badge/schema-layer%2097-eda738.svg?longCache=true&colorA=262b30"
2019-01-24 20:03:14 +01:00
alt="Schema Layer">
2018-01-10 20:56:43 +01:00
</a>
2018-02-17 14:44:59 +01:00
<a href="https://github.com/pyrogram/tgcrypto">
2018-10-14 11:14:10 +02:00
<img src="https://img.shields.io/badge/tgcrypto-v1.1.1-eda738.svg?longCache=true&colorA=262b30"
2019-01-24 20:03:14 +01:00
alt="TgCrypto Version">
2018-01-10 20:56:43 +01:00
</a>
2017-12-31 11:03:10 +01:00
</p>
2017-12-30 19:47:18 +01:00
2018-04-12 14:13:58 +02: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 14:25:19 +02:00
message.reply("Hello {}".format(message.from_user.first_name))
2018-04-12 14:13:58 +02:00
2018-06-22 13:17:39 +02:00
app.run()
2018-04-12 14:13:58 +02:00
2019-05-12 19:26:55 +02:00
**Pyrogram** is an elegant, easy-to-use Telegram_ client library and framework written from the ground up in Python and
2019-05-13 18:04:44 +02:00
C. It enables you to easily create custom apps for both user and bot identities (bot API alternative) via the
2019-05-12 19:26:55 +02:00
`MTProto API`_.
2018-01-06 12:18:15 +01:00
2019-05-12 19:26:55 +02:00
.. _Telegram: https://telegram.org
.. _MTProto API: https://core.telegram.org/api#telegram-api
How the Documentation is Organized
2019-05-10 16:14:10 +02:00
----------------------------------
2019-05-12 19:26:55 +02:00
Contents are organized into self-contained topics and can be all accessed from the sidebar, or by following them in
2019-05-13 18:04:44 +02:00
order using the Next button at the end of each page. Here below you can, instead, find a list of the most relevant
pages.
2019-05-12 19:26:55 +02:00
Getting Started
^^^^^^^^^^^^^^^
- `Quick Start`_ - Overview to get you started as fast as possible.
- `Calling Methods`_ - How to use Pyrogram's API.
- `Handling Updates`_ - How to handle Telegram updates.
- `Error Handling`_ - How to handle API errors correctly.
.. _Quick Start: intro/start
.. _Calling Methods: start/invoking
.. _Handling Updates: start/updates
.. _Error Handling: start/errors
API Reference
^^^^^^^^^^^^^
- `Client Class`_ - Details about the Client class.
- `Available Methods`_ - A list of available high-level methods.
- `Available Types`_ - A list of available high-level types.
2019-05-10 16:14:10 +02:00
2019-05-13 18:04:44 +02:00
.. _Client Class: api/client
.. _Available Methods: api/methods
.. _Available Types: api/types
2018-01-06 12:18:15 +01:00
2019-05-12 19:26:55 +02:00
Topics
^^^^^^
2018-01-06 12:18:15 +01:00
2019-05-12 19:26:55 +02:00
- `Smart Plugins`_ - How to modularize your application.
- `Advanced Usage`_ - How to use Telegram's raw API.
- `Release Notes`_ - Release notes for Pyrogram releases.
- `Pyrogram FAQ`_ - Answers to common Pyrogram questions.
.. _Smart Plugins: topics/smart-plugins
.. _Advanced Usage: topics/advanced-usage
.. _Release Notes: topics/releases
.. _Pyrogram FAQ: topics/faq
2018-03-26 03:58:10 +02:00
2018-01-06 12:18:15 +01:00
.. toctree::
:hidden:
2019-05-10 16:14:10 +02:00
:caption: Introduction
2018-01-06 12:18:15 +01:00
2019-05-10 16:14:10 +02:00
intro/start
intro/install
intro/setup
2019-05-12 19:26:55 +02:00
.. toctree::
:hidden:
:caption: Getting Started
2019-05-10 16:14:10 +02:00
intro/auth
2019-05-12 19:26:55 +02:00
start/invoking
start/updates
start/errors
.. toctree::
:hidden:
:caption: API Reference
api/client
api/methods
api/types
api/handlers
api/decorators
api/filters
api/errors
2018-01-06 12:18:15 +01:00
.. toctree::
:hidden:
2019-05-10 16:14:10 +02:00
:caption: Topic Guides
2019-05-12 19:26:55 +02:00
topics/filters
2019-05-10 16:14:10 +02:00
topics/more-on-updates
2019-05-12 19:26:55 +02:00
topics/config-file
2019-05-10 16:14:10 +02:00
topics/smart-plugins
2019-05-12 19:26:55 +02:00
topics/auto-auth
topics/session-settings
2019-05-10 16:14:10 +02:00
topics/tgcrypto
topics/text-formatting
2019-05-12 19:26:55 +02:00
topics/proxy
2019-05-10 16:14:10 +02:00
topics/bots-interaction
topics/test-servers
topics/advanced-usage
topics/voice-calls
2019-05-12 19:26:55 +02:00
topics/releases
topics/faq
2018-01-03 18:26:05 +01:00
.. toctree::
2018-01-06 12:18:15 +01:00
:hidden:
:caption: Telegram API
2018-01-03 18:26:05 +01:00
2019-05-12 19:26:55 +02:00
telegram/functions/index
telegram/types/index