Update content of files

This commit is contained in:
GitHub Action 2024-07-21 17:20:24 +00:00
parent 36bea54e01
commit 28b37a3129

View file

@ -73,9 +73,9 @@
<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>
<pre><code>t.me/&lt;username&gt;</code></pre>
<pre><code>t.me/&lt;username&gt;&amp;text=&lt;draft_text&gt;</code></pre>
<p><code>tg:</code> syntax:</p>
<pre><code>tg://resolve?domain=&lt;username&gt;</code></pre>
<pre><code>tg://resolve?domain=&lt;username&gt;&amp;text=&lt;draft_text&gt;</code></pre>
<p>Parameters:</p>
<table class="table">
<thead>
@ -91,6 +91,11 @@
<td style="text-align: center;">Required</td>
<td>Username to <a href="/api/invites#public-usernames">check or import »</a></td>
</tr>
<tr>
<td><code>draft_text</code></td>
<td style="text-align: center;">Optional</td>
<td>UTF-8 text to pre-enter into the text input bar, if the user can write in the chat. <br>Before insertion: <br>- Validate that the text is valid UTF-8. <br>- If the text starts with a <code>@</code>, prepend a whitespace to it (to avoid triggering an <a href="/api/bots/inline">inline query</a>). <br>- Trim the text to <a href="/constructor/config">message_length_max</a> UTF-8 codepoints.</td>
</tr>
</tbody>
</table>
<p>Note that <a href="#message-links">message links</a> have the same syntax, with extra parameters. </p>
@ -121,9 +126,9 @@ These links can be generated even for profiles that don't have a username, and t
<h3><a class="anchor" href="#phone-number-links" id="phone-number-links" name="phone-number-links"><i class="anchor-icon"></i></a>Phone number links</h3>
<p>Used to link to public and private users by their phone number. </p>
<p><code>t.me</code> syntax:</p>
<pre><code>t.me/+&lt;phone_number&gt;</code></pre>
<pre><code>t.me/+&lt;phone_number&gt;&amp;text=&lt;draft_text&gt;</code></pre>
<p><code>tg:</code> syntax:</p>
<pre><code>tg://resolve?phone=&lt;phone_number&gt;</code></pre>
<pre><code>tg://resolve?phone=&lt;phone_number&gt;&amp;text=&lt;draft_text&gt;</code></pre>
<p>Parameters:</p>
<table class="table">
<thead>
@ -139,6 +144,11 @@ These links can be generated even for profiles that don't have a username, and t
<td style="text-align: center;">Required</td>
<td>Phone number to resolve using <a href="/method/contacts.resolvePhone">contacts.resolvePhone</a></td>
</tr>
<tr>
<td><code>draft_text</code></td>
<td style="text-align: center;">Optional</td>
<td>UTF-8 text to pre-enter into the text input bar, if the user can write in the chat. <br>Before insertion: <br>- Validate that the text is valid UTF-8. <br>- If the text starts with a <code>@</code>, prepend a whitespace to it (to avoid triggering an <a href="/api/bots/inline">inline query</a>). <br>- Trim the text to <a href="/constructor/config">message_length_max</a> UTF-8 codepoints.</td>
</tr>
</tbody>
</table>
<p>Note that <a href="#message-links">chat invite links</a> have the same syntax, but <code>&lt;phone_number&gt;</code> won't be a valid phone number. </p>