mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
fix tg-emoji closing tag: use constant
This commit is contained in:
parent
141a550ab2
commit
b40588b4c0
1 changed files with 1 additions and 1 deletions
|
|
@ -218,7 +218,7 @@ class HtmlDecoration(TextDecoration):
|
||||||
return html.escape(value, quote=False)
|
return html.escape(value, quote=False)
|
||||||
|
|
||||||
def custom_emoji(self, value: str, custom_emoji_id: str) -> str:
|
def custom_emoji(self, value: str, custom_emoji_id: str) -> str:
|
||||||
return f'<{self.EMOJI_TAG} emoji-id="{custom_emoji_id}">{value}</tg-emoji>'
|
return f'<{self.EMOJI_TAG} emoji-id="{custom_emoji_id}">{value}</{self.EMOJI_TAG}>'
|
||||||
|
|
||||||
def blockquote(self, value: str) -> str:
|
def blockquote(self, value: str) -> str:
|
||||||
return f"<{self.BLOCKQUOTE_TAG}>{value}</{self.BLOCKQUOTE_TAG}>"
|
return f"<{self.BLOCKQUOTE_TAG}>{value}</{self.BLOCKQUOTE_TAG}>"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue