# ChecklistTask

> Describes a task in a checklist

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

---

Describes a task in a checklist.

## Fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| id | Integer | Always | Unique identifier of the task |
| text | String | Always | Text of the task |
| text_entities | Array of MessageEntity | Optional | Special entities that appear in the task text |
| completed_by_user | User | Optional | User that completed the task; omitted if the task wasn't completed by a user |
| completed_by_chat | Chat | Optional | Chat that completed the task; omitted if the task wasn't completed by a chat |
| completion_date | Integer | Optional | Point in time (Unix timestamp) when the task was completed; 0 if the task wasn't completed |

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