Telegram Passport

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.

fields

fieldtyperequireddescription
sourcestringrequiredError source, must be front_side
type"passport" | "driver_license" | "identity_card" | "internal_passport"requiredThe section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”
file_hashstringrequiredBase64-encoded hash of the file with the front side of the document
messagestringrequiredError message

import

types.ts
import type { PassportElementErrorFrontSide } from "@yaebal/types";

used by

types