MessageEntity

class pyrogram.raw.base.MessageEntity

Message entities, representing styled text in a message.

Constructors

This base type has 19 constructors available.

InputMessageEntityMentionName

Message entity that can be used to create a user user mention: received mentions use the messageEntityMentionName constructor, instead.

MessageEntityBankCard

Indicates a credit card number.

MessageEntityBlockquote

Message entity representing a block quote.

MessageEntityBold

Message entity representing bold text.

MessageEntityBotCommand

Message entity representing a bot /command.

MessageEntityCashtag

Message entity representing a $cashtag.

MessageEntityCode

Message entity representing a codeblock.

MessageEntityEmail

Message entity representing an email@example.com.

MessageEntityHashtag

#hashtag message entity.

MessageEntityItalic

Message entity representing italic text.

MessageEntityMention

Message entity mentioning the current user.

MessageEntityMentionName

Message entity representing a user mention: for creating a mention use inputMessageEntityMentionName.

MessageEntityPhone

Message entity representing a phone number.

MessageEntityPre

Message entity representing a preformatted codeblock, allowing the user to specify a programming language for the codeblock.

MessageEntityStrike

Message entity representing strikethrough text.

MessageEntityTextUrl

Message entity representing a text url: for in-text urls like https://google.com use messageEntityUrl.

MessageEntityUnderline

Message entity representing underlined text.

MessageEntityUnknown

Unknown message entity.

MessageEntityUrl

Message entity representing an in-text url: https://google.com; for text urls, use messageEntityTextUrl.