Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
NekitCorp committed Sep 18, 2023
2 parents 4fff535 + eba0f8f commit 0ca6d8e
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions data/table-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"2": "The version of the Bot API available in the user's Telegram app."
},
{
"0": "platform <sup><mark>NEW</mark></sup>",
"0": "platform",
"1": "String",
"2": "The name of the platform of the user&#39;s Telegram app."
},
Expand Down Expand Up @@ -115,6 +115,11 @@
"1": "Function",
"2": "A method used to send data to the bot. When this method is called, a service message is sent to the bot containing the data <em>data</em> of the length up to 4096 bytes, and the Web App is closed. See the field <em>web_app_data</em> in the class <a href=\"https://core.telegram.org/bots/api#message\">Message</a>.<br><br><em>This method is only available for Web Apps launched via a <a href=\"https://core.telegram.org/bots/webapps#keyboard-button-web-apps\">Keyboard button</a>.</em>"
},
{
"0": "switchInlineQuery(query[, choose_chat_types]) <sup><mark>NEW</mark></sup>",
"1": "Function",
"2": "<mark>Bot API 6.7+</mark> A method that inserts the bot&#39;s username and the specified inline <em>query</em> in the current chat&#39;s input field. Query may be empty, in which case only the bot&#39;s username will be inserted. If an optional <em>choose_chat_types</em> parameter was passed, the client prompts the user to choose a specific chat, then opens that chat and inserts the bot&#39;s username and the specified inline query in the input field. You can specify which types of chats the user will be able to choose from. It can be one or more of the following types: <em>users</em>, <em>bots</em>, <em>groups</em>, <em>channels</em>."
},
{
"0": "openLink(url[, options])",
"1": "Function",
Expand Down Expand Up @@ -146,17 +151,17 @@
"2": "<mark>Bot API 6.2+</mark> A method that shows <em>message</em> in a simple confirmation window with &#39;OK&#39; and &#39;Cancel&#39; buttons. If an optional <em>callback</em> parameter was passed, the <em>callback</em> function will be called when the popup is closed and the first argument will be a boolean indicating whether the user pressed the &#39;OK&#39; button."
},
{
"0": "showScanQrPopup(params[, callback]) <sup><mark>NEW</mark></sup>",
"0": "showScanQrPopup(params[, callback])",
"1": "Function",
"2": "<mark>Bot API 6.4+</mark> A method that shows a native popup for scanning a QR code described by the <em>params</em> argument of the type <a href=\"https://core.telegram.org/bots/webapps#scanqrpopupparams\">ScanQrPopupParams</a>. The Web App will receive the <a href=\"https://core.telegram.org/bots/webapps#events-available-for-web-apps\">event</a> <em>qrTextReceived</em> every time the scanner catches a code with text data. If an optional <em>callback</em> parameter was passed, the <em>callback</em> function will be called and the text from the QR code will be passed as the first argument. Returning <em>true</em> inside this callback function causes the popup to be closed."
},
{
"0": "closeScanQrPopup() <sup><mark>NEW</mark></sup>",
"0": "closeScanQrPopup()",
"1": "Function",
"2": "<mark>Bot API 6.4+</mark> A method that closes the native popup for scanning a QR code opened with the <em>showScanQrPopup</em> method. Run it if you received valid data in the <a href=\"https://core.telegram.org/bots/webapps#events-available-for-web-apps\">event</a> <em>qrTextReceived</em>."
},
{
"0": "readTextFromClipboard([callback]) <sup><mark>NEW</mark></sup>",
"0": "readTextFromClipboard([callback])",
"1": "Function",
"2": "<mark>Bot API 6.4+</mark> A method that requests text from the clipboard. The Web App will receive the <a href=\"https://core.telegram.org/bots/webapps#events-available-for-web-apps\">event</a> <em>clipboardTextReceived</em>. If an optional <em>callback</em> parameter was passed, the <em>callback</em> function will be called and the text from the clipboard will be passed as the first argument.<br><br><em>Note: this method can be called only for Web Apps launched from the attachment menu and only in response to a user interaction with the Web App interface (e.g. a click inside the Web App or on the main button).</em>"
},
Expand Down Expand Up @@ -206,11 +211,11 @@
"1": "<mark>Bot API 6.2+</mark> Occurrs when the opened popup is closed.<br><em>eventHandler</em> receives an object with the single field <em>button_id</em> – the value of the field <em>id</em> of the pressed button. If no buttons were pressed, the field <em>button_id</em> will be <em>null</em>."
},
{
"0": "<code>qrTextReceived</code> <sup><mark>NEW</mark></sup>",
"0": "<code>qrTextReceived</code>",
"1": "<mark>Bot API 6.4+</mark> Occurs when the QR code scanner catches a code with text data.<br><em>eventHandler</em> receives an object with the single field <em>data</em> containing text data from the QR code."
},
{
"0": "<code>clipboardTextReceived</code> <sup><mark>NEW</mark></sup>",
"0": "<code>clipboardTextReceived</code>",
"1": "<mark>Bot API 6.4+</mark> Occurrs when the <code>readTextFromClipboard</code> method is called.<br><em>eventHandler</em> receives an object with the single field <em>data</em> containing text data from the clipboard. If the clipboard contains non-text data, the field <em>data</em> will be an empty string. If the Web App has no access to the clipboard, the field <em>data</em> will be <em>null</em>."
}
]
Expand Down

0 comments on commit 0ca6d8e

Please sign in to comment.