Interface EncryptedPassportElement

Contains information about an encrypted Telegram Passport element; for bots only.

interface EncryptedPassportElement {
    @type: "encryptedPassportElement";
    data: string;
    files: DatedFile[];
    front_side: DatedFile;
    hash: string;
    reverse_side: DatedFile;
    selfie: DatedFile;
    translation: DatedFile[];
    type: PassportElementType;
    value: string;
}

Properties

@type: "encryptedPassportElement"
data: string

Encrypted JSON-encoded data about the user.

files: DatedFile[]

List of attached files.

front_side: DatedFile

The front side of an identity document.

hash: string

Hash of the entire element.

reverse_side: DatedFile

The reverse side of an identity document; may be null.

selfie: DatedFile

Selfie with the document; may be null.

translation: DatedFile[]

List of files containing a certified English translation of the document.

Type of Telegram Passport element.

value: string

Unencrypted data, phone number or email address.