MessageEntity¶
- class pyrogram.raw.base.MessageEntity[source]¶
Message entities, representing styled text in a message
- Constructors:
This base type has 25 constructors available.
Message entity that can be used to create a user user mention: received mentions use the messageEntityMentionName constructor, instead.
Indicates a credit card number
Message entity representing a block quote.
Message entity representing bold text.
Message entity representing a bot /command
Message entity representing a $cashtag.
Message entity representing a
codeblock.Represents a custom emoji.
Represents an diff deletion: render it by simply underlining the specified section and coloring it in red, see here » for more info on how to render diff entities.
Represents an diff addition: render it by simply underlining the specified section and coloring it in green, see here » for more info on how to render diff entities.
Represents an diff replacement, render it as follows:
Message entity representing an email@example.com.
Represents a specific point in time, rendered as specified here »
#hashtag message entity
Message entity representing italic text.
Message entity mentioning a user by
@username; messageEntityMentionName can also be used to mention users by their ID.Message entity representing a user mention: for creating a mention use inputMessageEntityMentionName.
Message entity representing a phone number.
Message entity representing a preformatted
codeblock, allowing the user to specify a programming language for the codeblock.Message entity representing a spoiler
Message entity representing strikethrough text.
Message entity representing a text url: for in-text urls like https://google.com use messageEntityUrl.
Message entity representing underlined text.
Unknown message entity
Message entity representing an in-text url: https://google.com; for text urls, use messageEntityTextUrl.