mirror of https://github.com/coddrago/Heroku
Update utils.py
parent
9a674284fa
commit
d5755f7c52
|
@ -283,14 +283,7 @@ class Utils(InlineUnit):
|
||||||
return reply_markup
|
return reply_markup
|
||||||
|
|
||||||
def sanitise_text(self, text: str) -> str:
|
def sanitise_text(self, text: str) -> str:
|
||||||
"""
|
return re.sub(r"</?emoji.*?>", "", text)
|
||||||
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)
|
|
||||||
|
|
||||||
async def _edit_unit(
|
async def _edit_unit(
|
||||||
self,
|
self,
|
||||||
|
|
Loading…
Reference in New Issue