Add support for converting animated stickers to webp

This commit is contained in:
Tulir Asokan
2022-08-12 22:07:52 +03:00
parent 76eafbf48c
commit a5fe05cff2
4 changed files with 35 additions and 3 deletions
+1 -1
View File
@@ -280,7 +280,7 @@ async def _telegram_entities_to_matrix(
html.append(entity_text)
elif entity_type == ReuploadedCustomEmoji:
html.append(
f'<img data-mx-emoticon src="{escape(entity.file.mxc)}" height="32" '
f'<img data-mx-emoticon src="{escape(entity.file.mxc)}" height="32" width="32" '
f'alt="{entity_text}" title="{entity_text}"/>'
)
elif entity_type in (