mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
Update welcome example
This commit is contained in:
parent
82a0c965ba
commit
b8e6fc2e6a
1 changed files with 3 additions and 4 deletions
|
|
@ -44,12 +44,11 @@ Welcome to Pyrogram
|
||||||
|
|
||||||
@app.on_message(Filters.private)
|
@app.on_message(Filters.private)
|
||||||
def hello(client, message):
|
def hello(client, message):
|
||||||
client.send_message(
|
message.reply_text(
|
||||||
message.chat.id, "Hello {}".format(message.from_user.first_name))
|
"Hello {}".format(message.from_user.first_name))
|
||||||
|
|
||||||
|
|
||||||
app.start()
|
app.run()
|
||||||
app.idle()
|
|
||||||
|
|
||||||
Welcome to Pyrogram's Documentation! Here you can find resources for learning how to use the library.
|
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
|
Contents are organized by topic and can be accessed from the sidebar, or by following them one by one using the Next
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue