mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-13 02:19:54 +00:00
Use positional only format.
This commit is contained in:
parent
ea611e9fc9
commit
92253ba77a
7 changed files with 38 additions and 20 deletions
|
|
@ -64,11 +64,11 @@ def hpre(*content, sep='\n'):
|
|||
|
||||
|
||||
def link(title, url):
|
||||
return f"[{_escape(title)}]({url})"
|
||||
return "[{0}]({1})".format(_escape(title), url)
|
||||
|
||||
|
||||
def hlink(title, url):
|
||||
return f"<a href=\"{url}\">{_escape(title)}</a>"
|
||||
return "<a href=\"{0}\">{1}</a>".format(url, _escape(title))
|
||||
|
||||
|
||||
def escape_md(*content, sep=' '):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue