MadelineProtoDocs/old_docs/API_docs_v75/constructors/updateBotPrecheckoutQuery.md

1.3 KiB

title description image
updateBotPrecheckoutQuery Update bot precheckout query https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: updateBotPrecheckoutQuery

Back to constructors index

Update bot precheckout query

Attributes:

Name Type Required Description
query_id long Yes Query ID
user_id int Yes User ID
payload bytes Yes Payload
info PaymentRequestedInfo Optional Info
shipping_option_id string Optional Shipping option ID
currency string Yes Currency
total_amount long Yes Total amount

Type: Update

Example:

$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:

updateBotPrecheckoutQuery={_='updateBotPrecheckoutQuery', query_id=long, user_id=int, payload='bytes', info=PaymentRequestedInfo, shipping_option_id='string', currency='string', total_amount=long}