# `ExGram.Model.RichText`
[🔗](https://github.com/rockneurotiko/ex_gram/blob/0.67.0/lib/ex_gram.ex#L8809)

RichText model. Valid subtypes: RichTextBold, RichTextItalic, RichTextUnderline, RichTextStrikethrough, RichTextSpoiler, RichTextDateTime, RichTextTextMention, RichTextSubscript, RichTextSuperscript, RichTextMarked, RichTextCode, RichTextCustomEmoji, RichTextMathematicalExpression, RichTextUrl, RichTextEmailAddress, RichTextPhoneNumber, RichTextBankCardNumber, RichTextMention, RichTextHashtag, RichTextCashtag, RichTextBotCommand, RichTextAnchor, RichTextAnchorLink, RichTextReference, RichTextReferenceLink

# `t`

```elixir
@type t() ::
  String.t()
  | [t()]
  | ExGram.Model.RichTextBold.t()
  | ExGram.Model.RichTextItalic.t()
  | ExGram.Model.RichTextUnderline.t()
  | ExGram.Model.RichTextStrikethrough.t()
  | ExGram.Model.RichTextSpoiler.t()
  | ExGram.Model.RichTextDateTime.t()
  | ExGram.Model.RichTextTextMention.t()
  | ExGram.Model.RichTextSubscript.t()
  | ExGram.Model.RichTextSuperscript.t()
  | ExGram.Model.RichTextMarked.t()
  | ExGram.Model.RichTextCode.t()
  | ExGram.Model.RichTextCustomEmoji.t()
  | ExGram.Model.RichTextMathematicalExpression.t()
  | ExGram.Model.RichTextUrl.t()
  | ExGram.Model.RichTextEmailAddress.t()
  | ExGram.Model.RichTextPhoneNumber.t()
  | ExGram.Model.RichTextBankCardNumber.t()
  | ExGram.Model.RichTextMention.t()
  | ExGram.Model.RichTextHashtag.t()
  | ExGram.Model.RichTextCashtag.t()
  | ExGram.Model.RichTextBotCommand.t()
  | ExGram.Model.RichTextAnchor.t()
  | ExGram.Model.RichTextAnchorLink.t()
  | ExGram.Model.RichTextReference.t()
  | ExGram.Model.RichTextReferenceLink.t()
```

# `decode_as`

# `primitive_types`

# `subtypes`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
