From cdc3124842773d4669eaa2ea6dc1e05f1ac13f19 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 1 Sep 2022 19:58:54 +0000 Subject: [PATCH] Update content of files --- .../corefork.telegram.org/api/wallpapers.html | 24 +------------------ .../constructor/inputThemeSettings.html | 2 +- .../method/account.uploadTheme | 2 +- 3 files changed, 3 insertions(+), 25 deletions(-) diff --git a/data/web/corefork.telegram.org/api/wallpapers.html b/data/web/corefork.telegram.org/api/wallpapers.html index 6157b91e86..f4a8315c28 100644 --- a/data/web/corefork.telegram.org/api/wallpapers.html +++ b/data/web/corefork.telegram.org/api/wallpapers.html @@ -101,28 +101,6 @@ If set, rotation indicates clockwise rotation angle of the gradient
wallPaperSettings#1dc1bca4 flags:# blur:flags.1?true motion:flags.2?true background_color:flags.0?int second_background_color:flags.4?int third_background_color:flags.5?int fourth_background_color:flags.6?int intensity:flags.3?int rotation:flags.4?int = WallPaperSettings;

If the background_color, second_background_color, third_background_color and optionally fourth_background_color flags are set, the fill is made of a freeform gradient of the specified 3 or 4 RGB-24 colors.

Wallpaper API

-

Scheme:

-
inputWallPaper#e630b979 id:long access_hash:long = InputWallPaper;
-inputWallPaperSlug#72091c80 slug:string = InputWallPaper;
-inputWallPaperNoFile#967a462e id:long = InputWallPaper;
-
-account.wallPapersNotModified#1c199183 = account.WallPapers;
-account.wallPapers#cdc3858c hash:long wallpapers:Vector<WallPaper> = account.WallPapers;
-
-wallPaper#a437c3ed id:long flags:# creator:flags.0?true default:flags.1?true pattern:flags.3?true dark:flags.4?true access_hash:long slug:string document:Document settings:flags.2?WallPaperSettings = WallPaper;
-
-wallPaperSettings#1dc1bca4 flags:# blur:flags.1?true motion:flags.2?true background_color:flags.0?int second_background_color:flags.4?int third_background_color:flags.5?int fourth_background_color:flags.6?int intensity:flags.3?int rotation:flags.4?int = WallPaperSettings;
-
----functions---
-
-account.uploadWallPaper#dd853661 file:InputFile mime_type:string settings:WallPaperSettings = WallPaper;
-account.getWallPaper#fc8ddbea wallpaper:InputWallPaper = WallPaper;
-account.getMultiWallPapers#65ad71dc wallpapers:Vector<InputWallPaper> = Vector<WallPaper>;
-
-account.installWallPaper#feed5769 wallpaper:InputWallPaper settings:WallPaperSettings = Bool;
-account.saveWallPaper#6c5a5b37 wallpaper:InputWallPaper unsave:Bool settings:WallPaperSettings = Bool;
-account.getWallPapers#7967d36 hash:long = account.WallPapers;
-account.resetWallPapers#bb3b9804 = Bool;

Uploading wallpapers

wallPaperSettings#1dc1bca4 flags:# blur:flags.1?true motion:flags.2?true background_color:flags.0?int second_background_color:flags.4?int third_background_color:flags.5?int fourth_background_color:flags.6?int intensity:flags.3?int rotation:flags.4?int = WallPaperSettings;
 
@@ -167,7 +145,7 @@ Note that calling this method will also automatically save the wallpaper, if it'
 
   
 
diff --git a/data/web/corefork.telegram.org/constructor/inputThemeSettings.html b/data/web/corefork.telegram.org/constructor/inputThemeSettings.html
index 7ea9bb7eeb..558aaa426c 100644
--- a/data/web/corefork.telegram.org/constructor/inputThemeSettings.html
+++ b/data/web/corefork.telegram.org/constructor/inputThemeSettings.html
@@ -99,7 +99,7 @@
 
 wallpaper
 flags.1?InputWallPaper
-Wallpaper
+inputWallPaper or inputWallPaperSlug when passing wallpaper files for image or pattern wallpapers, inputWallPaperNoFile with id=0 otherwise.
 
 
 wallpaper_settings
diff --git a/data/web/corefork.telegram.org/method/account.uploadTheme b/data/web/corefork.telegram.org/method/account.uploadTheme
index 7457795203..d96febe00c 100644
--- a/data/web/corefork.telegram.org/method/account.uploadTheme
+++ b/data/web/corefork.telegram.org/method/account.uploadTheme
@@ -77,7 +77,7 @@
 
 file
 InputFile
-Theme file uploaded as described in files »
+Previously uploaded theme file with platform-specific colors for UI components, can be left unset when creating themes that only modify the wallpaper or accent colors.
 
 
 thumb