diff --git a/Update-Handling.md b/Update-Handling.md index 292ef9c..46f585a 100644 --- a/Update-Handling.md +++ b/Update-Handling.md @@ -19,13 +19,15 @@ client.start() client.idle() ``` -The last line, `client.idle()` is not strictly necessary but highly recommended; it will block your script execution until you press CTRL+C and automatically call the `stop` method which stops the Client and gently close the underlying connection. +The last line, `client.idle()` is not strictly necessary but highly recommended; it will block your script execution until you press CTRLC and automatically call the `stop` method which stops the Client and gently close the underlying connection. # Examples - Echo: ``` python + from pyrogram.api import types + def callback(update): if isinstance(update, types.UpdateShortMessage) and not update.out: client.send_message(update.user_id, update.message)