import { type EncryptedPassportElement } from "https://deno.land/x/grammy@v1.15.3/types.ts";
Describes documents or other Telegram Passport elements shared with the bot by the user.
Properties
Element type. One of âpersonal_detailsâ, âpassportâ, âdriver_licenseâ, âidentity_cardâ, âinternal_passportâ, âaddressâ, âutility_billâ, âbank_statementâ, ârental_agreementâ, âpassport_registrationâ, âtemporary_registrationâ, âphone_numberâ, âemailâ.
Base64-encoded encrypted Telegram Passport element data provided by the user, available for âpersonal_detailsâ, âpassportâ, âdriver_licenseâ, âidentity_cardâ, âinternal_passportâ and âaddressâ types. Can be decrypted and verified using the accompanying EncryptedCredentials.
User's verified phone number, available only for âphone_numberâ type
Array of encrypted files with documents provided by the user, available for âutility_billâ, âbank_statementâ, ârental_agreementâ, âpassport_registrationâ and âtemporary_registrationâ types. Files can be decrypted and verified using the accompanying EncryptedCredentials.
Encrypted file with the front side of the document, provided by the user. Available for âpassportâ, âdriver_licenseâ, âidentity_cardâ and âinternal_passportâ. The file can be decrypted and verified using the accompanying EncryptedCredentials.
Encrypted file with the reverse side of the document, provided by the user. Available for âdriver_licenseâ and âidentity_cardâ. The file can be decrypted and verified using the accompanying EncryptedCredentials.
Encrypted file with the selfie of the user holding a document, provided by the user; available for âpassportâ, âdriver_licenseâ, âidentity_cardâ and âinternal_passportâ. The file can be decrypted and verified using the accompanying EncryptedCredentials.
Array of encrypted files with translated versions of documents provided by the user. Available if requested for âpassportâ, âdriver_licenseâ, âidentity_cardâ, âinternal_passportâ, âutility_billâ, âbank_statementâ, ârental_agreementâ, âpassport_registrationâ and âtemporary_registrationâ types. Files can be decrypted and verified using the accompanying EncryptedCredentials.