PassportData

Raw MD
Describes Telegram Passport data shared with the bot by the user

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

Fields

FieldTypeRequiredDescription
dataArray of EncryptedPassportElementAlwaysArray with information about documents and other Telegram Passport elements that was shared with the bot
credentialsEncryptedCredentialsAlwaysEncrypted credentials required to decrypt the data
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.