Skip to content

Commit e039c1f

Browse files
committed
Update Client.idle() docstrings to make summary clearer
1 parent 448a65b commit e039c1f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

pyrogram/client/client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,10 @@ def restart(self):
395395
self.start()
396396

397397
def idle(self, stop_signals: tuple = (SIGINT, SIGTERM, SIGABRT)):
398-
"""Block the main script execution until a signal (e.g.: from CTRL+C) is received.
399-
Once the signal is received, the client will automatically stop and the main script will continue its execution.
398+
"""Block the main script execution until a signal is received.
399+
400+
Once the signal is received (e.g.: from CTRL+C), the client will automatically stop and the main script will
401+
continue its execution.
400402
401403
This is used after starting one or more clients and is useful for event-driven applications only, that are,
402404
applications which react upon incoming Telegram updates through handlers, rather than executing a set of methods

0 commit comments

Comments
 (0)