diff --git a/telebot/formatting.py b/telebot/formatting.py index 24299b51a..801a67ec1 100644 --- a/telebot/formatting.py +++ b/telebot/formatting.py @@ -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: