type property

MessageEntityType type
final

Type of the entity. Currently, can be:

  • mention - (@username)
  • hashtag - (#hashtag),
  • cashtag - ($USD),
  • botCommand - (/start@jobs_bot),
  • url - (https://telegram.org),
  • email - (do-not-reply@telegram.org),
  • phoneNumber - (+1-212-555-0123),
  • bold - (bold text),
  • italic - (italic text),
  • underline - (underlined text),
  • strikethrough - (strikethrough text),
  • spoiler - (spoiler message),
  • code - (monowidth string),
  • pre - (monowidth block),
  • textLink - (for clickable text URLs),
  • textMention - (for users without usernames),
  • customEmoji - (for inline custom emoji stickers)

Implementation

final MessageEntityType type;