From 0a71517e1977208a269390b8b50d58a7196e391d Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 26 Apr 2023 14:09:14 +0000 Subject: [PATCH] Update content of files --- .../corefork.telegram.org/api/folders.html | 7 ++--- .../corefork.telegram.org/api/wallpapers.html | 16 +++++++--- .../method/account.uploadWallPaper | 3 +- .../method/messages.setChatWallPaper | 31 +++++++------------ 4 files changed, 29 insertions(+), 28 deletions(-) diff --git a/data/web/corefork.telegram.org/api/folders.html b/data/web/corefork.telegram.org/api/folders.html index 3e890a5cbd..5273a35859 100644 --- a/data/web/corefork.telegram.org/api/folders.html +++ b/data/web/corefork.telegram.org/api/folders.html @@ -46,7 +46,6 @@

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

Folders

-

In the API, folders are called "dialog filters"; in the UI, they are typically represented as tabs.

Schema:

dialogFilter#7438f7e8 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 pinned_peers:Vector<InputPeer> include_peers:Vector<InputPeer> exclude_peers:Vector<InputPeer> = DialogFilter;
 dialogFilterDefault#363293ae = DialogFilter;
@@ -65,6 +64,8 @@
 messages.updateDialogFiltersOrder#c563c1e4 order:Vector<int> = Bool;
 
 help.getAppConfig#61e3f854 hash:int = help.AppConfig;
+

In the API, folders are called "dialog filters".
+In the UI, folders are typically represented as tabs.

On startup, clients call:

+

Wallpapers can also be installed in a specific chat, by using messages.setChatWallPaper: this will emit a messageActionSetChatWallPaper service message, displaying the wallpaper in the UI along with an invitation for the other user to apply the same wallpaper.

+

If the other user decides to apply the same wallpaper to the chat, messages.setChatWallPaper should be invoked passing the wallpaper and wallpaper settings received in the messageActionSetChatWallPaper service message, along with the id of the messageActionSetChatWallPaper service message: this way, the action will emit a different messageActionSetSameChatWallPaper, which should be displayed in the UI as a simple acknowledgment service message, without the full wallpaper and without an invitation for the other user to apply it (since both participants just did that already).

+

Note that unlike installWallpaper or saveWallpaper, messages.setChatWallPaper accepts fill wallpapers just fine.

diff --git a/data/web/corefork.telegram.org/method/account.uploadWallPaper b/data/web/corefork.telegram.org/method/account.uploadWallPaper index a0291db4c9..c25fc8bd79 100644 --- a/data/web/corefork.telegram.org/method/account.uploadWallPaper +++ b/data/web/corefork.telegram.org/method/account.uploadWallPaper @@ -77,7 +77,7 @@ for_chat flags.0?true -  +Set this flag when uploading wallpapers to be passed to messages.setChatWallPaper. file @@ -121,6 +121,7 @@

Related pages

+

messages.setChatWallPaper

Wallpapers

Telegram apps support generating, sharing and synchronizing chat backgrounds.

diff --git a/data/web/corefork.telegram.org/method/messages.setChatWallPaper b/data/web/corefork.telegram.org/method/messages.setChatWallPaper index ab5d7151c5..965eaa318a 100644 --- a/data/web/corefork.telegram.org/method/messages.setChatWallPaper +++ b/data/web/corefork.telegram.org/method/messages.setChatWallPaper @@ -4,32 +4,24 @@ messages.setChatWallPaper - +Flags, see…"> - +Flags, see…"> @@ -64,7 +56,8 @@ flags.0?InputWallPaper…">

messages.setChatWallPaper

-

+

Set a custom wallpaper » in a specific private chat with another user.

+