Skip to content

Commit

Permalink
Merge pull request #2426 from samvova/fix-mlink-issue
Browse files Browse the repository at this point in the history
Fix: change code for non-escape mode - return url
  • Loading branch information
Badiboy authored Nov 29, 2024
2 parents db08c62 + 73c68c1 commit 64baf03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telebot/formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def mlink(content: str, url: str, escape: Optional[bool]=True) -> str:
:return: The formatted string.
:rtype: :obj:`str`
"""
return '[{}]({})'.format(escape_markdown(content), escape_markdown(url) if escape else content)
return '[{}]({})'.format(escape_markdown(content), escape_markdown(url) if escape else url)


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

0 comments on commit 64baf03

Please sign in to comment.