Skip to content

Commit

Permalink
Fix: change code for non-escape mode - return url
Browse files Browse the repository at this point in the history
  • Loading branch information
samvova committed Nov 29, 2024
1 parent db08c62 commit 73c68c1
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 73c68c1

Please sign in to comment.