Fix HtmlDecoration attribute name for custom emoji method (#1782)

This commit is contained in:
Sergey Maranchuk 2026-03-03 14:28:26 +02:00
parent 3e2ca5b6b0
commit b95cafb6b5
No known key found for this signature in database
GPG key ID: 4DB6FE8E8FDB9ED4
4 changed files with 4 additions and 3 deletions

View file

@ -108,7 +108,7 @@ class TestNode:
],
[
CustomEmoji("test", custom_emoji_id="42"),
'<tg-emoji emoji_id="42">test</tg-emoji>',
'<tg-emoji emoji-id="42">test</tg-emoji>',
],
[
BlockQuote("test"),

View file

@ -59,7 +59,7 @@ class TestTextDecoration:
[
html_decoration,
MessageEntity(type="custom_emoji", offset=0, length=5, custom_emoji_id="42"),
'<tg-emoji emoji_id="42">test</tg-emoji>',
'<tg-emoji emoji-id="42">test</tg-emoji>',
],
[
html_decoration,