Update content of files

This commit is contained in:
GitHub Action 2024-07-21 17:30:28 +00:00
parent 28b37a3129
commit 6545b04e78

View file

@ -275,8 +275,7 @@ These links should be handled as follows:</p>
<li>Append and select the <code>text</code>, if present</li>
</ul>
<p><code>t.me</code> syntax:</p>
<pre><code>t.me/share?url=&lt;url&gt;
t.me/share?url=&lt;url&gt;&amp;text=&lt;text&gt;</code></pre>
<pre><code>t.me/share?url=&lt;url&gt;&amp;text=&lt;text&gt;</code></pre>
<p><code>tg:</code> syntax:</p>
<pre><code>tg://msg_url?url=&lt;url&gt;&amp;text=&lt;text&gt;</code></pre>
<p>Parameters:</p>
@ -1206,12 +1205,12 @@ These links are used to confirm ownership of the phone number, to prevent accoun
Clients should first <a href="/api/bots/attach">install the associated bot attachment or side menu entry as specified here »</a>, and if the user accepts the installation prompt, open the Mini App using the following logic. </p>
<p>After installing the attachment/side menu entry globally, opens the associated mini app using <a href="/method/messages.requestSimpleWebView">messages.requestSimpleWebView</a> with the <code>from_side_menu</code> flag set, regardless of the currently open Telegram chat (in fact, the Mini App should opened with that flag even if the client itself is minimized). </p>
<p><code>t.me</code> syntax:</p>
<pre><code>t.me/&lt;bot_username&gt;?startapp
t.me/&lt;bot_username&gt;?startapp=&lt;start_parameter&gt;</code></pre>
<pre><code>t.me/&lt;bot_username&gt;?startapp&amp;mode=&lt;mode&gt;
t.me/&lt;bot_username&gt;?startapp=&lt;start_parameter&gt;&amp;mode=&lt;mode&gt;</code></pre>
<p>Note that <a href="#direct-mini-app-links">Direct Mini App links</a> have a similar syntax, with an additional <code>short_name</code> parameter to identify a specific Mini App owned by the bot. </p>
<p><code>tg:</code> syntax:</p>
<pre><code>tg://resolve?domain=&lt;bot_username&gt;&amp;startapp
tg://resolve?domain=&lt;bot_username&gt;&amp;startapp=&lt;start_parameter&gt;</code></pre>
<pre><code>tg://resolve?domain=&lt;bot_username&gt;&amp;startapp&amp;mode=&lt;mode&gt;
tg://resolve?domain=&lt;bot_username&gt;&amp;startapp=&lt;start_parameter&gt;&amp;mode=&lt;mode&gt;</code></pre>
<p>Parameters:</p>
<table class="table">
<thead>
@ -1232,6 +1231,11 @@ tg://resolve?domain=&lt;bot_username&gt;&amp;startapp=&lt;start_parameter&gt;</c
<td style="text-align: center;">Optional</td>
<td>If provided, should be passed to <a href="/method/messages.requestSimpleWebView">messages.requestSimpleWebView</a>.<code>start_param</code></td>
</tr>
<tr>
<td><code>mode</code></td>
<td style="text-align: center;">Optional</td>
<td>If equal to <code>compact</code>, the app should be opened in compact mode.</td>
</tr>
</tbody>
</table>
<h3><a class="anchor" href="#direct-mini-app-links" id="direct-mini-app-links" name="direct-mini-app-links"><i class="anchor-icon"></i></a>Direct mini app links</h3>
@ -1239,9 +1243,9 @@ tg://resolve?domain=&lt;bot_username&gt;&amp;startapp=&lt;start_parameter&gt;</c
<p>These links are different from <a href="#bot-attachment-or-side-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 mini apps, distinguished by their <code>short_name</code>. </p>
<p>These links should be handled as specified in the <a href="/api/bots/webapps#direct-link-mini-apps">direct link Mini Apps documentation »</a>. </p>
<p><code>t.me</code> syntax:</p>
<pre><code>t.me/&lt;bot_username&gt;/&lt;short_name&gt;?startapp=&lt;start_parameter&gt;</code></pre>
<pre><code>t.me/&lt;bot_username&gt;/&lt;short_name&gt;?startapp=&lt;start_parameter&gt;&amp;mode=&lt;mode&gt;</code></pre>
<p><code>tg:</code> syntax:</p>
<pre><code>tg://resolve?domain=&lt;bot_username&gt;&amp;appname=&lt;short_name&gt;&amp;startapp=&lt;start_parameter&gt;</code></pre>
<pre><code>tg://resolve?domain=&lt;bot_username&gt;&amp;appname=&lt;short_name&gt;&amp;startapp=&lt;start_parameter&gt;&amp;mode=&lt;mode&gt;</code></pre>
<p>Note that <a href="#mini-app-links">Mini App links</a> have a similar syntax, <em>without</em> a <code>short_name</code> parameter. </p>
<p>Parameters: </p>
<table class="table">
@ -1268,6 +1272,11 @@ tg://resolve?domain=&lt;bot_username&gt;&amp;startapp=&lt;start_parameter&gt;</c
<td style="text-align: center;">Optional</td>
<td><code>start_param</code> to pass to <a href="/method/messages.requestAppWebView">messages.requestAppWebView</a></td>
</tr>
<tr>
<td><code>mode</code></td>
<td style="text-align: center;">Optional</td>
<td>If equal to <code>compact</code>, the app should be opened in compact mode.</td>
</tr>
</tbody>
</table>
<h3><a class="anchor" href="#bot-attachment-or-side-menu-links" id="bot-attachment-or-side-menu-links" name="bot-attachment-or-side-menu-links"><i class="anchor-icon"></i></a>Bot attachment or side menu links</h3>