From bff2ed0a86033ee5b9ca0c2f1b4cf855ea09de78 Mon Sep 17 00:00:00 2001 From: onejeuu <77905539+onejeuu@users.noreply.github.com> Date: Sat, 26 Aug 2023 22:31:30 +0300 Subject: [PATCH] Fix markdown italic quote (#1282) * Fix markdown italic quote * Add changelog --- CHANGES/1282.bugfix.rst | 1 + aiogram/utils/markdown.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 CHANGES/1282.bugfix.rst diff --git a/CHANGES/1282.bugfix.rst b/CHANGES/1282.bugfix.rst new file mode 100644 index 00000000..323060b1 --- /dev/null +++ b/CHANGES/1282.bugfix.rst @@ -0,0 +1 @@ +Italic markdown from utils now uses correct decorators \ No newline at end of file diff --git a/aiogram/utils/markdown.py b/aiogram/utils/markdown.py index 37600963..08b14a77 100644 --- a/aiogram/utils/markdown.py +++ b/aiogram/utils/markdown.py @@ -48,7 +48,7 @@ def italic(*content: Any, sep: str = " ") -> str: :param sep: :return: """ - return markdown_decoration.italic(value=html_decoration.quote(_join(*content, sep=sep))) + return markdown_decoration.italic(value=markdown_decoration.quote(_join(*content, sep=sep))) def hitalic(*content: Any, sep: str = " ") -> str: