mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-12-28 07:20:31 +01:00
Update content of files
This commit is contained in:
parent
b75b73e9be
commit
3333e8cd42
4 changed files with 140 additions and 14 deletions
|
@ -115,9 +115,9 @@
|
|||
<p>t.me syntax (private links): </p>
|
||||
<pre><code>t.me/c/<channel>/<id>?single&thread=<thread_id>&comment=<message_id>&t=<media_timestamp></code></pre>
|
||||
<p>tg: syntax (public links):</p>
|
||||
<pre><code>tg://resolve?domain=<username>&post=<id>&single&thread=<thread_id>&comment=<message_id>&t=<media_timestamp></code></pre>
|
||||
<pre><code>tg://resolve?domain=<username>&post=<id>&single&thread=<thread>&comment=<comment>&t=<media_timestamp></code></pre>
|
||||
<p>tg: syntax (private links):</p>
|
||||
<pre><code>tg://privatepost?channel=<channelid>&post=<id>&single&thread=<thread_id>&comment=<message_id>&t=<media_timestamp></code></pre>
|
||||
<pre><code>tg://privatepost?channel=<channelid>&post=<id>&single&thread=<thread>&comment=<comment>&t=<media_timestamp></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
|
@ -139,7 +139,7 @@
|
|||
<td>Channel or supergroup ID.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>post</code></td>
|
||||
<td><code>id</code></td>
|
||||
<td style="text-align: center;">Required</td>
|
||||
<td>Message ID.</td>
|
||||
</tr>
|
||||
|
@ -159,17 +159,48 @@
|
|||
<td>For <a href="/api/discussion">channel comments</a>, <code>username</code> will contain the channel username, <code>id</code> will contain the message ID of the channel message that started the comment section and this field will contain the message ID of the comment in the discussion group.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>t</code></td>
|
||||
<td><code>media_timestamp</code></td>
|
||||
<td style="text-align: center;">Optional</td>
|
||||
<td>Timestamp in seconds at which to start playing the media file present in the body or in the webpage preview of the message.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#active-sessions-link" id="active-sessions-link" name="active-sessions-link"><i class="anchor-icon"></i></a>Active sessions link</h3>
|
||||
<h3><a class="anchor" href="#settings-links" id="settings-links" name="settings-links"><i class="anchor-icon"></i></a>Settings links</h3>
|
||||
<h4><a class="anchor" href="#settings-link" id="settings-link" name="settings-link"><i class="anchor-icon"></i></a>Settings link</h4>
|
||||
<p>Used to bring the user to the app settings. </p>
|
||||
<p>tg: syntax:</p>
|
||||
<pre><code>tg://settings</code></pre>
|
||||
<p>No parameters.</p>
|
||||
<h4><a class="anchor" href="#change-phone-number-link" id="change-phone-number-link" name="change-phone-number-link"><i class="anchor-icon"></i></a>Change phone number link</h4>
|
||||
<p>Used to bring the user to the phone number modification page, invoking <a href="/method/account.sendChangePhoneCode">account.sendChangePhoneCode</a> and <a href="/method/account.changePhone">account.changePhone</a>.</p>
|
||||
<p>tg: syntax:</p>
|
||||
<pre><code>tg://settings/change_number</code></pre>
|
||||
<p>No parameters.</p>
|
||||
<h4><a class="anchor" href="#active-sessions-link" id="active-sessions-link" name="active-sessions-link"><i class="anchor-icon"></i></a>Active sessions link</h4>
|
||||
<p>Used to bring the user to the active sessions page, calling <a href="/method/account.getAuthorizations">account.getAuthorizations</a>. </p>
|
||||
<p>tg: syntax:</p>
|
||||
<pre><code>tg://settings/devices</code></pre>
|
||||
<p>No parameters.</p>
|
||||
<h4><a class="anchor" href="#folder-settings-link" id="folder-settings-link" name="folder-settings-link"><i class="anchor-icon"></i></a>Folder settings link</h4>
|
||||
<p>Used to bring the user to the <a href="/api/folders">folder settings</a>. </p>
|
||||
<p>tg: syntax:</p>
|
||||
<pre><code>tg://settings/folders</code></pre>
|
||||
<p>No parameters.</p>
|
||||
<h4><a class="anchor" href="#language-settings-link" id="language-settings-link" name="language-settings-link"><i class="anchor-icon"></i></a>Language settings link</h4>
|
||||
<p>Used to bring the user to the language settings. </p>
|
||||
<p>tg: syntax:</p>
|
||||
<pre><code>tg://settings/language</code></pre>
|
||||
<p>No parameters.</p>
|
||||
<h4><a class="anchor" href="#privacy-and-security-settings-link" id="privacy-and-security-settings-link" name="privacy-and-security-settings-link"><i class="anchor-icon"></i></a>Privacy and security settings link</h4>
|
||||
<p>Used to bring the user to the privacy and security settings. </p>
|
||||
<p>tg: syntax:</p>
|
||||
<pre><code>tg://settings/privacy</code></pre>
|
||||
<p>No parameters.</p>
|
||||
<h4><a class="anchor" href="#theme-settings-link" id="theme-settings-link" name="theme-settings-link"><i class="anchor-icon"></i></a>Theme settings link</h4>
|
||||
<p>Used to bring the user to the theme settings section of the app. </p>
|
||||
<p>tg: syntax:</p>
|
||||
<pre><code>tg://settings/theme</code></pre>
|
||||
<p>No parameters.</p>
|
||||
<h3><a class="anchor" href="#login-code-link" id="login-code-link" name="login-code-link"><i class="anchor-icon"></i></a>Login code link</h3>
|
||||
<p>Contains the phone number verification code to use during <a href="/api/auth">user authorization »</a>. </p>
|
||||
<p>t.me syntax:</p>
|
||||
|
@ -187,7 +218,7 @@
|
|||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><code>username</code></td>
|
||||
<td><code>code</code></td>
|
||||
<td style="text-align: center;">Required</td>
|
||||
<td>Login code.</td>
|
||||
</tr>
|
||||
|
@ -219,7 +250,7 @@
|
|||
<tr>
|
||||
<td><code>mode</code></td>
|
||||
<td style="text-align: center;">Optional</td>
|
||||
<td><code>blur</code>, <code>motion</code> or <code>blur+motion</code> to enable blurring or parallax motion as specified in the <a href="/api/wallpapers#image-wallpapers">docs »</a>.</td>
|
||||
<td>A combination of <code>blur</code> and <code>motion</code> (joined by <code>+</code>) to enable blurring and/or parallax motion as specified in the <a href="/api/wallpapers#image-wallpapers">docs »</a>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -455,7 +486,98 @@
|
|||
<td><code>motion</code> to enable parallax motion as specified in the <a href="/api/wallpapers#image-wallpapers">docs</a>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#bot-links" id="bot-links" name="bot-links"><i class="anchor-icon"></i></a>Bot links</h3>
|
||||
<p>Used to link to bots.</p>
|
||||
<p>t.me syntax:</p>
|
||||
<pre><code>t.me/<bot_username>?start=<parameter></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<pre><code>tg://resolve?domain=<bot_username>&start=<parameter></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Optional</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><code>bot_username</code></td>
|
||||
<td style="text-align: center;">Required</td>
|
||||
<td>Bot username</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>parameter</code></td>
|
||||
<td style="text-align: center;">Optional</td>
|
||||
<td>Start parameter, up to 64 <a href="https://en.wikipedia.org/wiki/Base64#The_URL_applications">base64url</a> characters: if provided and the <code>bot_username</code> is indeed a bot, the text input bar should be replaced with a <code>Start</code> button (even if the user has already started the bot) that should invoke <a href="/method/messages.startBot">messages.startBot</a> with the appropriate <code>parameter</code> once clicked.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#groupchannel-bot-links" id="groupchannel-bot-links" name="groupchannel-bot-links"><i class="anchor-icon"></i></a>Group/channel bot links</h3>
|
||||
<p>Used to add bots to groups or channels.<br>
|
||||
First of all, check that the <code><bot_username></code> indeed links to a bot.<br>
|
||||
Then, for group links:</p>
|
||||
<ul>
|
||||
<li>If the <code>admin</code> parameter is not provided:<ul>
|
||||
<li>Bring up a dialog selection of groups where the user can add members</li>
|
||||
<li>Add the bot to the group</li>
|
||||
<li>If a <code>parameter</code> is provided, invoke <a href="/method/messages.startBot">messages.startBot</a> with the appropriate <code>parameter</code></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>If the <code>admin</code> parameter is provided:<ul>
|
||||
<li>Bring up a dialog selection of groups where the user can add/edit admins</li>
|
||||
<li>If the bot is already an admin of the group, combine existing admin rights with the admin rights in <code>admin</code></li>
|
||||
<li>Add the bot as admin/modify admin permissions to the new rights</li>
|
||||
<li>If a <code>parameter</code> is provided, invoke <a href="/method/messages.startBot">messages.startBot</a> with the appropriate <code>parameter</code></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<p>For channel links:</p>
|
||||
<ul>
|
||||
<li>Bring up a dialog selection of channels where the user can add/edit admins</li>
|
||||
<li>If the bot is already an admin of the channel, combine existing admin rights with the admin rights in <code>admin</code></li>
|
||||
<li>Add the bot as admin/modify admin permissions to the new rights</li>
|
||||
</ul>
|
||||
<p>t.me syntax (groups):</p>
|
||||
<pre><code>t.me/<bot_username>?startgroup=<parameter>&admin=<permissions>
|
||||
t.me/<bot_username>?startgroup&admin=<permissions></code></pre>
|
||||
<p>t.me syntax (channels):</p>
|
||||
<pre><code>t.me/<bot_username>?startchannel&admin=<permissions></code></pre>
|
||||
<p>tg: syntax (groups):</p>
|
||||
<pre><code>tg://resolve?domain=<bot_username>&startgroup=<parameter>&admin=<permissions>
|
||||
tg://resolve?domain=<bot_username>&startgroup&admin=<permissions></code></pre>
|
||||
<p>tg: syntax (channels):</p>
|
||||
<pre><code>tg://resolve?domain=<bot_username>&startchannel&admin=<permissions></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Optional</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><code>bot_username</code></td>
|
||||
<td style="text-align: center;">Required</td>
|
||||
<td>Bot username</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>parameter</code></td>
|
||||
<td style="text-align: center;">Optional</td>
|
||||
<td>Start parameter, only for group links, up to 64 <a href="https://en.wikipedia.org/wiki/Base64#The_URL_applications">base64url</a> characters: if provided and the <code>bot_username</code> is indeed a bot, <a href="/method/messages.startBot">messages.startBot</a> with the appropriate <code>parameter</code> should be invoked after adding the bot to the group.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>admin</code></td>
|
||||
<td style="text-align: center;">Optional for group links, required for channel links</td>
|
||||
<td>A combination of the following identifiers separated by <code>+</code>, each corresponding to the appropriate flag in the <a href="/constructor/chatAdminRights">chatAdminRights »</a> constructor: <br>- <code>change_info</code> - <a href="/constructor/chatAdminRights">chatAdminRights.change_info</a> <br>- <code>post_messages</code> - <a href="/constructor/chatAdminRights">chatAdminRights.post_messages</a> <br>- <code>edit_messages</code> - <a href="/constructor/chatAdminRights">chatAdminRights.edit_messages</a> <br>- <code>delete_messages</code> - <a href="/constructor/chatAdminRights">chatAdminRights.delete_messages</a> <br>- <code>restrict_members</code> - <a href="/constructor/chatAdminRights">chatAdminRights.ban_users</a> <br>- <code>invite_users</code> - <a href="/constructor/chatAdminRights">chatAdminRights.invite_users</a> <br>- <code>pin_messages</code> - <a href="/constructor/chatAdminRights">chatAdminRights.pin_messages</a> <br>- <code>promote_members</code> - <a href="/constructor/chatAdminRights">chatAdminRights.add_admins</a> <br>- <code>manage_video_chats</code> - <a href="/constructor/chatAdminRights">chatAdminRights.manage_call</a> <br>- <code>anonymous</code> - <a href="/constructor/chatAdminRights">chatAdminRights.anonymous</a> <br>- <code>manage_chat</code> - <a href="/constructor/chatAdminRights">chatAdminRights.other</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h1><a class="anchor" href="#" id="" name=""><i class="anchor-icon"></i></a></h1></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@
|
|||
<tr>
|
||||
<td><strong>other</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.12?<a href="/constructor/true">true</a></td>
|
||||
<td>Set this flag if none of the other flags are set, but you still want the user to be an admin.</td>
|
||||
<td>Set this flag if none of the other flags are set, but you still want the user to be an admin: if this or any of the other flags are set, the admin can get the chat <a href="/api/recent-actions">admin log</a>, get <a href="/api/stats">chat statistics</a>, get <a href="/api/stats">message statistics in channels</a>, get channel members, see anonymous administrators in supergroups and ignore slow mode.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -132,7 +132,11 @@
|
|||
<p><a href="/type/ChatAdminRights">ChatAdminRights</a></p>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#channels-supergroups-gigagroups-and-basic-groups" id="channels-supergroups-gigagroups-and-basic-groups" name="channels-supergroups-gigagroups-and-basic-groups"><i class="anchor-icon"></i></a><a href="/api/channel">Channels, supergroups, gigagroups and basic groups</a></h4>
|
||||
<p>How to handle channels, supergroups, gigagroups, basic groups, and what's the difference between them.</p></div>
|
||||
<p>How to handle channels, supergroups, gigagroups, basic groups, and what's the difference between them.</p>
|
||||
<h4><a class="anchor" href="#admin-log" id="admin-log" name="admin-log"><i class="anchor-icon"></i></a><a href="/api/recent-actions">Admin log</a></h4>
|
||||
<p>Both supergroups and channels offer a so-called <a href="https://telegram.org/blog/admin-revolution">admin log</a>, a log of recent relevant supergroup and channel actions, like the modification of group/channel settings or information on behalf of an admin, user kicks and bans, and more.</p>
|
||||
<h4><a class="anchor" href="#channel-statistics" id="channel-statistics" name="channel-statistics"><i class="anchor-icon"></i></a><a href="/api/stats">Channel statistics</a></h4>
|
||||
<p>Telegram offers detailed channel statistics for channels and supergroups.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
<div class="dev_page_bread_crumbs"><ul class="breadcrumb clearfix"><li><a href="/api" >API</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/methods" >All Methods</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/method/messages.startBot" >messages.startBot</a></li></ul></div>
|
||||
<h1 id="dev_page_title">messages.startBot</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Start a conversation with a bot using a <a href="/bots#deep-linking">deep linking parameter</a></p>
|
||||
<div id="dev_page_content"><p>Start a conversation with a bot using a <a href="/api/links#bot-links">deep linking parameter</a></p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -92,7 +92,7 @@
|
|||
<tr>
|
||||
<td><strong>start_param</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td><a href="/bots#deep-linking">Deep linking parameter</a></td>
|
||||
<td><a href="/api/links#bot-links">Deep linking parameter</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -161,7 +161,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#bots-an-introduction-for-developers" id="bots-an-introduction-for-developers" name="bots-an-introduction-for-developers"><i class="anchor-icon"></i></a><a href="/bots">Bots: An introduction for developers</a></h4></div>
|
||||
<h4><a class="anchor" href="#links" id="links" name="links"><i class="anchor-icon"></i></a><a href="/api/links">Links</a></h4></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -824,7 +824,7 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/method/messages.startBot">messages.startBot</a></td>
|
||||
<td>Start a conversation with a bot using a <a href="/bots#deep-linking">deep linking parameter</a></td>
|
||||
<td>Start a conversation with a bot using a <a href="/api/links#bot-links">deep linking parameter</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/help.getDeepLinkInfo">help.getDeepLinkInfo</a></td>
|
||||
|
|
Loading…
Reference in a new issue