mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +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()
|
||||
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue