diff --git a/data/web/corefork.telegram.org/api/colors.html b/data/web/corefork.telegram.org/api/colors.html index 4fef3530ef..f96c273b9e 100644 --- a/data/web/corefork.telegram.org/api/colors.html +++ b/data/web/corefork.telegram.org/api/colors.html @@ -84,7 +84,8 @@ Use channels.updateColor to update th
Note that channels/supergroups can use a message accent palette or profile palette only after reaching at least the boost level specified in the channel_min_level
/group_min_level
field of the help.peerColorOption constructor for the chosen palette.
Additionally, to change profile palettes, channels/supergroups must also reach at least the boost level specified in the channel_profile_bg_icon_level_min
»/group_profile_bg_icon_level_min
» config parameters.
The chosen message accent palette will be visible to other users in the channel.color
and user.color
fields; changing it will emit an updateChannel/updateUser update.
The chosen profile palettes will be visible in the user.profile_color
and channel.profile_color
fields; changing it will emit an updateUser update/updateChannel update.
The chosen profile palettes will be visible in the user.profile_color
and channel.profile_color
fields; changing it will emit an updateUser update/updateChannel update.
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.
diff --git a/data/web/corefork.telegram.org/api/folders.html b/data/web/corefork.telegram.org/api/folders.html index 09a05ae17f..796464989c 100644 --- a/data/web/corefork.telegram.org/api/folders.html +++ b/data/web/corefork.telegram.org/api/folders.html @@ -57,6 +57,8 @@ updateDialogFilterOrder#a5d72105 order:Vector<int> = Update; updateDialogFilters#3504914f = Update; +messages.dialogFilters#2ad93719 flags:# tags_enabled:flags.0?true filters:Vector<DialogFilter> = messages.DialogFilters; + ---functions--- messages.getDialogFilters#efd48c89 = messages.DialogFilters; @@ -84,6 +86,24 @@ Folders can also have up todialogs_folder_pinned_limit_*
pinned ch
To delete folders, use messages.updateDialogFilter without populating the filter
flag field.
Clients can receive updateDialogFilter, updateDialogFilterOrder updates with new filter information, generated by other clients when modifying folder info.
Clients can also receive updateDialogFilters, in which case folder info should be refetched manually using messages.getDialogFilters.
dialogFilter#5fb5523b flags:# contacts:flags.0?true non_contacts:flags.1?true groups:flags.2?true broadcasts:flags.3?true bots:flags.4?true exclude_muted:flags.11?true exclude_read:flags.12?true exclude_archived:flags.13?true id:int title:string emoticon:flags.25?string color:flags.27?int pinned_peers:Vector<InputPeer> include_peers:Vector<InputPeer> exclude_peers:Vector<InputPeer> = DialogFilter;
+dialogFilterChatlist#9fe28ea4 flags:# has_my_invites:flags.26?true id:int title:string emoticon:flags.25?string color:flags.27?int pinned_peers:Vector<InputPeer> include_peers:Vector<InputPeer> = DialogFilter;
+
+updateDialogFilters#3504914f = Update;
+
+messages.dialogFilters#2ad93719 flags:# tags_enabled:flags.0?true filters:Vector<DialogFilter> = messages.DialogFilters;
+
+---functions---
+
+messages.toggleDialogFilterTags#fd2dda49 enabled:Bool = Bool;
+messages.getDialogFilters#efd48c89 = messages.DialogFilters;
+Folder tags may be enabled or disabled for all folders using the messages.toggleDialogFilterTags method.
+If the new value of the toggle is different, the method will emit an updateDialogFilters to all other currently-logged in sessions, which should trigger a call to messages.toggleDialogFilterTags to load the new value of the toggle, in messages.dialogFilters.tags_enabled
.
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 dialogFilterDefault and tags with color=-1
) to all dialog entries, under the preview of the latest message.
These folder tags should contain the name of the folder, and should be colored with the color
specified in the dialog folder entry.
+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 message accent colors).
The tag color
may only be changed if the user has a Premium subscription and tags are enabled.
inputChatlistDialogFilter#f3e0da33 filter_id:int = InputChatlist;
diff --git a/data/web/corefork.telegram.org/constructor/dialogFilter.html b/data/web/corefork.telegram.org/constructor/dialogFilter.html
index 5b9d248df0..77b6d51b2e 100644
--- a/data/web/corefork.telegram.org/constructor/dialogFilter.html
+++ b/data/web/corefork.telegram.org/constructor/dialogFilter.html
@@ -129,7 +129,7 @@
color
flags.27?int
-
+A color ID for the folder tag associated to this folder, see here » for more info.
pinned_peers
diff --git a/data/web/corefork.telegram.org/constructor/help.peerColorOption.html b/data/web/corefork.telegram.org/constructor/help.peerColorOption.html
index ac0fbefdae..7a099caecb 100644
--- a/data/web/corefork.telegram.org/constructor/help.peerColorOption.html
+++ b/data/web/corefork.telegram.org/constructor/help.peerColorOption.html
@@ -84,7 +84,7 @@
colors
flags.1?help.PeerColorSet
-Light mode palette.
Will be empty for IDs 0
to 6
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.
+Light mode palette.
Will be empty for IDs 0
to 6
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 message accent colors).
dark_colors
diff --git a/data/web/corefork.telegram.org/constructor/messages.dialogFilters.html b/data/web/corefork.telegram.org/constructor/messages.dialogFilters.html
index a209e62857..3682df09f6 100644
--- a/data/web/corefork.telegram.org/constructor/messages.dialogFilters.html
+++ b/data/web/corefork.telegram.org/constructor/messages.dialogFilters.html
@@ -42,7 +42,7 @@
messages.dialogFilters
- Folder information
+ Folder and folder tags information
-
@@ -74,7 +74,7 @@
tags_enabled
flags.0?true
-
+Whether folder tags are enabled.
filters
diff --git a/data/web/corefork.telegram.org/method/messages.toggleDialogFilterTags.html b/data/web/corefork.telegram.org/method/messages.toggleDialogFilterTags.html
index 55a75214ed..946369b836 100644
--- a/data/web/corefork.telegram.org/method/messages.toggleDialogFilterTags.html
+++ b/data/web/corefork.telegram.org/method/messages.toggleDialogFilterTags.html
@@ -4,24 +4,26 @@
messages.toggleDialogFilterTags
-
-
@@ -58,7 +60,8 @@ Bool">
messages.toggleDialogFilterTags
-
+ Enable or disable folder tags ».
+