mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix spoiler
This commit is contained in:
parent
68a6c2c192
commit
9d072e88a6
1 changed files with 1 additions and 1 deletions
|
|
@ -233,7 +233,7 @@ class MarkdownDecoration(TextDecoration):
|
|||
return f"~{value}~"
|
||||
|
||||
def spoiler(self, value: str) -> str:
|
||||
return f"|{value}|"
|
||||
return f"||{value}||"
|
||||
|
||||
def quote(self, value: str) -> str:
|
||||
return re.sub(pattern=self.MARKDOWN_QUOTE_PATTERN, repl=r"\\\1", string=value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue