diff --git a/data/web/corefork.telegram.org/api/links.html b/data/web/corefork.telegram.org/api/links.html index 3640252333..929bd9b130 100644 --- a/data/web/corefork.telegram.org/api/links.html +++ b/data/web/corefork.telegram.org/api/links.html @@ -219,7 +219,7 @@
t.me syntax:
-t.me/bg/<top_color>-<bottom_color>&rotation=<rotation>
+t.me/bg/<top_color>-<bottom_color>?rotation=<rotation>
tg: syntax:
tg://bg?gradient=<top_color>-<bottom_color>&rotation=<rotation>
Parameters:
@@ -280,9 +280,68 @@hex_color3
hex_color4
t.me syntax:
+t.me/bg/<slug>?mode=<mode>
+tg: syntax:
+tg://bg?slug=<slug>&mode=<mode>
+Parameters:
+Name | +Optional | +Description | +
---|---|---|
slug |
+Required | +Wallpaper slug used to obtain the image file using account.getWallPaper. | +
mode |
+Optional | +blur , motion or blur+motion to enable blurring or parallax motion as specified in the docs. |
+
t.me syntax:
+t.me/bg/<slug>?intensity=<intensity>&bg_color=<params>&mode=<mode>
+tg: syntax:
+tg://bg?slug=<slug>&mode=<mode>
+Parameters:
+Name | +Optional | +Description | +
---|---|---|
slug |
+Required | +Wallpaper slug used to obtain the pattern file using account.getWallPaper. | +
intensity |
+Required | +A value ranging from -100 to 100, used to combine the pattern with the fill as specified in the docs. | +
mode |
+Optional | +motion to enable parallax motion as specified in the docs. |
There are three main wallpaper types:
Fill and pattern wallpapers are generated using one of three fill types.
settings
field describes the transforms that should be applied
settings.motion
: The background needs to be slightly moved when device is tilted, allowing for a parallax effect.settings.motion
: The pattern needs to be slightly moved on top of the background when device is tilted, allowing for a parallax effect.wallPaperNoFile#e0804116 id:long flags:# default:flags.1?true dark:flags.4?true settings:flags.2?WallPaperSettings = WallPaper;