Skip to content

Commit c744bba

Browse files
committed
Add clearer details
1 parent d03f04a commit c744bba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/source/start/Usage.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ Here's a simple example:
2626
2727
app.stop()
2828
29-
You can also use the Client instance in a context manager with the ``with`` statement:
29+
You can also use Pyrogram in a context manager with the ``with`` statement. The Client will automatically
30+
:meth:`start <pyrogram.Client.start>` and :meth:`stop <pyrogram.Client.stop>` gracefully, even in case of unhandled
31+
exceptions in your code:
3032

3133
.. code-block:: python
3234

0 commit comments

Comments
 (0)