Welcome to Pyrogram =================== .. raw:: html
Pyrogram Logo

Telegram MTProto API Framework for Python
Source Code Releases Community

.. code-block:: python from pyrogram import Client, Filters app = Client("my_account") @app.on_message(Filters.private) def hello(client, message): message.reply("Hello {}".format(message.from_user.first_name)) app.run() **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 for both user and bot identities (bot API alternative) via the :doc:`MTProto API `. .. _Telegram: https://telegram.org How the Documentation is Organized ---------------------------------- Contents are organized into self-contained topics and can be all accessed from the sidebar, or by following them in order using the Next button at the end of each page. Here below you can, instead, find a list of the most relevant pages for a quick access. First Steps ----------- .. hlist:: :columns: 2 - :doc:`Quick Start `: Overview to get you started quickly. - :doc:`Calling Methods `: How to call Pyrogram's methods. - :doc:`Handling Updates `: How to handle Telegram updates. - :doc:`Error Handling `: How to handle API errors correctly. API Reference ------------- .. hlist:: :columns: 2 - :doc:`Pyrogram Client `: Reference details about the Client class. - :doc:`Available Methods `: List of available high-level methods. - :doc:`Available Types `: List of available high-level types. - :doc:`Bound Methods `: List of convenient bound methods. Meta ---- .. hlist:: :columns: 2 - :doc:`Pyrogram FAQ `: Answers to common Pyrogram questions. - :doc:`Pyrogram Glossary `: List of words with brief explanations. - :doc:`Release Notes `: Release notes for Pyrogram releases. - :doc:`Powered by Pyrogram `: Collection of Pyrogram Projects. - :doc:`Support Pyrogram `: Ways to show your appreciation. - :doc:`About the License `: Information about the Project license. .. toctree:: :hidden: :caption: Introduction intro/quickstart intro/install intro/setup .. toctree:: :hidden: :caption: Getting Started start/auth start/invoking start/updates start/errors .. toctree:: :hidden: :caption: API Reference api/client api/methods api/types api/bound-methods api/handlers api/decorators api/filters api/errors .. toctree:: :hidden: :caption: Topic Guides topics/use-filters topics/create-filters topics/more-on-updates topics/config-file topics/smart-plugins topics/auto-auth topics/session-settings topics/tgcrypto topics/text-formatting topics/serialize topics/proxy topics/bots-interaction topics/mtproto-vs-botapi topics/debugging topics/test-servers topics/advanced-usage topics/voice-calls .. toctree:: :hidden: :caption: Meta faq glossary releases powered-by support-pyrogram license .. toctree:: :hidden: :caption: Telegram API telegram/functions/index telegram/types/index Last updated on |today|