From afaa1449b37776aaa470453f8499e2224d9cb0be Mon Sep 17 00:00:00 2001
From: GitHub Action The webview must be closed after invoking the messages.sendWebViewData method. Make sure to ignore all This will generate a messageActionWebViewDataSent update for the user, and a messageActionWebViewDataSentMe update for the bot, containing the event data. Schema:slug
- Invoice identifier (string)status
- One of the following values (string):
cancelled
– The user closed the invoice popup without paying, before the call to payments.sendPaymentForm.pending
– The payment is still processing: the bot will receive a further service message about a successful or failed payment. payments.sendPaymentForm was successfully invoked, the user completed all additional verification forms returned by the method, the invoice popup was closed but the client hasn't received a messageActionPaymentSent service message yet.failed
– The user tried to pay, but the payment failed: the call to payments.sendPaymentForm returned an RPC error (via an updateServiceNotification) and the popup was closed.failed
– The user tried to pay, but the payment failed: the call to payments.sendPaymentForm returned an RPC error and the popup was closed.pending
– The payment is still processing: the bot will receive a further service message about a successful or failed payment. payments.sendPaymentForm was successfully invoked returning payments.paymentVerificationNeeded, the user completed all additional verification forms returned by the method and the invoice popup was closed, but the client hasn't received a messageActionPaymentSent service message yet.paid
– The invoice was paid successfully: the client completed the payment flow », the invoice popup was closed and a messageActionPaymentSent service message was received by the client.button_text
- Text of the keyboardButtonSimpleWebView that was pressed to open the simple web appdata
- Contents of the data
field of the JS event. web_app_data_send
events sent after the first one, messages.sendWebViewData must be called only once.
+The webview must be closed after invoking the messages.sendWebViewData method. Normal web apps
The bot then replies to the received precheckout query, finally the user proceeds to checkout.
Please note that if the result of the method is a payments.paymentVerificationNeeded, before proceeding to checkout the payment provider requires the user to verify their identity by opening the provided url
and following instructions.
Once the user finishes working with the webpage, the client can proceed to checkout.
Eventual errors are returned in the form of RPC errors, with the description of the error by the bot contained in service updates.
+Eventual errors are returned in the form of RPC errors, with the description of the error by the bot contained in additional service updates.
paymentRequestedInfo#909c3f94 flags:# name:flags.0?string phone:flags.1?string email:flags.2?string shipping_address:flags.3?PostAddress = PaymentRequestedInfo;
diff --git a/data/web/corefork.telegram.org/api/web-events.html b/data/web/corefork.telegram.org/api/web-events.html
index ecabbec074..586d28a4f9 100644
--- a/data/web/corefork.telegram.org/api/web-events.html
+++ b/data/web/corefork.telegram.org/api/web-events.html
@@ -101,7 +101,7 @@ While handling is enabled, maximum 3 consecutive valid events of this type can b
Used to set the web app header and upper overscroll color.
web_app_data_send
Event data: a JSON object with a string data
field.
-Used by simple webapps to send back data to the bot. The Web App will be closed.
+Used by simple webapps to send back data to the bot as specified here ». The Web App will be closed.
web_app_trigger_haptic_feedback
Event data: a JSON object with the following fields: