mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Supports language in message entity pre
This commit is contained in:
parent
eeb3b63b97
commit
0a1909f0f4
2 changed files with 18 additions and 1 deletions
|
|
@ -20,6 +20,11 @@ class TestTextDecoration:
|
|||
[html_decoration, MessageEntity(type="italic", offset=0, length=5), "<i>test</i>"],
|
||||
[html_decoration, MessageEntity(type="code", offset=0, length=5), "<code>test</code>"],
|
||||
[html_decoration, MessageEntity(type="pre", offset=0, length=5), "<pre>test</pre>"],
|
||||
[
|
||||
html_decoration,
|
||||
MessageEntity(type="pre", offset=0, length=5, language="python"),
|
||||
'<pre><code class="language-python">test</code></pre>',
|
||||
],
|
||||
[html_decoration, MessageEntity(type="underline", offset=0, length=5), "<u>test</u>"],
|
||||
[
|
||||
html_decoration,
|
||||
|
|
@ -51,6 +56,11 @@ class TestTextDecoration:
|
|||
[markdown_decoration, MessageEntity(type="italic", offset=0, length=5), "_test_\r"],
|
||||
[markdown_decoration, MessageEntity(type="code", offset=0, length=5), "`test`"],
|
||||
[markdown_decoration, MessageEntity(type="pre", offset=0, length=5), "```test```"],
|
||||
[
|
||||
markdown_decoration,
|
||||
MessageEntity(type="pre", offset=0, length=5, language="python"),
|
||||
"```python\ntest\n```",
|
||||
],
|
||||
[markdown_decoration, MessageEntity(type="underline", offset=0, length=5), "__test__"],
|
||||
[
|
||||
markdown_decoration,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue