mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-01-21 00:17:06 +01:00
Update content of files
This commit is contained in:
parent
36bea54e01
commit
28b37a3129
1 changed files with 14 additions and 4 deletions
|
@ -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/<username></code></pre>
|
||||
<pre><code>t.me/<username>&text=<draft_text></code></pre>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://resolve?domain=<username></code></pre>
|
||||
<pre><code>tg://resolve?domain=<username>&text=<draft_text></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/+<phone_number></code></pre>
|
||||
<pre><code>t.me/+<phone_number>&text=<draft_text></code></pre>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://resolve?phone=<phone_number></code></pre>
|
||||
<pre><code>tg://resolve?phone=<phone_number>&text=<draft_text></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><phone_number></code> won't be a valid phone number. </p>
|
||||
|
|
Loading…
Reference in a new issue