MadelineProtoDocs/old_docs/API_docs_v91/constructors/updateBotPrecheckoutQuery.md

45 lines
1.3 KiB
Markdown
Raw Normal View History

2019-03-08 13:49:23 +01:00
---
title: updateBotPrecheckoutQuery
description: Update bot precheckout query
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: updateBotPrecheckoutQuery
[Back to constructors index](index.md)
Update bot precheckout query
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|query\_id|[long](../types/long.md) | Yes|Query ID|
|user\_id|[int](../types/int.md) | Yes|User ID|
|payload|[bytes](../types/bytes.md) | Yes|Payload|
|info|[PaymentRequestedInfo](../types/PaymentRequestedInfo.md) | Optional|Info|
|shipping\_option\_id|[string](../types/string.md) | Optional|Shipping option ID|
|currency|[string](../types/string.md) | Yes|Currency|
|total\_amount|[long](../types/long.md) | Yes|Total amount|
### Type: [Update](../types/Update.md)
### Example:
```php
$updateBotPrecheckoutQuery = ['_' => 'updateBotPrecheckoutQuery', 'query_id' => long, 'user_id' => int, 'payload' => 'bytes', 'info' => PaymentRequestedInfo, 'shipping_option_id' => 'string', 'currency' => 'string', 'total_amount' => long];
```
Or, if you're into Lua:
```lua
updateBotPrecheckoutQuery={_='updateBotPrecheckoutQuery', query_id=long, user_id=int, payload='bytes', info=PaymentRequestedInfo, shipping_option_id='string', currency='string', total_amount=long}
```