mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-31 14:25:55 +00:00
Update README.md example
Use .reply_text() instead of .reply()
This commit is contained in:
@@ -28,7 +28,7 @@ app = Client("my_account")
|
|||||||
|
|
||||||
@app.on_message(Filters.private)
|
@app.on_message(Filters.private)
|
||||||
def hello(client, message):
|
def hello(client, message):
|
||||||
message.reply("Hello {}".format(message.from_user.first_name))
|
message.reply_text("Hello {}".format(message.from_user.first_name))
|
||||||
|
|
||||||
|
|
||||||
app.run()
|
app.run()
|
||||||
|
Reference in New Issue
Block a user