From 8b9732e7e08845bd476f8133ddb39c819c46490a Mon Sep 17 00:00:00 2001 From: Egor Date: Tue, 9 Jun 2020 16:47:51 +0300 Subject: [PATCH] fix: methods in markdown helper work now --- aiogram/utils/markdown.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/aiogram/utils/markdown.py b/aiogram/utils/markdown.py index b56e14b1..e60921a2 100644 --- a/aiogram/utils/markdown.py +++ b/aiogram/utils/markdown.py @@ -69,7 +69,7 @@ def bold(*content, sep=" "): :param sep: :return: """ - return markdown_decoration.bold.format( + return markdown_decoration.bold( value=markdown_decoration.quote(_join(*content, sep=sep)) ) @@ -82,7 +82,7 @@ def hbold(*content, sep=" "): :param sep: :return: """ - return html_decoration.bold.format( + return html_decoration.bold( value=html_decoration.quote(_join(*content, sep=sep)) ) @@ -95,7 +95,7 @@ def italic(*content, sep=" "): :param sep: :return: """ - return markdown_decoration.italic.format( + return markdown_decoration.italic( value=markdown_decoration.quote(_join(*content, sep=sep)) ) @@ -108,7 +108,7 @@ def hitalic(*content, sep=" "): :param sep: :return: """ - return html_decoration.italic.format( + return html_decoration.italic( value=html_decoration.quote(_join(*content, sep=sep)) ) @@ -121,7 +121,7 @@ def code(*content, sep=" "): :param sep: :return: """ - return markdown_decoration.code.format( + return markdown_decoration.code( value=markdown_decoration.quote(_join(*content, sep=sep)) ) @@ -134,7 +134,7 @@ def hcode(*content, sep=" "): :param sep: :return: """ - return html_decoration.code.format( + return html_decoration.code( value=html_decoration.quote(_join(*content, sep=sep)) ) @@ -147,7 +147,7 @@ def pre(*content, sep="\n"): :param sep: :return: """ - return markdown_decoration.pre.format( + return markdown_decoration.pre( value=markdown_decoration.quote(_join(*content, sep=sep)) ) @@ -160,7 +160,7 @@ def hpre(*content, sep="\n"): :param sep: :return: """ - return html_decoration.pre.format( + return html_decoration.pre( value=html_decoration.quote(_join(*content, sep=sep)) ) @@ -173,7 +173,7 @@ def underline(*content, sep=" "): :param sep: :return: """ - return markdown_decoration.underline.format( + return markdown_decoration.underline( value=markdown_decoration.quote(_join(*content, sep=sep)) ) @@ -186,7 +186,7 @@ def hunderline(*content, sep=" "): :param sep: :return: """ - return html_decoration.underline.format( + return html_decoration.underline( value=html_decoration.quote(_join(*content, sep=sep)) ) @@ -199,7 +199,7 @@ def strikethrough(*content, sep=" "): :param sep: :return: """ - return markdown_decoration.strikethrough.format( + return markdown_decoration.strikethrough( value=markdown_decoration.quote(_join(*content, sep=sep)) ) @@ -212,7 +212,7 @@ def hstrikethrough(*content, sep=" "): :param sep: :return: """ - return html_decoration.strikethrough.format( + return html_decoration.strikethrough( value=html_decoration.quote(_join(*content, sep=sep)) ) @@ -225,7 +225,7 @@ def link(title: str, url: str) -> str: :param url: :return: """ - return markdown_decoration.link.format(value=markdown_decoration.quote(title), link=url) + return markdown_decoration.link(value=markdown_decoration.quote(title), link=url) def hlink(title: str, url: str) -> str: @@ -236,7 +236,7 @@ def hlink(title: str, url: str) -> str: :param url: :return: """ - return html_decoration.link.format(value=html_decoration.quote(title), link=url) + return html_decoration.link(value=html_decoration.quote(title), link=url) def hide_link(url: str) -> str: