answerPreCheckoutQuery

Answer a pre-checkout query. Bot-only.

Parameters

preCheckoutQueryId: string

The identifier of the pre-checkout query.

ok: boolean

Whether the checkout is going to be processed.

error?: string

Result

void

Syntax

// Required parameters only.
await client.answerPreCheckoutQuery(preCheckoutQueryId, ok);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.answerPreCheckoutQuery(preCheckoutQueryId, ok, { error });