Class PassportElementErrorFileType.

see
package Default
inherited_from \TgBotApi\BotApiBase\Type\PassportElementError\PassportElementErrorType

 Methods

create()

create(string $type, string $message, array<mixed,string> $fileHashes) : \TgBotApi\BotApiBase\Type\PassportElementError\PassportElementErrorFilesType
Static

Parameters

$type

string

$message

string

$fileHashes

array<mixed,string>

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

Returns

\TgBotApi\BotApiBase\Type\PassportElementError\PassportElementErrorFilesType

createBase()

createBase(string $source, string $type, string $message) : mixed
InheritedStatic

Parameters

$source

string

$type

string

$message

string

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

Returns

mixed

 Properties

 

List of base64-encoded file hashes.

$fileHashes : array<mixed,string>

Default

 

Error message.

$message : string

Default

 

Error source, must be unspecified.

$source : string

Default

 

Type of element of the user's Telegram Passport which has the issue.

$type : string

Default

 Constants

 

ALLOWED_TYPES

ALLOWED_TYPES = array(self::TYPE_UTILITY_BILL, self::TYPE_BANK_STATEMENT, self::TYPE_RENTAL_AGREEMENT, self::TYPE_PASSPORT_REGISTRATION, self::TYPE_TEMPORARY_REGISTRATION) 
inherited_from \TgBotApi\BotApiBase\Type\PassportElementError\PassportElementErrorType::ALLOWED_TYPES
 

ALLOWED_TYPES

ALLOWED_TYPES = array() 
 

TYPE_BANK_STATEMENT

TYPE_BANK_STATEMENT = 'bank_statement' 
 

TYPE_PASSPORT_REGISTRATION

TYPE_PASSPORT_REGISTRATION = 'passport_registration' 
 

TYPE_RENTAL_AGREEMENT

TYPE_RENTAL_AGREEMENT = 'rental_agreement' 
 

TYPE_TEMPORARY_REGISTRATION

TYPE_TEMPORARY_REGISTRATION = 'temporary_registration' 
 

TYPE_UTILITY_BILL

TYPE_UTILITY_BILL = 'utility_bill'