Class PassportElementErrorUnspecifiedType.

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

 Methods

create()

create(string $type, string $message, string $elementHash) : \TgBotApi\BotApiBase\Type\PassportElementError\PassportElementErrorUnspecifiedType
Static

Parameters

$type

string

$message

string

$elementHash

string

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

Returns

\TgBotApi\BotApiBase\Type\PassportElementError\PassportElementErrorUnspecifiedType

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 element hash.

$elementHash : 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, self::TYPE_UTILITY_BILL, self::TYPE_BANK_STATEMENT, self::TYPE_RENTAL_AGREEMENT, self::TYPE_PASSPORT_REGISTRATION, self::TYPE_TEMPORARY_REGISTRATION, self::TYPE_PHONE_NUMBER, self::TYPE_EMAIL) 
inherited_from \TgBotApi\BotApiBase\Type\PassportElementError\PassportElementErrorType::ALLOWED_TYPES
 

ALLOWED_TYPES

ALLOWED_TYPES = array()