api.answerShippingQuery()
Sets the result of a shipping query; for bots only
Parameters
AnswerShippingQueryParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
shippingQueryId | string | Identifier of the shipping query |
shippingOptions | Available shipping options | |
errorMessage | string | An error message, empty on success |
Returns
ApiResponse
interface:interface ApiResponse {
_: 'answerShippingQuery' | 'error'
airgram: Airgram
request: {
method: 'answerShippingQuery'
params: AnswerShippingQueryParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}