Update utils.py

pull/134/head
Who? 2025-04-21 06:24:15 +07:00 committed by GitHub
parent 9a674284fa
commit d5755f7c52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 8 deletions

View File

@ -283,14 +283,7 @@ class Utils(InlineUnit):
return reply_markup
def sanitise_text(self, text: str) -> str:
"""
Replaces all animated emojis in text with normal ones,
bc aiogram doesn't support them
:param text: text to sanitise
:return: sanitised text
"""
return re.sub(r"</?(?:emoji|blockquote).*?>", "", text)
return re.sub(r"</?emoji.*?>", "", text)
async def _edit_unit(
self,