messages.setBotPrecheckoutResults
Once the user has confirmed their payment and shipping details, the bot receives an updateBotPrecheckoutQuery update.
Once the user has confirmed their payment and shipping details, the bot receives an [updateBotPrecheckoutQuery](https://core.telegram.org/constructor/updateBotPrecheckoutQuery.md) update. Use this method to respond to such pre-checkout queries. **Hinweis**: Telegram muss innerhalb von 10 Sekunden nach dem Senden der Pre-Checkout-Anfrage eine Antwort erhalten.
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
success | true | Nein | Set this flag if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order, otherwise do not set it, and set the `error` field, instead |
query_id | long | Ja | Unique identifier for the query to be answered |
error | string | Nein | Required if the `success` isn't set. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. "Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!"). Telegram will display this message to the user. |
Antworten
Bool
MTProto RPC
- 400 · ERROR_TEXT_EMPTY – Die bereitgestellte Fehlermeldung ist leer.
- 400 · USER_BOT_REQUIRED — Diese Methode kann nur von einem Bot aufgerufen werden.