Interface PassportElementErrorFrontSide

Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes.

interface PassportElementErrorFrontSide {
    fileHash: string;
    message: string;
    source: "front_side";
    type:
        | "passport"
        | "driver_license"
        | "identity_card"
        | "internal_passport";
}

Properties

fileHash: string

Base64-encoded hash of the file with the front side of the document.

message: string

Error message.

source: "front_side"

Error source, must be "front_side".

type:
    | "passport"
    | "driver_license"
    | "identity_card"
    | "internal_passport"

The section of the user's Telegram Passport that has the issue. Possible values are "passport", "driver_license", "identity_card", and "internal_passport".