Telegram Passport

PassportElementErrorFile

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

fields

fieldtyperequireddescription
sourcestringrequiredError source, must be file
type"utility_bill" | "bank_statement" | "rental_agreement" | "passport_registration" | "temporary_registration"requiredThe section of the user's Telegram Passport which has the issue, one of “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”
file_hashstringrequiredBase64-encoded file hash
messagestringrequiredError message

import

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

used by

types