Update content of files

This commit is contained in:
GitHub Action 2023-03-25 13:01:55 +00:00
parent a9783cccbc
commit 76b3dcddcc
5 changed files with 29 additions and 40 deletions

View file

@ -58,7 +58,7 @@
<h5><a class="anchor" href="#new-methods" id="new-methods" name="new-methods"><i class="anchor-icon"></i></a>New Methods</h5> <h5><a class="anchor" href="#new-methods" id="new-methods" name="new-methods"><i class="anchor-icon"></i></a>New Methods</h5>
<ul> <ul>
<li>Added <a href="/method/messages.getBotApp">messages.getBotApp</a> - </li> <li>Added <a href="/method/messages.getBotApp">messages.getBotApp</a> - </li>
<li>Added <a href="/method/messages.requestAppWebView">messages.requestAppWebView</a> - </li> <li>Added <a href="/method/messages.requestAppWebView">messages.requestAppWebView</a> - Open a <a href="/bots/webapps">bot web app</a> from a <a href="/api/links#bot-web-app-links">bot web app deep link</a>, sending over user information after user confirmation.</li>
<li>Added <a href="/method/bots.setBotInfo">bots.setBotInfo</a> - Set our about text and description (bots only)</li> <li>Added <a href="/method/bots.setBotInfo">bots.setBotInfo</a> - Set our about text and description (bots only)</li>
<li>Added <a href="/method/bots.getBotInfo">bots.getBotInfo</a> - Get our about text and description (bots only)</li> <li>Added <a href="/method/bots.getBotInfo">bots.getBotInfo</a> - Get our about text and description (bots only)</li>
</ul> </ul>

View file

@ -827,8 +827,9 @@ tg://resolve?domain=&lt;bot_username&gt;&amp;startgroup&amp;admin=&lt;permission
<p>These links should be handled as follows: </p> <p>These links should be handled as follows: </p>
<ul> <ul>
<li>Check if <code>bot_username</code> is indeed a bot username, if so then</li> <li>Check if <code>bot_username</code> is indeed a bot username, if so then</li>
<li>Invoke <a href="/method/messages.getBotApp">messages.getBotApp</a>, passing an <a href="/constructor/inputBotAppShortName">inputBotAppShortName</a> with the <code>short_name</code> contained in the <code>appname</code> query string parameter</li> <li>Invoke <a href="/method/messages.getBotApp">messages.getBotApp</a>, passing an <a href="/constructor/inputBotAppShortName">inputBotAppShortName</a> with the <code>short_name</code> contained in the <code>appname</code> query string parameter.</li>
<li>If a <a href="/constructor/messages.botApp">messages.botApp</a> constructor is returned, open the web app by invoking <a href="/method/messages.requestAppWebView">messages.requestAppWebView</a>.<ul> <li>If a <a href="/constructor/messages.botApp">messages.botApp</a> constructor is returned, open the web app by invoking <a href="/method/messages.requestAppWebView">messages.requestAppWebView</a>.<ul>
<li>If the client has clicked on the link in a Telegram chat, pass the chat's peer information into <code>peer</code>; otherwise pass the bot's peer information, instead.</li>
<li>If the <a href="/constructor/messages.botApp">messages.botApp</a>.<code>inactive</code> flag is set, ask confirmation from the user before opening the web app.</li> <li>If the <a href="/constructor/messages.botApp">messages.botApp</a>.<code>inactive</code> flag is set, ask confirmation from the user before opening the web app.</li>
<li>If the <code>startapp</code> query string parameter is present, pass it to <code>start_param</code> when invoking <a href="/method/messages.requestAppWebView">messages.requestAppWebView</a>.</li> <li>If the <code>startapp</code> query string parameter is present, pass it to <code>start_param</code> when invoking <a href="/method/messages.requestAppWebView">messages.requestAppWebView</a>.</li>
<li>If the <a href="/constructor/messages.botApp">messages.botApp</a>.<code>request_write_access</code> flag is set, the bot is asking permission to send messages to the user: if the user agrees, set the <code>write_allowed</code> flag when invoking <a href="/method/messages.requestAppWebView">messages.requestAppWebView</a>.</li> <li>If the <a href="/constructor/messages.botApp">messages.botApp</a>.<code>request_write_access</code> flag is set, the bot is asking permission to send messages to the user: if the user agrees, set the <code>write_allowed</code> flag when invoking <a href="/method/messages.requestAppWebView">messages.requestAppWebView</a>.</li>

View file

@ -4,34 +4,10 @@
<meta charset="utf-8"> <meta charset="utf-8">
<title>messages.requestAppWebView</title> <title>messages.requestAppWebView</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="description" content="Parameters <meta property="description" content="Open a bot web app from a bot web app deep link, sending over user information after user confirmation.">
Name
Type
Description
flags
#
Flags, see TL conditional fields
write_allowed
flags.0?true
 
peer
InputPeer
 …">
<meta property="og:title" content="messages.requestAppWebView"> <meta property="og:title" content="messages.requestAppWebView">
<meta property="og:image" content=""> <meta property="og:image" content="">
<meta property="og:description" content="Parameters <meta property="og:description" content="Open a bot web app from a bot web app deep link, sending over user information after user confirmation.">
Name
Type
Description
flags
#
Flags, see TL conditional fields
write_allowed
flags.0?true
 
peer
InputPeer
 …">
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4"> <link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
@ -66,7 +42,9 @@ InputPeer
<div class="dev_page_bread_crumbs"><ul class="breadcrumb clearfix"><li><a href="/api" >API</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/methods" >All Methods</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/method/messages.requestAppWebView" >messages.requestAppWebView</a></li></ul></div> <div class="dev_page_bread_crumbs"><ul class="breadcrumb clearfix"><li><a href="/api" >API</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/methods" >All Methods</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/method/messages.requestAppWebView" >messages.requestAppWebView</a></li></ul></div>
<h1 id="dev_page_title">messages.requestAppWebView</h1> <h1 id="dev_page_title">messages.requestAppWebView</h1>
<div id="dev_page_content"><p><div class="clearfix"> <div id="dev_page_content"><p>Open a <a href="/bots/webapps">bot web app</a> from a <a href="/api/links#bot-web-app-links">bot web app deep link</a>, sending over user information after user confirmation.</p>
<p>After calling this method, until the user closes the webview, <a href="/method/messages.prolongWebView">messages.prolongWebView</a> must be called every 60 seconds.</p>
<p><div class="clearfix">
<ul class="dev_layer_select slightly-pull-right nav nav-pills"> <ul class="dev_layer_select slightly-pull-right nav nav-pills">
<li class="dropdown"> <li class="dropdown">
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 155 <b class="caret"></b></a> <a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 155 <b class="caret"></b></a>
@ -99,38 +77,48 @@ InputPeer
<tr> <tr>
<td><strong>write_allowed</strong></td> <td><strong>write_allowed</strong></td>
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.0?<a href="/constructor/true">true</a></td> <td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.0?<a href="/constructor/true">true</a></td>
<td> </td> <td>Set this flag if the bot is asking permission to send messages to the user as specified in the <a href="/api/links#bot-web-app-links">bot web app deep link</a> docs, and the user agreed.</td>
</tr> </tr>
<tr> <tr>
<td><strong>peer</strong></td> <td><strong>peer</strong></td>
<td style="text-align: center;"><a href="/type/InputPeer">InputPeer</a></td> <td style="text-align: center;"><a href="/type/InputPeer">InputPeer</a></td>
<td> </td> <td>If the client has clicked on the link in a Telegram chat, pass the chat's peer information; otherwise pass the bot's peer information, instead.</td>
</tr> </tr>
<tr> <tr>
<td><strong>app</strong></td> <td><strong>app</strong></td>
<td style="text-align: center;"><a href="/type/InputBotApp">InputBotApp</a></td> <td style="text-align: center;"><a href="/type/InputBotApp">InputBotApp</a></td>
<td> </td> <td>The app obtained by invoking <a href="/method/messages.getBotApp">messages.getBotApp</a> as specified in the <a href="/api/links#bot-web-app-links">bot web app deep link</a> docs.</td>
</tr> </tr>
<tr> <tr>
<td><strong>start_param</strong></td> <td><strong>start_param</strong></td>
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.1?<a href="/type/string">string</a></td> <td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.1?<a href="/type/string">string</a></td>
<td> </td> <td>If the <code>startapp</code> query string parameter is present in the <a href="/api/links#bot-web-app-links">bot web app deep link</a>, pass it to <code>start_param</code>.</td>
</tr> </tr>
<tr> <tr>
<td><strong>theme_params</strong></td> <td><strong>theme_params</strong></td>
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.2?<a href="/type/DataJSON">DataJSON</a></td> <td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.2?<a href="/type/DataJSON">DataJSON</a></td>
<td> </td> <td><a href="/api/bots/webapps#theme-parameters">Theme parameters »</a></td>
</tr> </tr>
<tr> <tr>
<td><strong>platform</strong></td> <td><strong>platform</strong></td>
<td style="text-align: center;"><a href="/type/string">string</a></td> <td style="text-align: center;"><a href="/type/string">string</a></td>
<td> </td> <td>Short name of the application; 0-64 English letters, digits, and underscores</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3> <h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3>
<p><a href="/type/AppWebViewResult">AppWebViewResult</a></p> <p><a href="/type/AppWebViewResult">AppWebViewResult</a></p>
<h3><a class="anchor" href="#bots-can-use-this-method" id="bots-can-use-this-method" name="bots-can-use-this-method"><i class="anchor-icon"></i></a>Bots can use this method</h3></div> <h3><a class="anchor" href="#bots-can-use-this-method" id="bots-can-use-this-method" name="bots-can-use-this-method"><i class="anchor-icon"></i></a>Bots can use this method</h3>
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
<h4><a class="anchor" href="#deep-links" id="deep-links" name="deep-links"><i class="anchor-icon"></i></a><a href="/api/links">Deep links</a></h4>
<p>Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.</p>
<h4><a class="anchor" href="#messagesgetbotapp" id="messagesgetbotapp" name="messagesgetbotapp"><i class="anchor-icon"></i></a><a href="/method/messages.getBotApp">messages.getBotApp</a></h4>
<h4><a class="anchor" href="#bot-web-apps" id="bot-web-apps" name="bot-web-apps"><i class="anchor-icon"></i></a><a href="/api/bots/webapps">Bot web apps</a></h4>
<p>Bots can offer users interactive HTML5 web apps to completely replace any website.</p>
<h4><a class="anchor" href="#web-apps-for-bots" id="web-apps-for-bots" name="web-apps-for-bots"><i class="anchor-icon"></i></a><a href="/bots/webapps">Web Apps for Bots</a></h4>
<h4><a class="anchor" href="#messagesprolongwebview" id="messagesprolongwebview" name="messagesprolongwebview"><i class="anchor-icon"></i></a><a href="/method/messages.prolongWebView">messages.prolongWebView</a></h4>
<p>Indicate to the server (from the user side) that the user is still using a web app.</p>
<p>If the method returns a <code>QUERY_ID_INVALID</code> error, the webview must be closed.</p></div>
</div> </div>

View file

@ -1493,7 +1493,7 @@
</tr> </tr>
<tr> <tr>
<td><a href="/method/messages.requestAppWebView">messages.requestAppWebView</a></td> <td><a href="/method/messages.requestAppWebView">messages.requestAppWebView</a></td>
<td> </td> <td>Open a <a href="/bots/webapps">bot web app</a> from a <a href="/api/links#bot-web-app-links">bot web app deep link</a>, sending over user information after user confirmation.<br><br>After calling this method, until the user closes the webview, <a href="/method/messages.prolongWebView">messages.prolongWebView</a> must be called every 60 seconds.</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View file

@ -13,7 +13,7 @@ Methods
Method Method
Description Description
messages.requestAppWebView messages.requestAppWebView
 "> Open a…">
<meta property="og:title" content="AppWebViewResult"> <meta property="og:title" content="AppWebViewResult">
<meta property="og:image" content=""> <meta property="og:image" content="">
<meta property="og:description" content="Constructors <meta property="og:description" content="Constructors
@ -25,7 +25,7 @@ Methods
Method Method
Description Description
messages.requestAppWebView messages.requestAppWebView
 "> Open a…">
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4"> <link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
@ -103,7 +103,7 @@ messages.requestAppWebView
<tbody> <tbody>
<tr> <tr>
<td><a href="/method/messages.requestAppWebView">messages.requestAppWebView</a></td> <td><a href="/method/messages.requestAppWebView">messages.requestAppWebView</a></td>
<td> </td> <td>Open a <a href="/bots/webapps">bot web app</a> from a <a href="/api/links#bot-web-app-links">bot web app deep link</a>, sending over user information after user confirmation.<br><br>After calling this method, until the user closes the webview, <a href="/method/messages.prolongWebView">messages.prolongWebView</a> must be called every 60 seconds.</td>
</tr> </tr>
</tbody> </tbody>
</table></div> </table></div>