Skip to content

Commit 64baf03

Browse files
authored
Merge pull request #2426 from samvova/fix-mlink-issue
Fix: change code for non-escape mode - return url
2 parents db08c62 + 73c68c1 commit 64baf03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

telebot/formatting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def mlink(content: str, url: str, escape: Optional[bool]=True) -> str:
240240
:return: The formatted string.
241241
:rtype: :obj:`str`
242242
"""
243-
return '[{}]({})'.format(escape_markdown(content), escape_markdown(url) if escape else content)
243+
return '[{}]({})'.format(escape_markdown(content), escape_markdown(url) if escape else url)
244244

245245

246246
def hlink(content: str, url: str, escape: Optional[bool]=True) -> str:

0 commit comments

Comments
 (0)