From f1f73549eb13cf6481f7092e92b6505e9858e013 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 18 Aug 2022 20:36:22 +0000 Subject: [PATCH] Update content of files --- data/web/corefork.telegram.org/api/links.html | 65 ++++++++++++++++++- .../corefork.telegram.org/api/wallpapers.html | 6 +- 2 files changed, 65 insertions(+), 6 deletions(-) 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 @@

Gradient fill wallpapers »

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 @@ Third gradient color in hex RGB format. -hex_color3 +hex_color4 Optional -Third gradient color in hex RGB format. +Fourth gradient color in hex RGB format. + + + +

Image wallpapers

+

t.me syntax:

+
t.me/bg/<slug>?mode=<mode>
+

tg: syntax:

+
tg://bg?slug=<slug>&mode=<mode>
+

Parameters:

+ + + + + + + + + + + + + + + + + + + + +
NameOptionalDescription
slugRequiredWallpaper slug used to obtain the image file using account.getWallPaper.
modeOptionalblur, motion or blur+motion to enable blurring or parallax motion as specified in the docs.
+

Pattern wallpapers

+

t.me syntax:

+
t.me/bg/<slug>?intensity=<intensity>&bg_color=<params>&mode=<mode>
+

tg: syntax:

+
tg://bg?slug=<slug>&mode=<mode>
+

Parameters:

+ + + + + + + + + + + + + + + + + + + + + + +
NameOptionalDescription
slugRequiredWallpaper slug used to obtain the pattern file using account.getWallPaper.
intensityRequiredA value ranging from -100 to 100, used to combine the pattern with the fill as specified in the docs.
modeOptionalmotion to enable parallax motion as specified in the docs.
diff --git a/data/web/corefork.telegram.org/api/wallpapers.html b/data/web/corefork.telegram.org/api/wallpapers.html index 5dd8214b47..b54bad8a23 100644 --- a/data/web/corefork.telegram.org/api/wallpapers.html +++ b/data/web/corefork.telegram.org/api/wallpapers.html @@ -74,9 +74,9 @@ Wallpapers must be rendered according to the instructions…">

Wallpaper types

There are three main wallpaper types:

Fill and pattern wallpapers are generated using one of three fill types.

Image wallpapers

@@ -103,7 +103,7 @@ The settings field describes the transforms that should be applied
  • Values from -1 to -100 mean that the pattern should be inverted (black background, transparent pattern) before overlaying on top of the color fill with the specified intensity (@ -100 the filled pattern is fully visible on a black background, @ -1 only black is visible).
  • -
  • 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.
  • Fill wallpapers

    wallPaperNoFile#e0804116 id:long flags:# default:flags.1?true dark:flags.4?true settings:flags.2?WallPaperSettings = WallPaper;