MessageEntityType#

class pyrogram.enums.MessageEntityType#

Message entity type enumeration used in MessageEntity.

BANK_CARD = <class 'pyrogram.raw.types.message_entity_bank_card.MessageEntityBankCard'>#

Bank card text

BLOCKQUOTE = <class 'pyrogram.raw.types.message_entity_blockquote.MessageEntityBlockquote'>#

Blockquote text

BOLD = <class 'pyrogram.raw.types.message_entity_bold.MessageEntityBold'>#

Bold text

BOT_COMMAND = <class 'pyrogram.raw.types.message_entity_bot_command.MessageEntityBotCommand'>#

/start@pyrogrambot

CASHTAG = <class 'pyrogram.raw.types.message_entity_cashtag.MessageEntityCashtag'>#

$USD

CODE = <class 'pyrogram.raw.types.message_entity_code.MessageEntityCode'>#

Monowidth string

CUSTOM_EMOJI = <class 'pyrogram.raw.types.message_entity_custom_emoji.MessageEntityCustomEmoji'>#

Custom emoji

EMAIL = <class 'pyrogram.raw.types.message_entity_email.MessageEntityEmail'>#

do-not-reply@pyrogram.org

HASHTAG = <class 'pyrogram.raw.types.message_entity_hashtag.MessageEntityHashtag'>#

#hashtag

ITALIC = <class 'pyrogram.raw.types.message_entity_italic.MessageEntityItalic'>#

Italic text

MENTION = <class 'pyrogram.raw.types.message_entity_mention.MessageEntityMention'>#

@username

PHONE_NUMBER = <class 'pyrogram.raw.types.message_entity_phone.MessageEntityPhone'>#

+1-123-456-7890

PRE = <class 'pyrogram.raw.types.message_entity_pre.MessageEntityPre'>#

Monowidth block (see language)

SPOILER = <class 'pyrogram.raw.types.message_entity_spoiler.MessageEntitySpoiler'>#

Spoiler text

STRIKETHROUGH = <class 'pyrogram.raw.types.message_entity_strike.MessageEntityStrike'>#

Strikethrough text

For clickable text URLs

TEXT_MENTION = <class 'pyrogram.raw.types.message_entity_mention_name.MessageEntityMentionName'>#

for users without usernames (see user)

UNDERLINE = <class 'pyrogram.raw.types.message_entity_underline.MessageEntityUnderline'>#

Underlined text

UNKNOWN = <class 'pyrogram.raw.types.message_entity_unknown.MessageEntityUnknown'>#

Unknown message entity type

URL = <class 'pyrogram.raw.types.message_entity_url.MessageEntityUrl'>#

https://pyrogram.org (see url)