mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-01-06 02:45:30 +01:00
Update content of files
This commit is contained in:
parent
28b37a3129
commit
6545b04e78
1 changed files with 17 additions and 8 deletions
|
@ -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=<url>
|
||||
t.me/share?url=<url>&text=<text></code></pre>
|
||||
<pre><code>t.me/share?url=<url>&text=<text></code></pre>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://msg_url?url=<url>&text=<text></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/<bot_username>?startapp
|
||||
t.me/<bot_username>?startapp=<start_parameter></code></pre>
|
||||
<pre><code>t.me/<bot_username>?startapp&mode=<mode>
|
||||
t.me/<bot_username>?startapp=<start_parameter>&mode=<mode></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=<bot_username>&startapp
|
||||
tg://resolve?domain=<bot_username>&startapp=<start_parameter></code></pre>
|
||||
<pre><code>tg://resolve?domain=<bot_username>&startapp&mode=<mode>
|
||||
tg://resolve?domain=<bot_username>&startapp=<start_parameter>&mode=<mode></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
|
@ -1232,6 +1231,11 @@ tg://resolve?domain=<bot_username>&startapp=<start_parameter></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=<bot_username>&startapp=<start_parameter></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/<bot_username>/<short_name>?startapp=<start_parameter></code></pre>
|
||||
<pre><code>t.me/<bot_username>/<short_name>?startapp=<start_parameter>&mode=<mode></code></pre>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://resolve?domain=<bot_username>&appname=<short_name>&startapp=<start_parameter></code></pre>
|
||||
<pre><code>tg://resolve?domain=<bot_username>&appname=<short_name>&startapp=<start_parameter>&mode=<mode></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=<bot_username>&startapp=<start_parameter></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>
|
||||
|
|
Loading…
Reference in a new issue