import { type EncryptedPassportElement } from "https://deno.land/x/grammy_types@v3.16.0/passport.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 only 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 only 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 only 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 only 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 if requested 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.