MessageEntityType#
- class pyrogram.enums.MessageEntityType#
Message entity type enumeration used in
MessageEntity
.- MENTION = <class 'pyrogram.raw.types.message_entity_mention.MessageEntityMention'>#
@username
- HASHTAG = <class 'pyrogram.raw.types.message_entity_hashtag.MessageEntityHashtag'>#
#hashtag
- CASHTAG = <class 'pyrogram.raw.types.message_entity_cashtag.MessageEntityCashtag'>#
$USD
- BOT_COMMAND = <class 'pyrogram.raw.types.message_entity_bot_command.MessageEntityBotCommand'>#
/start@pyrogrambot
- URL = <class 'pyrogram.raw.types.message_entity_url.MessageEntityUrl'>#
https://pyrogram.org
(seeurl
)
- EMAIL = <class 'pyrogram.raw.types.message_entity_email.MessageEntityEmail'>#
do-not-reply@pyrogram.org
- PHONE_NUMBER = <class 'pyrogram.raw.types.message_entity_phone.MessageEntityPhone'>#
+1-123-456-7890
- BOLD = <class 'pyrogram.raw.types.message_entity_bold.MessageEntityBold'>#
Bold text
- ITALIC = <class 'pyrogram.raw.types.message_entity_italic.MessageEntityItalic'>#
Italic text
- UNDERLINE = <class 'pyrogram.raw.types.message_entity_underline.MessageEntityUnderline'>#
Underlined text
- STRIKETHROUGH = <class 'pyrogram.raw.types.message_entity_strike.MessageEntityStrike'>#
Strikethrough text
- SPOILER = <class 'pyrogram.raw.types.message_entity_spoiler.MessageEntitySpoiler'>#
Spoiler text
- CODE = <class 'pyrogram.raw.types.message_entity_code.MessageEntityCode'>#
Monowidth string
- PRE = <class 'pyrogram.raw.types.message_entity_pre.MessageEntityPre'>#
Monowidth block (see
language
)
- BLOCKQUOTE = <class 'pyrogram.raw.types.message_entity_blockquote.MessageEntityBlockquote'>#
Blockquote text
- TEXT_LINK = <class 'pyrogram.raw.types.message_entity_text_url.MessageEntityTextUrl'>#
For clickable text URLs
- TEXT_MENTION = <class 'pyrogram.raw.types.message_entity_mention_name.MessageEntityMentionName'>#
for users without usernames (see
user
)
- BANK_CARD = <class 'pyrogram.raw.types.message_entity_bank_card.MessageEntityBankCard'>#
Bank card text
- CUSTOM_EMOJI = <class 'pyrogram.raw.types.message_entity_custom_emoji.MessageEntityCustomEmoji'>#
Custom emoji
- UNKNOWN = <class 'pyrogram.raw.types.message_entity_unknown.MessageEntityUnknown'>#
Unknown message entity type