CRMchat APIBeta
Telegram APIMessages

messages.setBotPrecheckoutResults

POST
/workspaces/{workspaceId}/telegram-accounts/{accountId}/call/messages.setBotPrecheckoutResults

Once the user has confirmed their payment and shipping details, the bot receives an RawUpdateBotPrecheckoutQuery update. Use this method to respond to such pre-checkout queries. Note: Telegram must receive an answer within 10 seconds after the pre-checkout query was sent.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

workspaceId*string

Workspace ID

accountId*string

Telegram account ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

params*

Once the user has confirmed their payment and shipping details, the bot receives an RawUpdateBotPrecheckoutQuery update. Use this method to respond to such pre-checkout queries. Note: Telegram must receive an answer within 10 seconds after the pre-checkout query was sent.

Response Body

application/json

application/json

curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/messages.setBotPrecheckoutResults" \  -H "Content-Type: application/json" \  -d '{    "params": {      "queryId": "string"    }  }'
{  "result": true}