mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 12:57:52 +00:00
Put italic in quotes, adapt text_mention (#254)
* Put italic in quotes, adapt text_mention * Update message_entity.py
This commit is contained in:
parent
22199b0fe5
commit
4492d9d20b
@ -31,8 +31,8 @@ class MessageEntity(Object):
|
|||||||
type (``str``):
|
type (``str``):
|
||||||
Type of the entity.
|
Type of the entity.
|
||||||
Can be "mention" (@username), "hashtag", "cashtag", "bot_command", "url", "email", "phone_number", "bold"
|
Can be "mention" (@username), "hashtag", "cashtag", "bot_command", "url", "email", "phone_number", "bold"
|
||||||
(bold text), italic (italic text), "code" (monowidth string), "pre" (monowidth block), "text_link"
|
(bold text), "italic" (italic text), "code" (monowidth string), "pre" (monowidth block), "text_link"
|
||||||
(for clickable text URLs), "text_mention" (for users without usernames).
|
(for clickable text URLs), "text_mention" (for custom text mentions based on users' identifiers).
|
||||||
|
|
||||||
offset (``int``):
|
offset (``int``):
|
||||||
Offset in UTF-16 code units to the start of the entity.
|
Offset in UTF-16 code units to the start of the entity.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user