From afaa1449b37776aaa470453f8499e2224d9cb0be Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 31 Oct 2022 22:22:16 +0000 Subject: [PATCH] Update content of files --- data/web/corefork.telegram.org/api/bots/webapps.html | 7 ++++--- data/web/corefork.telegram.org/api/payments.html | 2 +- data/web/corefork.telegram.org/api/web-events.html | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/data/web/corefork.telegram.org/api/bots/webapps.html b/data/web/corefork.telegram.org/api/bots/webapps.html index cd44024813..8d9f84ed1d 100644 --- a/data/web/corefork.telegram.org/api/bots/webapps.html +++ b/data/web/corefork.telegram.org/api/bots/webapps.html @@ -67,8 +67,8 @@
  • slug - Invoice identifier (string)
  • status - One of the following values (string):
  • @@ -117,7 +117,8 @@
  • button_text - Text of the keyboardButtonSimpleWebView that was pressed to open the simple web app
  • data - Contents of the data field of the JS event.
  • -

    The webview must be closed after invoking the messages.sendWebViewData method.

    +

    Make sure to ignore all 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.

    This will generate a messageActionWebViewDataSent update for the user, and a messageActionWebViewDataSentMe update for the bot, containing the event data.

    Normal web apps

    Schema:

    diff --git a/data/web/corefork.telegram.org/api/payments.html b/data/web/corefork.telegram.org/api/payments.html index 3c4c5b0c28..2e4f675d11 100644 --- a/data/web/corefork.telegram.org/api/payments.html +++ b/data/web/corefork.telegram.org/api/payments.html @@ -279,7 +279,7 @@ This is only possible on accounts with 2FA enabled.

    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.

    4.1 Receiving pre-checkout query

    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: