Skip to content

Commit 5a0a0b6

Browse files
committed
Use f-string in the main example
1 parent 5261e95 commit 5a0a0b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Welcome to Pyrogram
106106
107107
@app.on_message(Filters.private)
108108
def hello(client, message):
109-
message.reply_text("Hello {}".format(message.from_user.first_name))
109+
message.reply_text(f"Hello {message.from_user.first_name}")
110110
111111
112112
app.run()

0 commit comments

Comments
 (0)