From c744bba60fec3af385b1400131bcfb09f63cc4f5 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 14 Oct 2018 12:02:48 +0200 Subject: [PATCH] Add clearer details --- docs/source/start/Usage.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/source/start/Usage.rst b/docs/source/start/Usage.rst index 4809df0b..6c1697b9 100644 --- a/docs/source/start/Usage.rst +++ b/docs/source/start/Usage.rst @@ -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 ` and :meth:`stop ` gracefully, even in case of unhandled +exceptions in your code: .. code-block:: python