# richtextanchorlink

> A link to an anchor.

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

---

A link to an anchor.

## Fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| type | String | Always | Type of the rich text, always "anchor_link" |
| text | RichText | Always | The link text |
| anchor_name | String | Always | The name of the anchor. If the name is empty, then the link brings back to the top of the message. |

> [!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.
