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