mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-12-29 07:52:37 +01:00
Update content of files
This commit is contained in:
parent
af7774da1d
commit
aff89515e1
15 changed files with 67 additions and 67 deletions
|
@ -153,7 +153,7 @@ The webview must be closed after invoking the <a href="/method/messages.sendWebV
|
|||
<p>To open them, clients should call <a href="/method/messages.requestWebView">messages.requestWebView</a>, and then open a webview using the <code>url</code> contained in the returned <a href="/constructor/webViewResultUrl">webViewResultUrl</a>. </p>
|
||||
<p>After loading the webview, until it is closed by a <a href="/api/web-events#web-app-close">web_app_close event</a>, the user client must invoke <a href="/method/messages.prolongWebView">messages.prolongWebView</a> every 60 seconds: if the method call returns <code>QUERY_ID_INVALID</code>, the webview must be closed. </p>
|
||||
<p>The opened URL's fragment parameters already contain basic information about the user and a <code>query_id</code> parameter, that is exposed by the <a href="/bots/webapps">bot web apps JS library</a>: this <code>query_id</code> can then be used <strong>by the bot</strong> to invoke <a href="/method/messages.sendWebViewResultMessage">messages.sendWebViewResultMessage</a>, passing an <a href="/type/InputBotInlineResult">InputBotInlineResult</a> constructor that will automatically send a message with optionally attached media, and even inline buttons on behalf of the user. </p>
|
||||
<h3><a class="anchor" href="#bot-web-apps" id="bot-web-apps" name="bot-web-apps"><i class="anchor-icon"></i></a>Bot web apps</h3>
|
||||
<h3><a class="anchor" href="#named-bot-web-apps" id="named-bot-web-apps" name="named-bot-web-apps"><i class="anchor-icon"></i></a>Named bot web apps</h3>
|
||||
<p>Schema:</p>
|
||||
<pre><code><a href='/constructor/inputBotAppID'>inputBotAppID</a>#a920bd7a id:<a href='/type/long'>long</a> access_hash:<a href='/type/long'>long</a> = <a href='/type/InputBotApp'>InputBotApp</a>;
|
||||
<a href='/constructor/inputBotAppShortName'>inputBotAppShortName</a>#908c0407 bot_id:<a href='/type/InputUser'>InputUser</a> short_name:<a href='/type/string'>string</a> = <a href='/type/InputBotApp'>InputBotApp</a>;
|
||||
|
@ -172,7 +172,7 @@ The webview must be closed after invoking the <a href="/method/messages.sendWebV
|
|||
<a href='/method/messages.requestAppWebView'>messages.requestAppWebView</a>#8c5a3b3c flags:<a href='/type/%23'>#</a> write_allowed:flags.0?<a href='/constructor/true'>true</a> peer:<a href='/type/InputPeer'>InputPeer</a> app:<a href='/type/InputBotApp'>InputBotApp</a> start_param:flags.1?<a href='/type/string'>string</a> theme_params:flags.2?<a href='/type/DataJSON'>DataJSON</a> platform:<a href='/type/string'>string</a> = <a href='/type/AppWebViewResult'>AppWebViewResult</a>;
|
||||
|
||||
<a href='/method/messages.prolongWebView'>messages.prolongWebView</a>#7ff34309 flags:<a href='/type/%23'>#</a> silent:flags.5?<a href='/constructor/true'>true</a> peer:<a href='/type/InputPeer'>InputPeer</a> bot:<a href='/type/InputUser'>InputUser</a> query_id:<a href='/type/long'>long</a> reply_to_msg_id:flags.0?<a href='/type/int'>int</a> top_msg_id:flags.9?<a href='/type/int'>int</a> send_as:flags.13?<a href='/type/InputPeer'>InputPeer</a> = <a href='/type/Bool'>Bool</a>;</code></pre>
|
||||
<p>Another way to open web apps is by using <a href="/api/links#bot-web-app-links">bot web app links »</a>. </p>
|
||||
<p>Another way to open web apps is by using <a href="/api/links#named-bot-web-app-links">named bot web app links »</a>. </p>
|
||||
<p>These links are different from <a href="/api/links#bot-attachment-menu-links">bot attachment menu deep links »</a>, because they don't require the user to install an attachment menu, and a single bot can offer multiple web apps, distinguished by their <code>short_name</code>. </p>
|
||||
<p>These links should be handled as follows: </p>
|
||||
<ul>
|
||||
|
|
|
@ -55,12 +55,12 @@
|
|||
<h4><a class="anchor" href="#schema" id="schema" name="schema"><i class="anchor-icon"></i></a>Schema</h4>
|
||||
<div><pre><code><a href="/constructor/messagePeerReaction">messagePeerReaction</a>#8c79b63c flags:<a href="/type/%23">#</a> big:flags.0?<a href="/constructor/true">true</a> unread:flags.1?<a href="/constructor/true">true</a> peer_id:<a href="/type/Peer">Peer</a> date:<a href="/type/int">int</a> reaction:<a href="/type/Reaction">Reaction</a> = <a href="/type/MessagePeerReaction">MessagePeerReaction</a>;<br></code></pre></div>
|
||||
<h3><a class="anchor" href="#layer-154" id="layer-154" name="layer-154"><i class="anchor-icon"></i></a><a href="/schema?layer=154">Layer 154</a></h3>
|
||||
<p>Multiple <a href="/api/bots/webapps#bot-web-apps">bot web apps</a>, allow bots to edit their own about text and description,</p>
|
||||
<p>Added support for <a href="/api/bots/webapps#named-bot-web-apps">named bot web apps</a>, which can be opened bot web apps by clicking on an inline result (similar to <code>switch_pm</code> logic), allow bots to edit their own about text and description. Also, the <a href="/api/auth#future-auth-tokens">future auth token</a> is directly returned in the <a href="/constructor/config">config</a> constructor, which was also cleaned up to remove information already contained in the <a href="/api/config#client-configuration">client configuration constructor</a>.</p>
|
||||
<h4><a class="anchor" href="#schema-changes" id="schema-changes" name="schema-changes"><i class="anchor-icon"></i></a>Schema changes</h4>
|
||||
<h5><a class="anchor" href="#new-methods" id="new-methods" name="new-methods"><i class="anchor-icon"></i></a>New Methods</h5>
|
||||
<ul>
|
||||
<li>Added <a href="/method/messages.getBotApp">messages.getBotApp</a> - Obtain information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</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/messages.getBotApp">messages.getBotApp</a> - Obtain information about a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</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#named-bot-web-app-links">named 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.getBotInfo">bots.getBotInfo</a> - Get our about text and description (bots only)</li>
|
||||
</ul>
|
||||
|
@ -72,12 +72,12 @@
|
|||
</ul>
|
||||
<h5><a class="anchor" href="#new-constructors" id="new-constructors" name="new-constructors"><i class="anchor-icon"></i></a>New Constructors</h5>
|
||||
<ul>
|
||||
<li>Added <a href="/constructor/inputBotAppID">inputBotAppID</a> - Used to fetch information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a> by its ID</li>
|
||||
<li>Added <a href="/constructor/inputBotAppShortName">inputBotAppShortName</a> - Used to fetch information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a> by its short name</li>
|
||||
<li>Added <a href="/constructor/inputBotAppID">inputBotAppID</a> - Used to fetch information about a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a> by its ID</li>
|
||||
<li>Added <a href="/constructor/inputBotAppShortName">inputBotAppShortName</a> - Used to fetch information about a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a> by its short name</li>
|
||||
<li>Added <a href="/constructor/botAppNotModified">botAppNotModified</a> - Bot app info hasn't changed.</li>
|
||||
<li>Added <a href="/constructor/botApp">botApp</a> - Contains information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a>.</li>
|
||||
<li>Added <a href="/constructor/messages.botApp">messages.botApp</a> - Contains information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a></li>
|
||||
<li>Added <a href="/constructor/appWebViewResultUrl">appWebViewResultUrl</a> - Contains the link that must be used to open a <a href="/api/bots/webapps#bot-web-apps">bot web app</a>.</li>
|
||||
<li>Added <a href="/constructor/botApp">botApp</a> - Contains information about a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a>.</li>
|
||||
<li>Added <a href="/constructor/messages.botApp">messages.botApp</a> - Contains information about a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a></li>
|
||||
<li>Added <a href="/constructor/appWebViewResultUrl">appWebViewResultUrl</a> - Contains the link that must be used to open a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a>.</li>
|
||||
<li>Added <a href="/constructor/inlineBotWebView">inlineBotWebView</a> - Specifies a <a href="/api/bots/webapps#simple-web-apps">bot web app</a> button, shown on top of the inline query results list.</li>
|
||||
<li>Added <a href="/constructor/readParticipantDate">readParticipantDate</a> - Contains info about when a certain participant has read a message</li>
|
||||
<li>Added <a href="/constructor/updateGroupInvitePrivacyForbidden">updateGroupInvitePrivacyForbidden</a> - 0-N updates of this type may be returned only when invoking <a href="/method/messages.addChatUser">messages.addChatUser</a>, <a href="/method/channels.inviteToChannel">channels.inviteToChannel</a> or <a href="/method/messages.createChat">messages.createChat</a>: it indicates we couldn't add a user to a chat because of their privacy settings; if required, an <a href="/api/invites">invite link</a> can be shared with the user, instead.</li>
|
||||
|
|
|
@ -828,10 +828,10 @@ tg://resolve?domain=<bot_username>&startgroup&admin=<permission
|
|||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#bot-web-app-links" id="bot-web-app-links" name="bot-web-app-links"><i class="anchor-icon"></i></a>Bot web app links</h3>
|
||||
<p>Used to share <a href="/api/bots/webapps">bot web apps</a>. </p>
|
||||
<p>These links are different from <a href="#bot-attachment-menu-links">bot attachment menu deep links</a>, because they don't require the user to install an attachment menu, and a single bot can offer multiple web apps, distinguished by their <code>short_name</code>. </p>
|
||||
<p>These links should be handled as specified in the <a href="/api/bots/webapps#bot-web-apps">bot web app documentation »</a>. </p>
|
||||
<h3><a class="anchor" href="#named-bot-web-app-links" id="named-bot-web-app-links" name="named-bot-web-app-links"><i class="anchor-icon"></i></a>Named bot web app links</h3>
|
||||
<p>Used to share <a href="/api/bots/webapps#named-bot-web-apps">named bot web apps</a>. </p>
|
||||
<p>These links are different from <a href="#bot-attachment-menu-links">bot attachment menu deep links</a>, because they don't require the user to install an attachment menu, and a single bot can offer multiple named web apps, distinguished by their <code>short_name</code>. </p>
|
||||
<p>These links should be handled as specified in the <a href="/api/bots/webapps#named-bot-web-apps">named bot web app documentation »</a>. </p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/<bot_username>/<short_name>?startapp=<start_parameter></code></pre>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>appWebViewResultUrl</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Contains the link that must be used to open a bot web app.">
|
||||
<meta property="description" content="Contains the link that must be used to open a named bot web app.">
|
||||
<meta property="og:title" content="appWebViewResultUrl">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Contains the link that must be used to open a bot web app.">
|
||||
<meta property="og:description" content="Contains the link that must be used to open a named bot web app.">
|
||||
<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="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
|
||||
|
@ -42,7 +42,7 @@
|
|||
<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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/appWebViewResultUrl" >appWebViewResultUrl</a></li></ul></div>
|
||||
<h1 id="dev_page_title">appWebViewResultUrl</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Contains the link that must be used to open a <a href="/api/bots/webapps#bot-web-apps">bot web app</a>.</p>
|
||||
<div id="dev_page_content"><p>Contains the link that must be used to open a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a>.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>botApp</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Contains information about a bot web app.">
|
||||
<meta property="description" content="Contains information about a named bot web app.">
|
||||
<meta property="og:title" content="botApp">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Contains information about a bot web app.">
|
||||
<meta property="og:description" content="Contains information about a named bot web app.">
|
||||
<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="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
|
||||
|
@ -42,7 +42,7 @@
|
|||
<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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/botApp" >botApp</a></li></ul></div>
|
||||
<h1 id="dev_page_title">botApp</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Contains information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a>.</p>
|
||||
<div id="dev_page_content"><p>Contains information about a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a>.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -84,7 +84,7 @@
|
|||
<tr>
|
||||
<td><strong>short_name</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td>Bot web app short name, used to generate <a href="/api/links#bot-web-app-links">bot web app deep links</a>.</td>
|
||||
<td>Bot web app short name, used to generate <a href="/api/links#named-bot-web-app-links">named bot web app deep links</a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>title</strong></td>
|
||||
|
@ -119,7 +119,7 @@
|
|||
<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>
|
||||
<p>Obtain information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a></p>
|
||||
<p>Obtain information about a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a></p>
|
||||
<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></div>
|
||||
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>inputBotAppID</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Used to fetch information about a bot web app by its ID">
|
||||
<meta property="description" content="Used to fetch information about a named bot web app by its ID">
|
||||
<meta property="og:title" content="inputBotAppID">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Used to fetch information about a bot web app by its ID">
|
||||
<meta property="og:description" content="Used to fetch information about a named bot web app by its ID">
|
||||
<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="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
|
||||
|
@ -42,7 +42,7 @@
|
|||
<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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/inputBotAppID" >inputBotAppID</a></li></ul></div>
|
||||
<h1 id="dev_page_title">inputBotAppID</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Used to fetch information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a> by its ID</p>
|
||||
<div id="dev_page_content"><p>Used to fetch information about a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a> by its ID</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -69,7 +69,7 @@
|
|||
<tr>
|
||||
<td><strong>id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td><a href="/api/bots/webapps#bot-web-apps">Bot web app</a> ID.</td>
|
||||
<td><a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a> ID.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>access_hash</strong></td>
|
||||
|
@ -84,7 +84,7 @@
|
|||
<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="#botapp" id="botapp" name="botapp"><i class="anchor-icon"></i></a><a href="/constructor/botApp">botApp</a></h4>
|
||||
<p>Contains information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a>.</p></div>
|
||||
<p>Contains information about a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a>.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>inputBotAppShortName</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Used to fetch information about a bot web app by its short name">
|
||||
<meta property="description" content="Used to fetch information about a named bot web app by its short name">
|
||||
<meta property="og:title" content="inputBotAppShortName">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Used to fetch information about a bot web app by its short name">
|
||||
<meta property="og:description" content="Used to fetch information about a named bot web app by its short name">
|
||||
<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="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
|
||||
|
@ -42,7 +42,7 @@
|
|||
<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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/inputBotAppShortName" >inputBotAppShortName</a></li></ul></div>
|
||||
<h1 id="dev_page_title">inputBotAppShortName</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Used to fetch information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a> by its short name</p>
|
||||
<div id="dev_page_content"><p>Used to fetch information about a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a> by its short name</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -74,7 +74,7 @@
|
|||
<tr>
|
||||
<td><strong>short_name</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td>Short name, obtained from a <a href="/api/links#bot-web-app-links">bot web app deep link</a></td>
|
||||
<td>Short name, obtained from a <a href="/api/links#named-bot-web-app-links">named bot web app deep link</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>messages.botApp</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Contains information about a bot web app">
|
||||
<meta property="description" content="Contains information about a named bot web app">
|
||||
<meta property="og:title" content="messages.botApp">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Contains information about a bot web app">
|
||||
<meta property="og:description" content="Contains information about a named bot web app">
|
||||
<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="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
|
||||
|
@ -42,7 +42,7 @@
|
|||
<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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/messages.botApp" >messages.botApp</a></li></ul></div>
|
||||
<h1 id="dev_page_title">messages.botApp</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Contains information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a></p>
|
||||
<div id="dev_page_content"><p>Contains information about a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a></p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -92,7 +92,7 @@
|
|||
<p><a href="/type/messages.BotApp">messages.BotApp</a></p>
|
||||
<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="#messagesrequestappwebview" id="messagesrequestappwebview" name="messagesrequestappwebview"><i class="anchor-icon"></i></a><a href="/method/messages.requestAppWebView">messages.requestAppWebView</a></h4>
|
||||
<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>Open a <a href="/bots/webapps">bot web app</a> from a <a href="/api/links#named-bot-web-app-links">named 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>
|
||||
<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></div>
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>messages.getBotApp</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Obtain information about a bot web app">
|
||||
<meta property="description" content="Obtain information about a named bot web app">
|
||||
<meta property="og:title" content="messages.getBotApp">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Obtain information about a bot web app">
|
||||
<meta property="og:description" content="Obtain information about a named bot web app">
|
||||
<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="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
|
||||
|
@ -42,7 +42,7 @@
|
|||
<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.getBotApp" >messages.getBotApp</a></li></ul></div>
|
||||
<h1 id="dev_page_title">messages.getBotApp</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Obtain information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a></p>
|
||||
<div id="dev_page_content"><p>Obtain information about a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a></p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -71,7 +71,7 @@
|
|||
<tr>
|
||||
<td><strong>app</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/InputBotApp">InputBotApp</a></td>
|
||||
<td>Bot app information obtained from a <a href="/api/links#bot-web-app-links">bot web app deep link »</a>.</td>
|
||||
<td>Bot app information obtained from a <a href="/api/links#named-bot-web-app-links">named bot web app deep link »</a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>hash</strong></td>
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>messages.requestAppWebView</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Open a bot web app from a bot web app deep link, sending over user information after user confirmation.">
|
||||
<meta property="description" content="Open a bot web app from a named bot web app deep link, sending over user information after user confirmation.">
|
||||
<meta property="og:title" content="messages.requestAppWebView">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Open a bot web app from a bot web app deep link, sending over user information after user confirmation.">
|
||||
<meta property="og:description" content="Open a bot web app from a named bot web app deep link, sending over user information after user confirmation.">
|
||||
<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="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
|
||||
|
@ -42,7 +42,7 @@
|
|||
<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>
|
||||
|
||||
<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>
|
||||
<div id="dev_page_content"><p>Open a <a href="/bots/webapps">bot web app</a> from a <a href="/api/links#named-bot-web-app-links">named 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">
|
||||
|
@ -77,7 +77,7 @@
|
|||
<tr>
|
||||
<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>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>
|
||||
<td>Set this flag if the bot is asking permission to send messages to the user as specified in the <a href="/api/links#named-bot-web-app-links">named bot web app deep link</a> docs, and the user agreed.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>peer</strong></td>
|
||||
|
@ -87,12 +87,12 @@
|
|||
<tr>
|
||||
<td><strong>app</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/InputBotApp">InputBotApp</a></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>
|
||||
<td>The app obtained by invoking <a href="/method/messages.getBotApp">messages.getBotApp</a> as specified in the <a href="/api/links#named-bot-web-app-links">named bot web app deep link</a> docs.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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>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>
|
||||
<td>If the <code>startapp</code> query string parameter is present in the <a href="/api/links#named-bot-web-app-links">named bot web app deep link</a>, pass it to <code>start_param</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>theme_params</strong></td>
|
||||
|
@ -113,7 +113,7 @@
|
|||
<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>
|
||||
<p>Obtain information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a></p>
|
||||
<p>Obtain information about a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a></p>
|
||||
<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>
|
||||
|
|
|
@ -1516,11 +1516,11 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/messages.requestAppWebView">messages.requestAppWebView</a></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>
|
||||
<td>Open a <a href="/bots/webapps">bot web app</a> from a <a href="/api/links#named-bot-web-app-links">named 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>
|
||||
<td><a href="/method/messages.getBotApp">messages.getBotApp</a></td>
|
||||
<td>Obtain information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a></td>
|
||||
<td>Obtain information about a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>AppWebViewResult</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Contains the link that must be used to open a bot web app.">
|
||||
<meta property="description" content="Contains the link that must be used to open a named bot web app.">
|
||||
<meta property="og:title" content="AppWebViewResult">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Contains the link that must be used to open a bot web app.">
|
||||
<meta property="og:description" content="Contains the link that must be used to open a named bot web app.">
|
||||
<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="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
|
||||
|
@ -42,7 +42,7 @@
|
|||
<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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/type/AppWebViewResult" >AppWebViewResult</a></li></ul></div>
|
||||
<h1 id="dev_page_title">AppWebViewResult</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Contains the link that must be used to open a <a href="/api/bots/webapps#bot-web-apps">bot web app</a>.</p>
|
||||
<div id="dev_page_content"><p>Contains the link that must be used to open a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a>.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -71,7 +71,7 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/constructor/appWebViewResultUrl">appWebViewResultUrl</a></td>
|
||||
<td>Contains the link that must be used to open a <a href="/api/bots/webapps#bot-web-apps">bot web app</a>.</td>
|
||||
<td>Contains the link that must be used to open a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -86,7 +86,7 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/method/messages.requestAppWebView">messages.requestAppWebView</a></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>
|
||||
<td>Open a <a href="/bots/webapps">bot web app</a> from a <a href="/api/links#named-bot-web-app-links">named 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>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>BotApp</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Contains information about a bot web app.">
|
||||
<meta property="description" content="Contains information about a named bot web app.">
|
||||
<meta property="og:title" content="BotApp">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Contains information about a bot web app.">
|
||||
<meta property="og:description" content="Contains information about a named bot web app.">
|
||||
<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="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
|
||||
|
@ -42,7 +42,7 @@
|
|||
<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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/type/BotApp" >BotApp</a></li></ul></div>
|
||||
<h1 id="dev_page_title">BotApp</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Contains information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a>.</p>
|
||||
<div id="dev_page_content"><p>Contains information about a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a>.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -72,7 +72,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td><a href="/constructor/botApp">botApp</a></td>
|
||||
<td>Contains information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a>.</td>
|
||||
<td>Contains information about a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>InputBotApp</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Used to fetch information about a bot web app">
|
||||
<meta property="description" content="Used to fetch information about a named bot web app">
|
||||
<meta property="og:title" content="InputBotApp">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Used to fetch information about a bot web app">
|
||||
<meta property="og:description" content="Used to fetch information about a named bot web app">
|
||||
<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="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
|
||||
|
@ -42,7 +42,7 @@
|
|||
<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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/type/InputBotApp" >InputBotApp</a></li></ul></div>
|
||||
<h1 id="dev_page_title">InputBotApp</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Used to fetch information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a></p>
|
||||
<div id="dev_page_content"><p>Used to fetch information about a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a></p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -68,11 +68,11 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/constructor/inputBotAppID">inputBotAppID</a></td>
|
||||
<td>Used to fetch information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a> by its ID</td>
|
||||
<td>Used to fetch information about a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a> by its ID</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/constructor/inputBotAppShortName">inputBotAppShortName</a></td>
|
||||
<td>Used to fetch information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a> by its short name</td>
|
||||
<td>Used to fetch information about a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a> by its short name</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>messages.BotApp</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Contains information about a bot web app">
|
||||
<meta property="description" content="Contains information about a named bot web app">
|
||||
<meta property="og:title" content="messages.BotApp">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Contains information about a bot web app">
|
||||
<meta property="og:description" content="Contains information about a named bot web app">
|
||||
<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="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
|
||||
|
@ -42,7 +42,7 @@
|
|||
<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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/type/messages.BotApp" >messages.BotApp</a></li></ul></div>
|
||||
<h1 id="dev_page_title">messages.BotApp</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Contains information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a></p>
|
||||
<div id="dev_page_content"><p>Contains information about a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a></p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -71,7 +71,7 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/constructor/messages.botApp">messages.botApp</a></td>
|
||||
<td>Contains information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a></td>
|
||||
<td>Contains information about a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -86,7 +86,7 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/method/messages.getBotApp">messages.getBotApp</a></td>
|
||||
<td>Obtain information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a></td>
|
||||
<td>Obtain information about a <a href="/api/bots/webapps#named-bot-web-apps">named bot web app</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue