# BotCommandScopeChat

> Represents the scope of bot commands, covering a specific chat

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

---

Represents the scope of bot commands, covering a specific chat.

## Fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| type | String | Always | Scope type, must be chat |
| chat_id | Integer or String | Always | Unique identifier for the target chat or username of the target supergroup in the format @username. Channel direct messages chats and channel chats aren't supported. |

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