MadelineProtoDocs/old_docs/API_docs_v82/constructors/updateBotPrecheckoutQuery.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1.6 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];

PWRTelegram json-encoded version:

{"_": "updateBotPrecheckoutQuery", "query_id": long, "user_id": int, "payload": {"_": "bytes", "bytes":"base64 encoded 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}