Class AnswerShippingQueryMethod.

see
package Default

 Methods

addShippingOption()

addShippingOption(\TgBotApi\BotApiBase\Type\ShippingOption $shippingOption) 

Parameters

$shippingOption

\TgBotApi\BotApiBase\Type\ShippingOption

createFail()

createFail(string $shippingQueryId, string $errorMessage) : \TgBotApi\BotApiBase\Method\AnswerShippingQueryMethod
Static

Parameters

$shippingQueryId

string

$errorMessage

string

Returns

\TgBotApi\BotApiBase\Method\AnswerShippingQueryMethod

createSuccess()

createSuccess(string $shippingQueryId, array $shippingOptions) : \TgBotApi\BotApiBase\Method\AnswerShippingQueryMethod
Static

Parameters

$shippingQueryId

string

$shippingOptions

array

Returns

\TgBotApi\BotApiBase\Method\AnswerShippingQueryMethod

 Properties

 

Optional. Required if ok is False.

$errorMessage : string | null

Default

Error message in human readable form that explains why it is impossible to complete the order (e.g. "Sorry, delivery to your desired address is unavailable'). Telegram will display this message to the user.

 

Specify True if delivery to the specified address is possible and False if there are any problems (for example, if delivery to the specified address is not possible).

$ok : boolean

Default

 

Optional. Required if ok is True. A JSON-serialized array of available shipping options.

$shippingOptions : array<mixed,\TgBotApi\BotApiBase\Type\ShippingOption> | null

Default

 

Unique identifier for the query to be answered.

$shippingQueryId : string

Default