2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-27 20:37:54 +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:
ColinShark 2019-06-15 13:55:50 +02:00 committed by Dan
parent 22199b0fe5
commit 4492d9d20b

View File

@ -31,8 +31,8 @@ class MessageEntity(Object):
type (``str``):
Type of the entity.
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"
(for clickable text URLs), "text_mention" (for users without usernames).
(bold text), "italic" (italic text), "code" (monowidth string), "pre" (monowidth block), "text_link"
(for clickable text URLs), "text_mention" (for custom text mentions based on users' identifiers).
offset (``int``):
Offset in UTF-16 code units to the start of the entity.