mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix phone_number and bot_command entity types generation
This commit is contained in:
parent
8d842ea156
commit
2380e14dd9
2 changed files with 27 additions and 13 deletions
|
|
@ -184,15 +184,29 @@ class TestTextDecoration:
|
|||
html_decoration,
|
||||
"@username",
|
||||
[
|
||||
MessageEntity(
|
||||
type="mention", offset=0, length=9, url=None, user=None, language=None
|
||||
),
|
||||
MessageEntity(
|
||||
type="bold", offset=0, length=9, url=None, user=None, language=None
|
||||
),
|
||||
MessageEntity(type="mention", offset=0, length=9),
|
||||
MessageEntity(type="bold", offset=0, length=9),
|
||||
],
|
||||
"<b>@username</b>",
|
||||
],
|
||||
[
|
||||
html_decoration,
|
||||
"/command",
|
||||
[
|
||||
MessageEntity(type="bot_command", offset=0, length=8),
|
||||
MessageEntity(type="bold", offset=0, length=8),
|
||||
],
|
||||
"<b>/command</b>",
|
||||
],
|
||||
[
|
||||
html_decoration,
|
||||
"+1-212-555-0123",
|
||||
[
|
||||
MessageEntity(type="phone_number", offset=0, length=15),
|
||||
MessageEntity(type="bold", offset=0, length=15),
|
||||
],
|
||||
"<b>+1-212-555-0123</b>",
|
||||
],
|
||||
[
|
||||
html_decoration,
|
||||
"test te👍🏿st test",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue