2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-31 14:25:55 +00:00

Add new function compose

This commit is contained in:
Dan
2022-04-24 11:56:07 +02:00
parent 6fa4cdff15
commit 9be3818486
6 changed files with 76 additions and 6 deletions

View File

@@ -339,7 +339,7 @@ def pyrogram_api():
f2.write(title + "\n" + "=" * len(title) + "\n\n")
f2.write(".. automethod:: pyrogram.Client.{}()".format(method))
functions = ["idle"]
functions = ["idle", "compose"]
for func in functions:
with open(root + "/{}.rst".format(func), "w") as f2:

View File

@@ -1,8 +1,9 @@
Available Methods
=================
This page is about Pyrogram methods. All the methods listed here are bound to a :class:`~pyrogram.Client` instance.
Some other utility functions can instead be found in the main package directly.
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.
.. code-block:: python
@@ -40,11 +41,13 @@ Utilities
:nosignatures:
idle
compose
.. toctree::
:hidden:
idle
compose
.. currentmodule:: pyrogram.Client