From b8e6fc2e6a893cce3d81c10215d1dc462facd053 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 22 Jun 2018 13:17:39 +0200 Subject: [PATCH] Update welcome example --- docs/source/index.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/source/index.rst b/docs/source/index.rst index 61394d7b..414e47dd 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -44,12 +44,11 @@ Welcome to Pyrogram @app.on_message(Filters.private) def hello(client, message): - client.send_message( - message.chat.id, "Hello {}".format(message.from_user.first_name)) + message.reply_text( + "Hello {}".format(message.from_user.first_name)) - app.start() - app.idle() + app.run() Welcome to Pyrogram's Documentation! Here you can find resources for learning how to use the library. Contents are organized by topic and can be accessed from the sidebar, or by following them one by one using the Next