Add custom attribute for custom emojis
This commit is contained in:
@@ -280,8 +280,8 @@ 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" width="32" '
|
||||
f'alt="{entity_text}" title="{entity_text}"/>'
|
||||
f'<img data-mx-emoticon data-mau-animated-emoji src="{escape(entity.file.mxc)}" '
|
||||
f'height="32" width="32" alt="{entity_text}" title="{entity_text}"/>'
|
||||
)
|
||||
elif entity_type in (
|
||||
MessageEntityBotCommand,
|
||||
|
||||
Reference in New Issue
Block a user