If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the Bot API will send an Update with a shipping_query field to the bot. Use this method to reply to shipping queries. On success, True is returned.
| Name | Type | Description | Required |
|---|---|---|---|
| ok | bool | array | Pass 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) | yes |
| shipping_query_id | string | null | Unique identifier for the query to be answered | no |
| shipping_options | shippingOption[] | null | stdClass[] | Required if ok is True. A JSON-serialized array of available shipping options. | no |
| error_message | string | null | Required if ok is False. 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. | no |
| token | string | null | You can use this method on another bot with specify this parameter | no |
| forgot | bool | null | You can set to not receive request result, dont set it or pass null for turn it off | no |
| answer | bool | null | You can set to answer to webhook, dont set it or pass null for turn it off | no |
Output : bool | BPT\types\responseError
Static or normal : Static
request::answerShippingQuery(ok: bool, shipping_query_id: string | null, shipping_options: Array | null, error_message: string | null, token: String | null, forgot: Boolean | null, answer: Boolean | null); request::answerShippingQuery(['ok' => bool, 'shipping_query_id' => string | null, 'shipping_options' => Array | null, 'error_message' => string | null, 'token' => String | null, 'forgot' => Boolean | null, 'answer' => Boolean | null]); request::answerShippingQuery(ok: bool);request::answerShippingQuery(['ok' => bool]);