BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
www
/
app.imagivibe.com
/
vendor
/
irazasyed
/
telegram-bot-sdk
/
src
/
Objects
/
Passport
đ¤ Upload
đ New File
đ New Folder
Close
Editing: EncryptedPassportElement.php
<?php namespace Telegram\Bot\Objects\Passport; use Telegram\Bot\Objects\BaseObject; /** * @link https://core.telegram.org/bots/api#encryptedpassportelement * * @property string $type 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â. * @property string|null $data (Optional). 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. * @property string|null $phoneNumber (Optional). User's verified phone number, available only for âphone_numberâ type * @property string|null $email (Optional). User's verified email address, available only for âemailâ type * @property PassportFile[] $files (Optional). 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. * @property PassportFile|null $frontSide (Optional). 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. * @property PassportFile|null $reverseSide (Optional). 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. * @property PassportFile|null $selfie (Optional). 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. * @property PassportFile[]|null $translation (Optional). 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. * @property string|null $hash (Optional). Base64-encoded element hash for using in PassportElementErrorUnspecified */ class EncryptedPassportElement extends BaseObject { /** * {@inheritdoc} * * @return array{files: string[], front_side: string, reverse_side: string, selfie: string, translation: string[]} */ public function relations(): array { return [ 'files' => [PassportFile::class], 'front_side' => PassportFile::class, 'reverse_side' => PassportFile::class, 'selfie' => PassportFile::class, 'translation' => [PassportFile::class], ]; } }
Save
Cancel