# richblockmap

> A block with a map, corresponding to the custom HTML tag <tg-map>

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

---

A block with a map, corresponding to the custom HTML tag `<tg-map>`.

## Fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| type | String | Always | Type of the block, always "map" |
| location | Location | Always | Location of the center of the map |
| zoom | Integer | Always | Map zoom level |
| width | Integer | Always | Expected width of the map |
| height | Integer | Always | Expected height of the map |
| caption | RichBlockCaption | Optional | Caption of the block |

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