From e039c1fb801232ceba855f8025e458ca0c4008a8 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Tue, 9 Jul 2019 20:03:03 +0200 Subject: [PATCH] Update Client.idle() docstrings to make summary clearer --- pyrogram/client/client.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index fdfc1e68..9c19e49a 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -395,8 +395,10 @@ class Client(Methods, BaseClient): self.start() def idle(self, stop_signals: tuple = (SIGINT, SIGTERM, SIGABRT)): - """Block the main script execution until a signal (e.g.: from CTRL+C) is received. - Once the signal is received, the client will automatically stop and the main script will continue its execution. + """Block the main script execution until a signal is received. + + Once the signal is received (e.g.: from CTRL+C), the client will automatically stop and the main script will + continue its execution. This is used after starting one or more clients and is useful for event-driven applications only, that are, applications which react upon incoming Telegram updates through handlers, rather than executing a set of methods