mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 15:34:52 +00:00
Add clearer details
This commit is contained in:
parent
d03f04a560
commit
c744bba60f
1 changed files with 3 additions and 1 deletions
|
|
@ -26,7 +26,9 @@ Here's a simple example:
|
||||||
|
|
||||||
app.stop()
|
app.stop()
|
||||||
|
|
||||||
You can also use the Client instance in a context manager with the ``with`` statement:
|
You can also use Pyrogram in a context manager with the ``with`` statement. The Client will automatically
|
||||||
|
:meth:`start <pyrogram.Client.start>` and :meth:`stop <pyrogram.Client.stop>` gracefully, even in case of unhandled
|
||||||
|
exceptions in your code:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue