# richtext

> This object represents a rich formatted text

**Category:** Telegram Bot API — Types (A-Z)  
**URL:** https://docs.botlify.cloud/richtext  
**Platform:** Botlify Cloud (https://botlify.cloud)  

---

This object represents a rich formatted text. Currently, it can be either a String for plain text, an Array of RichText, or any of the following types:

* RichTextBold

* RichTextItalic

* RichTextUnderline

* RichTextStrikethrough

* RichTextSpoiler

* RichTextDateTime

* RichTextTextMention

* RichTextSubscript

* RichTextSuperscript

* RichTextMarked

* RichTextCode

* RichTextCustomEmoji

* RichTextMathematicalExpression

* RichTextUrl

* RichTextEmailAddress

* RichTextPhoneNumber

* RichTextBankCardNumber

* RichTextMention

* RichTextHashtag

* RichTextCashtag

* RichTextBotCommand

* RichTextButton

* RichTextAnchor

* RichTextAnchorLink

* RichTextReference

* RichTextReferenceLink

> [!TIP]
> **Botlify Cloud Runtime**
> Credentials are auto-injected in .env — always load them with getenv(): BOT_TOKEN, ADMIN_CHAT_ID, BOT_USERNAME. Main database: database.db (SQLite, WAL mode). Runtime errors: error.log. Quick test: send to $ADMIN_CHAT_ID. Full details: Runtime Reference.
