diff --git a/aiogram_i18n/utils/text_decorator.py b/aiogram_i18n/utils/text_decorator.py index 9110813..a8fd8b9 100644 --- a/aiogram_i18n/utils/text_decorator.py +++ b/aiogram_i18n/utils/text_decorator.py @@ -41,10 +41,13 @@ def spoiler(self, value: str) -> str: def quote(self, value: str) -> str: return value + def custom_emoji(self, value: str, custom_emoji_id: str) -> str: + return value + def blockquote(self, value: str) -> str: return value - def custom_emoji(self, value: str, custom_emoji_id: str) -> str: + def expandable_blockquote(self, value: str) -> str: return value @@ -70,6 +73,8 @@ def functions(self) -> Dict[str, Callable[..., Any]]: "SPOILER": self.spoiler, "QUOTE": self.quote, "CUSTOM_EMOJI": self.custom_emoji, + "BLOCKQUOTE": self.blockquote, + "EXPANDABLE_BLOCKQUOTE": self.expandable_blockquote, } @property @@ -122,5 +127,11 @@ def custom_emoji( ) -> str: return self.get_decoration(parse_mode=parse_mode).custom_emoji(value, custom_emoji_id) + def blockquote(self, value: str, parse_mode: Optional[str] = None) -> str: + return self.get_decoration(parse_mode=parse_mode).blockquote(value) + + def expandable_blockquote(self, value: str, parse_mode: Optional[str] = None) -> str: + return self.get_decoration(parse_mode=parse_mode).expandable_blockquote(value) + td = TextDecoration()