Update content of files

This commit is contained in:
GitHub Action 2024-08-05 07:37:53 +00:00
parent 09cf42bed5
commit fa0daf6c7a
3 changed files with 22 additions and 0 deletions

View file

@ -684,6 +684,8 @@ Note that the stickerset can be fetched using <a href="/constructor/inputSticker
<p>Maximum number of <a href="/api/bots/webapps#main-mini-app-previews">main mini app previews »</a> that can be added for a localization. (integer)</p>
<h4><a class="anchor" href="#web-app-allowed-protocols" id="web-app-allowed-protocols" name="web-app-allowed-protocols"><i class="anchor-icon"></i></a><code>web_app_allowed_protocols</code></h4>
<p>Specifies a list of allowed schemes for URLs received in <a href="/api/web-events#web-app-open-link">web_app_open_link events</a>. (array of strings)</p>
<h4><a class="anchor" href="#ton-proxy-address" id="ton-proxy-address" name="ton-proxy-address"><i class="anchor-icon"></i></a><code>ton_proxy_address</code></h4>
<p>Specifies the domain name to be used to securely open <a href="/api/links#ton-sites">TON sites »</a>. (string)</p>
<h3><a class="anchor" href="#suggestions" id="suggestions" name="suggestions"><i class="anchor-icon"></i></a>Suggestions</h3>
<p>The API can return a set of useful suggestions for users of graphical clients. </p>
<h4><a class="anchor" href="#basic-suggestions" id="basic-suggestions" name="basic-suggestions"><i class="anchor-icon"></i></a>Basic suggestions</h4>

View file

@ -83,6 +83,7 @@
<li><a href="/api/bots/webapps#main-mini-apps">Main Mini Apps »</a></li>
<li><a href="/api/bots/webapps#main-mini-app-previews">Main Mini App previews »</a></li>
<li><a href="/api/search#apps-tab">Mini App Store »</a></li>
<li><a href="/api/links#ton-sites">TON sites »</a></li>
<li>Mini App deep links were removed and replaced with <a href="/api/links#main-mini-app-links">Main Mini App deep links »</a>: (i.e. the syntax of Main Mini App links is equal to the one previously used for Mini App links, but the handling logic has changed).</li>
<li>Allow specifying the exact frame to use for video thumbnails/static previews through the new <a href="/constructor/documentAttributeVideo">documentAttributeVideo</a>.<code>video_start_ts</code> parameter (especially useful for stories).<br>
The <code>video_start_ts</code> attribute may also be <a href="/api/stories#editing-stories">edited using a new, special editing flow that does not require reuploading the entire story »</a>. </li>

View file

@ -90,6 +90,25 @@
<li>AND is a valid username</li>
</ul>
<p>...it should be treated exactly as a <code>t.me/&lt;username&gt;/</code> link (generate a <code>t.me/&lt;username&gt;/</code> link and append the rest of the path (if present) and the query string (if present)). </p>
<h3><a class="anchor" href="#ton-sites" id="ton-sites" name="ton-sites"><i class="anchor-icon"></i></a>TON Sites</h3>
<p>Used to open <a href="https://blog.ton.org/ton-sites">TON Sites</a> using the in-app <a href="https://telegram.org/blog/w3-browser-mini-app-store#telegram-browser">Telegram Browser</a>. </p>
<p>Syntax:</p>
<pre><code>tonsite://somesite.domain/path?query#hash</code></pre>
<p>Also available without the <code>tonsite://</code> scheme for <code>.ton</code> domains:</p>
<pre><code>getting-started.ton/path?query#hash</code></pre>
<p>In both cases, the <code>#hash</code> part of the URL should <strong>not</strong> be ignored. </p>
<p>To open such URLs:</p>
<ul>
<li>Replace the <code>tonsite</code> scheme with <code>https</code></li>
<li>Transform the host part of the URL thusly:<ul>
<li>Replace all <code>.</code> characters with <code>-d</code></li>
<li>Replace <code>-</code> characters with <code>-h</code> (except for the <code>-</code>s generated by the first replace)</li>
<li>Append a final <code>.</code></li>
<li>Append the domain name specified in the <a href="/api/config#ton-proxy-address">ton_proxy_address client configuration parameter »</a></li>
</ul>
</li>
</ul>
<p>The resulting URL should only be opened using the in-app <a href="https://telegram.org/blog/w3-browser-mini-app-store#telegram-browser">Telegram Browser</a> (i.e. no option should be given to open such links using third party browsers). </p>
<h3><a class="anchor" href="#public-username-links" id="public-username-links" name="public-username-links"><i class="anchor-icon"></i></a>Public username links</h3>
<p>Used to link to public users, groups and channels, see <a href="/api/invites#public-usernames">here for more info on how to handle them »</a>. </p>
<p><code>t.me</code> syntax:</p>