2019-07-09 17:03:46 +00:00
|
|
|
Available Methods
|
|
|
|
=================
|
|
|
|
|
2022-04-24 09:56:07 +00:00
|
|
|
This page is about Pyrogram methods. All the methods listed here are bound to a :class:`~pyrogram.Client` instance,
|
|
|
|
except for :meth:`~pyrogram.idle()` and :meth:`~pyrogram.compose()`, which are special functions that can be found in
|
|
|
|
the main package directly.
|
2019-07-09 17:03:46 +00:00
|
|
|
|
|
|
|
.. code-block:: python
|
|
|
|
|
|
|
|
from pyrogram import Client
|
|
|
|
|
|
|
|
app = Client("my_account")
|
|
|
|
|
|
|
|
with app:
|
2022-01-07 09:18:51 +00:00
|
|
|
app.send_message("me", "hi")
|
2019-07-09 17:03:46 +00:00
|
|
|
|
2020-04-01 18:08:46 +00:00
|
|
|
-----
|
|
|
|
|
2019-07-09 17:03:46 +00:00
|
|
|
.. currentmodule:: pyrogram.Client
|
|
|
|
|
|
|
|
Utilities
|
|
|
|
---------
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
{utilities}
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:hidden:
|
|
|
|
|
|
|
|
{utilities}
|
|
|
|
|
2020-08-22 06:05:05 +00:00
|
|
|
.. currentmodule:: pyrogram
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
idle
|
2022-04-24 09:56:07 +00:00
|
|
|
compose
|
2020-08-22 06:05:05 +00:00
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:hidden:
|
|
|
|
|
|
|
|
idle
|
2022-04-24 09:56:07 +00:00
|
|
|
compose
|
2020-08-22 06:05:05 +00:00
|
|
|
|
|
|
|
.. currentmodule:: pyrogram.Client
|
|
|
|
|
2019-07-09 17:03:46 +00:00
|
|
|
Messages
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
{messages}
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:hidden:
|
|
|
|
|
|
|
|
{messages}
|
|
|
|
|
|
|
|
Chats
|
|
|
|
-----
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
{chats}
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:hidden:
|
|
|
|
|
|
|
|
{chats}
|
|
|
|
|
|
|
|
Users
|
|
|
|
-----
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
{users}
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:hidden:
|
|
|
|
|
|
|
|
{users}
|
|
|
|
|
2021-03-17 11:40:36 +00:00
|
|
|
Invite Links
|
|
|
|
------------
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
{invite_links}
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:hidden:
|
|
|
|
|
|
|
|
{invite_links}
|
|
|
|
|
2019-07-09 17:03:46 +00:00
|
|
|
Contacts
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
{contacts}
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:hidden:
|
|
|
|
|
|
|
|
{contacts}
|
|
|
|
|
|
|
|
Password
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
{password}
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:hidden:
|
|
|
|
|
|
|
|
{password}
|
|
|
|
|
|
|
|
Bots
|
|
|
|
----
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
{bots}
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:hidden:
|
|
|
|
|
|
|
|
{bots}
|
|
|
|
|
2019-08-13 11:18:01 +00:00
|
|
|
Authorization
|
|
|
|
-------------
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
{authorization}
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:hidden:
|
|
|
|
|
|
|
|
{authorization}
|
|
|
|
|
2023-11-28 08:24:28 +00:00
|
|
|
Stories
|
2024-07-29 08:38:48 +00:00
|
|
|
-------
|
2023-11-28 08:24:28 +00:00
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
{stories}
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:hidden:
|
|
|
|
|
|
|
|
{stories}
|
|
|
|
|
|
|
|
Premium
|
2024-07-29 08:38:48 +00:00
|
|
|
-------
|
2023-11-28 08:24:28 +00:00
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
{premium}
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:hidden:
|
|
|
|
|
|
|
|
{premium}
|
|
|
|
|
2024-07-29 08:38:48 +00:00
|
|
|
Phone
|
|
|
|
-----
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
{phone}
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:hidden:
|
|
|
|
|
|
|
|
{phone}
|
|
|
|
|
|
|
|
Business
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
{business}
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:hidden:
|
|
|
|
|
|
|
|
{business}
|
|
|
|
|
|
|
|
Payments
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
{payments}
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:hidden:
|
|
|
|
|
|
|
|
{payments}
|
|
|
|
|
2024-08-04 12:31:31 +00:00
|
|
|
Account
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
{account}
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:hidden:
|
|
|
|
|
|
|
|
{account}
|
|
|
|
|
2019-07-09 17:03:46 +00:00
|
|
|
Advanced
|
|
|
|
--------
|
|
|
|
|
2019-08-13 11:18:01 +00:00
|
|
|
Methods used only when dealing with the raw Telegram API.
|
|
|
|
Learn more about how to use the raw API at :doc:`Advanced Usage <../../topics/advanced-usage>`.
|
2019-07-09 17:03:46 +00:00
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
{advanced}
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:hidden:
|
|
|
|
|
2023-11-28 08:24:28 +00:00
|
|
|
{advanced}
|