mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fixed text decorations
This commit is contained in:
parent
2051457770
commit
76bddb0824
2 changed files with 11 additions and 0 deletions
|
|
@ -66,6 +66,11 @@ class TestTextDecoration:
|
|||
MessageEntity(type="text_link", offset=0, length=5, url="https://aiogram.dev"),
|
||||
'<a href="https://aiogram.dev">test</a>',
|
||||
],
|
||||
[
|
||||
html_decoration,
|
||||
MessageEntity(type="blockquote", offset=0, length=5),
|
||||
"<blockquote>test</blockquote>",
|
||||
],
|
||||
[markdown_decoration, MessageEntity(type="bold", offset=0, length=5), "*test*"],
|
||||
[markdown_decoration, MessageEntity(type="italic", offset=0, length=5), "_\rtest_\r"],
|
||||
[markdown_decoration, MessageEntity(type="code", offset=0, length=5), "`test`"],
|
||||
|
|
@ -106,6 +111,11 @@ class TestTextDecoration:
|
|||
),
|
||||
"[test](tg://user?id=42)",
|
||||
],
|
||||
[
|
||||
markdown_decoration,
|
||||
MessageEntity(type="blockquote", offset=0, length=5),
|
||||
"> test",
|
||||
],
|
||||
],
|
||||
)
|
||||
def test_apply_single_entity(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue