Telegram Passport

PassportElementErrorSelfie

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

fields

fieldtyperequireddescription
sourcestringrequiredError source, must be selfie
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 selfie
messagestringrequiredError message

import

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

used by

types