PassportElementErrorFile
Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes.
fields
| field | type | required | description |
|---|---|---|---|
source | string | required | Error source, must be file |
type | "utility_bill" | "bank_statement" | "rental_agreement" | "passport_registration" | "temporary_registration" | required | The section of the user's Telegram Passport which has the issue, one of “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration” |
file_hash | string | required | Base64-encoded file hash |
message | string | required | Error message |
import
import type { PassportElementErrorFile } from "@yaebal/types";used by
types
official Bot API docs: https://core.telegram.org/bots/api/#passportelementerrorfile