Airgram

Guides
/
/
Methods

api.answerShippingQuery()

Sets the result of a shipping query; for bots only

Parameters AnswerShippingQueryParams:

NameTypeDescription
shippingQueryIdstring Identifier of the shipping query
shippingOptions Available shipping options
errorMessagestring 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>
}