Class PassportElementErrorDataFieldType.

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

 Methods

create()

create(string $type, string $message, string $fieldName, string $dataHash) : \TgBotApi\BotApiBase\Type\PassportElementError\PassportElementErrorDataFieldType
Static

Parameters

$type

string

$message

string

$fieldName

string

$dataHash

string

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

Returns

\TgBotApi\BotApiBase\Type\PassportElementError\PassportElementErrorDataFieldType

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

 

Base64-encoded data hash.

$dataHash : string

Default

 

Name of the data field which has the error.

$fieldName : 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_PERSONAL_DETAILS, self::TYPE_PASSPORT, self::TYPE_DRIVER_LICENSE, self::TYPE_IDENTITY_CARD, self::TYPE_INTERNAL_PASSPORT, self::TYPE_ADDRESS) 
inherited_from \TgBotApi\BotApiBase\Type\PassportElementError\PassportElementErrorType::ALLOWED_TYPES
 

ALLOWED_TYPES

ALLOWED_TYPES = array() 
 

TYPE_ADDRESS

TYPE_ADDRESS = 'address' 
 

TYPE_DRIVER_LICENSE

TYPE_DRIVER_LICENSE = 'driver_license' 
 

TYPE_IDENTITY_CARD

TYPE_IDENTITY_CARD = 'identity_card' 
 

TYPE_INTERNAL_PASSPORT

TYPE_INTERNAL_PASSPORT = 'internal_passport' 
 

TYPE_PASSPORT

TYPE_PASSPORT = 'passport' 
 

TYPE_PERSONAL_DETAILS

TYPE_PERSONAL_DETAILS = 'personal_details'