mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-01-05 18:38:19 +01:00
Update content of files
This commit is contained in:
parent
27389a3209
commit
6c2467eefa
6 changed files with 35 additions and 11 deletions
|
@ -84,7 +84,8 @@ Use <a href="/method/channels.updateColor">channels.updateColor</a> to update th
|
|||
<p>Note that channels/supergroups can use a message accent palette or profile palette only after reaching at least the <a href="/api/boost">boost level</a> specified in the <code>channel_min_level</code>/<code>group_min_level</code> field of the <a href="/constructor/help.peerColorOption">help.peerColorOption</a> constructor for the chosen palette. </p>
|
||||
<p>Additionally, to change <strong>profile</strong> palettes, channels/supergroups must <strong>also</strong> reach at least the <a href="/api/boost">boost level</a> specified in the <a href="/api/config#channel-profile-bg-icon-level-min"><code>channel_profile_bg_icon_level_min</code> »</a>/<a href="/api/config#group-profile-bg-icon-level-min"><code>group_profile_bg_icon_level_min</code> »</a> config parameters. </p>
|
||||
<p>The chosen message accent palette will be visible to other users in the <a href="/constructor/channel">channel</a>.<code>color</code> and <a href="/constructor/user">user</a>.<code>color</code> fields; changing it will emit an <a href="/constructor/updateChannel">updateChannel</a>/<a href="/constructor/updateUser">updateUser</a> update. </p>
|
||||
<p>The chosen profile palettes will be visible in the <a href="/constructor/user">user</a>.<code>profile_color</code> and <a href="/constructor/channel">channel</a>.<code>profile_color</code> fields; changing it will emit an <a href="/constructor/updateUser">updateUser</a> update/<a href="/constructor/updateChannel">updateChannel</a> update.</p></div>
|
||||
<p>The chosen profile palettes will be visible in the <a href="/constructor/user">user</a>.<code>profile_color</code> and <a href="/constructor/channel">channel</a>.<code>profile_color</code> fields; changing it will emit an <a href="/constructor/updateUser">updateUser</a> update/<a href="/constructor/updateChannel">updateChannel</a> update.</p>
|
||||
<p>If no palette is specified for a peer, a random color from red, orange, violet, green, cyan, blue, pink (eventually tweaked according to the client's theme) must be chosen locally as message accent palette once for every met peer.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -57,6 +57,8 @@
|
|||
<a href='/constructor/updateDialogFilterOrder'>updateDialogFilterOrder</a>#a5d72105 order:<a href='/type/Vector%20t'>Vector</a><<a href='/type/int'>int</a>> = <a href='/type/Update'>Update</a>;
|
||||
<a href='/constructor/updateDialogFilters'>updateDialogFilters</a>#3504914f = <a href='/type/Update'>Update</a>;
|
||||
|
||||
<a href='/constructor/messages.dialogFilters'>messages.dialogFilters</a>#2ad93719 flags:<a href='/type/%23'>#</a> tags_enabled:flags.0?<a href='/constructor/true'>true</a> filters:<a href='/type/Vector%20t'>Vector</a><<a href='/type/DialogFilter'>DialogFilter</a>> = <a href='/type/messages.DialogFilters'>messages.DialogFilters</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
<a href='/method/messages.getDialogFilters'>messages.getDialogFilters</a>#efd48c89 = <a href='/type/messages.DialogFilters'>messages.DialogFilters</a>;
|
||||
|
@ -84,6 +86,24 @@ Folders can also have up to <code>dialogs_folder_pinned_limit_*</code> pinned ch
|
|||
<p>To delete folders, use <a href="/method/messages.updateDialogFilter">messages.updateDialogFilter</a> without populating the <code>filter</code> flag field. </p>
|
||||
<p>Clients can receive <a href="/constructor/updateDialogFilter">updateDialogFilter</a>, <a href="/constructor/updateDialogFilterOrder">updateDialogFilterOrder</a> updates with new filter information, generated by other clients when modifying folder info.<br>
|
||||
Clients can also receive <a href="/constructor/updateDialogFilters">updateDialogFilters</a>, in which case folder info should be refetched manually using <a href="/method/messages.getDialogFilters">messages.getDialogFilters</a>.</p>
|
||||
<h4><a class="anchor" href="#folder-tags" id="folder-tags" name="folder-tags"><i class="anchor-icon"></i></a>Folder tags</h4>
|
||||
<pre><code><a href='/constructor/dialogFilter'>dialogFilter</a>#5fb5523b flags:<a href='/type/%23'>#</a> contacts:flags.0?<a href='/constructor/true'>true</a> non_contacts:flags.1?<a href='/constructor/true'>true</a> groups:flags.2?<a href='/constructor/true'>true</a> broadcasts:flags.3?<a href='/constructor/true'>true</a> bots:flags.4?<a href='/constructor/true'>true</a> exclude_muted:flags.11?<a href='/constructor/true'>true</a> exclude_read:flags.12?<a href='/constructor/true'>true</a> exclude_archived:flags.13?<a href='/constructor/true'>true</a> id:<a href='/type/int'>int</a> title:<a href='/type/string'>string</a> emoticon:flags.25?<a href='/type/string'>string</a> color:flags.27?<a href='/type/int'>int</a> pinned_peers:<a href='/type/Vector%20t'>Vector</a><<a href='/type/InputPeer'>InputPeer</a>> include_peers:<a href='/type/Vector%20t'>Vector</a><<a href='/type/InputPeer'>InputPeer</a>> exclude_peers:<a href='/type/Vector%20t'>Vector</a><<a href='/type/InputPeer'>InputPeer</a>> = <a href='/type/DialogFilter'>DialogFilter</a>;
|
||||
<a href='/constructor/dialogFilterChatlist'>dialogFilterChatlist</a>#9fe28ea4 flags:<a href='/type/%23'>#</a> has_my_invites:flags.26?<a href='/constructor/true'>true</a> id:<a href='/type/int'>int</a> title:<a href='/type/string'>string</a> emoticon:flags.25?<a href='/type/string'>string</a> color:flags.27?<a href='/type/int'>int</a> pinned_peers:<a href='/type/Vector%20t'>Vector</a><<a href='/type/InputPeer'>InputPeer</a>> include_peers:<a href='/type/Vector%20t'>Vector</a><<a href='/type/InputPeer'>InputPeer</a>> = <a href='/type/DialogFilter'>DialogFilter</a>;
|
||||
|
||||
<a href='/constructor/updateDialogFilters'>updateDialogFilters</a>#3504914f = <a href='/type/Update'>Update</a>;
|
||||
|
||||
<a href='/constructor/messages.dialogFilters'>messages.dialogFilters</a>#2ad93719 flags:<a href='/type/%23'>#</a> tags_enabled:flags.0?<a href='/constructor/true'>true</a> filters:<a href='/type/Vector%20t'>Vector</a><<a href='/type/DialogFilter'>DialogFilter</a>> = <a href='/type/messages.DialogFilters'>messages.DialogFilters</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
<a href='/method/messages.toggleDialogFilterTags'>messages.toggleDialogFilterTags</a>#fd2dda49 enabled:<a href='/type/Bool'>Bool</a> = <a href='/type/Bool'>Bool</a>;
|
||||
<a href='/method/messages.getDialogFilters'>messages.getDialogFilters</a>#efd48c89 = <a href='/type/messages.DialogFilters'>messages.DialogFilters</a>;</code></pre>
|
||||
<p>Folder tags may be enabled or disabled for all <a href="#folders">folders</a> using the <a href="/method/messages.toggleDialogFilterTags">messages.toggleDialogFilterTags</a> method. </p>
|
||||
<p>If the new value of the toggle is different, the method will emit an <a href="/constructor/updateDialogFilters">updateDialogFilters</a> to all other currently-logged in sessions, which should trigger a call to <a href="/method/messages.toggleDialogFilterTags">messages.toggleDialogFilterTags</a> to load the new value of the toggle, in <a href="/constructor/messages.dialogFilters">messages.dialogFilters</a>.<code>tags_enabled</code>. </p>
|
||||
<p>If folder tags are enabled, clients should add folder tags (one for each folder the dialog entry is a part of, except for the "All chats" folder represented by <a href="/constructor/dialogFilterDefault">dialogFilterDefault</a> and tags with <code>color=-1</code>) to all dialog entries, under the preview of the latest message. </p>
|
||||
<p>These folder tags should contain the name of the folder, and should be colored with the <code>color</code> specified in the dialog folder entry.<br>
|
||||
The color is an integer ranging from -1 to to 6; if -1, the tag must not be shown in the dialog list; use red, orange, violet, green, cyan, blue, pink for indexes 0 to 6 (i.e. the same colors used for randomized fallback <a href="/api/colors">message accent colors</a>).</p>
|
||||
<p>The tag <code>color</code> may only be changed if the user has a <a href="/api/premium">Premium</a> subscription and tags are enabled. </p>
|
||||
<h4><a class="anchor" href="#shared-folders" id="shared-folders" name="shared-folders"><i class="anchor-icon"></i></a>Shared folders</h4>
|
||||
<pre><code><a href='/constructor/inputChatlistDialogFilter'>inputChatlistDialogFilter</a>#f3e0da33 filter_id:<a href='/type/int'>int</a> = <a href='/type/InputChatlist'>InputChatlist</a>;
|
||||
|
||||
|
|
|
@ -129,7 +129,7 @@
|
|||
<tr>
|
||||
<td><strong>color</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.27?<a href="/type/int">int</a></td>
|
||||
<td> </td>
|
||||
<td>A color ID for the <a href="/api/folders#folder-tags">folder tag associated to this folder, see here »</a> for more info.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>pinned_peers</strong></td>
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
<tr>
|
||||
<td><strong>colors</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.1?<a href="/type/help.PeerColorSet">help.PeerColorSet</a></td>
|
||||
<td>Light mode palette. <br>Will be empty for IDs <code>0</code> to <code>6</code> inclusive, in which case a palette containing a single color from the following colors should be used: red, orange, violet, green, cyan, blue, pink for indexes 0 to 6.</td>
|
||||
<td>Light mode palette. <br>Will be empty for IDs <code>0</code> to <code>6</code> inclusive, in which case a palette containing a single color from the following colors should be used: red, orange, violet, green, cyan, blue, pink for indexes 0 to 6 (i.e. the same colors used for randomized fallback <a href="/api/colors">message accent colors</a>).</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>dark_colors</strong></td>
|
||||
|
|
|
@ -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="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/messages.dialogFilters" >messages.dialogFilters</a></li></ul></div>
|
||||
<h1 id="dev_page_title">messages.dialogFilters</h1>
|
||||
|
||||
<div id="dev_page_content"><p><a href="/api/folders">Folder</a> information</p>
|
||||
<div id="dev_page_content"><p><a href="/api/folders">Folder and folder tags</a> information</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -74,7 +74,7 @@
|
|||
<tr>
|
||||
<td><strong>tags_enabled</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.0?<a href="/constructor/true">true</a></td>
|
||||
<td> </td>
|
||||
<td>Whether <a href="/api/folders#folder-tags">folder tags</a> are enabled.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>filters</strong></td>
|
||||
|
|
|
@ -4,24 +4,26 @@
|
|||
<meta charset="utf-8">
|
||||
<title>messages.toggleDialogFilterTags</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Parameters
|
||||
<meta property="description" content="Enable or disable folder tags ».
|
||||
Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
enabled
|
||||
Bool
|
||||
|
||||
Enable or disable folder tags.
|
||||
Result
|
||||
Bool">
|
||||
<meta property="og:title" content="messages.toggleDialogFilterTags">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Parameters
|
||||
<meta property="og:description" content="Enable or disable folder tags ».
|
||||
Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
enabled
|
||||
Bool
|
||||
|
||||
Enable or disable folder tags.
|
||||
Result
|
||||
Bool">
|
||||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||||
|
@ -58,7 +60,8 @@ Bool">
|
|||
<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.toggleDialogFilterTags" >messages.toggleDialogFilterTags</a></li></ul></div>
|
||||
<h1 id="dev_page_title">messages.toggleDialogFilterTags</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Enable or disable <a href="/api/folders#folder-tags">folder tags »</a>.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 181 <b class="caret"></b></a>
|
||||
|
@ -87,7 +90,7 @@ Bool">
|
|||
<tr>
|
||||
<td><strong>enabled</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/Bool">Bool</a></td>
|
||||
<td> </td>
|
||||
<td>Enable or disable folder tags.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue