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)
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user