# PassportData

> Describes Telegram Passport data shared with the bot by the user

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

---

Describes Telegram Passport data shared with the bot by the user.

## Fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| data | Array of EncryptedPassportElement | Always | Array with information about documents and other Telegram Passport elements that was shared with the bot |
| credentials | EncryptedCredentials | Always | Encrypted credentials required to decrypt the data |

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