diff --git a/docs/source/topics/text-formatting.rst b/docs/source/topics/text-formatting.rst index bada964b..e3b730e5 100644 --- a/docs/source/topics/text-formatting.rst +++ b/docs/source/topics/text-formatting.rst @@ -64,7 +64,7 @@ To strictly use this mode, pass "markdown" to the *parse_mode* parameter when us ~~strike~~ - ##spoiler## + ||spoiler|| [text URL](https://docs.pyrogram.org/) @@ -89,7 +89,7 @@ To strictly use this mode, pass "markdown" to the *parse_mode* parameter when us "__italic__, " "--underline--, " "~~strike~~, " - "##spoiler##, " + "||spoiler||, " "[mention](tg://user?id=23122162), " "[URL](https://pyrogram.org), " "`code`, " diff --git a/pyrogram/parser/markdown.py b/pyrogram/parser/markdown.py index 3652c4c4..5d14f8e8 100644 --- a/pyrogram/parser/markdown.py +++ b/pyrogram/parser/markdown.py @@ -28,7 +28,7 @@ BOLD_DELIM = "**" ITALIC_DELIM = "__" UNDERLINE_DELIM = "--" STRIKE_DELIM = "~~" -SPOILER_DELIM = "##" +SPOILER_DELIM = "||" CODE_DELIM = "`" PRE_DELIM = "```"