mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Use f-string in the main example
This commit is contained in:
parent
5261e9550e
commit
5a0a0b67bf
@ -106,7 +106,7 @@ Welcome to Pyrogram
|
|||||||
|
|
||||||
@app.on_message(Filters.private)
|
@app.on_message(Filters.private)
|
||||||
def hello(client, message):
|
def hello(client, message):
|
||||||
message.reply_text("Hello {}".format(message.from_user.first_name))
|
message.reply_text(f"Hello {message.from_user.first_name}")
|
||||||
|
|
||||||
|
|
||||||
app.run()
|
app.run()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user