diff --git a/data/web/corefork.telegram.org/api/stickers.html b/data/web/corefork.telegram.org/api/stickers.html index 5dec79e194..6c79b48f49 100644 --- a/data/web/corefork.telegram.org/api/stickers.html +++ b/data/web/corefork.telegram.org/api/stickers.html @@ -110,26 +110,6 @@
They're identified by mime_type
field of the associated document, always equal to video/webm
.
See here » for tips on how to create the perfect video sticker, and here » for info on how to upload it using the API.
-Mask stickers are static stickers that are meant to be overlaid on top of photos and attached to media, as specified here ».
-maskCoords#aed6dbb2 n:int x:double y:double zoom:double = MaskCoords;
-
-documentAttributeSticker#6319d612 flags:# mask:flags.1?true alt:string stickerset:InputStickerSet mask_coords:flags.0?MaskCoords = DocumentAttribute;
-
-inputStickerSetItem#ffa0a496 flags:# document:InputDocument emoji:string mask_coords:flags.0?MaskCoords = InputStickerSetItem;
-Mask stickers can have associated coordinates, contained in the maskCoords constructor.
-The n
position indicates where the mask should be placed:
The x
, y
and zoom
parameters further refine the position relative to the chosen facial feature.
Note that these coordinates are only used to provide a default position when attaching stickers to media, by locally running facial recognition software and placing the mask sticker at the appropriate coordinates relative to the chosen facial feature.
-The final sticker position can be modified by the user before generating a new photo/video with the sticker baked-in.
-The final coordinates will not be sent along with the attached media, as they are only used as a suggested default position when placing the sticker.
The default coordinates are chosen by the stickerset creator when uploading the sticker.
inputStickerSetID#9de7a269 id:long access_hash:long = InputStickerSet;
inputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet;
@@ -386,7 +366,27 @@ First, overlay the sticker on top of the media file locally (properly handling e
Then, when sending the media file using messages.sendMedia, indicate the stickers that were overlaid in the stickers
field of inputMediaUploadedPhoto or inputMediaUploadedDocument.
Sent stickered photos will have the has_stickers
flag set.
Sent stickered video documents will have a documentAttributeHasStickers attribute.
-When receiving such a media file, clients should call messages.getAttachedStickers, passing the media: the method will return a set of stickerset previews », with info about the stickersets (not stickers) used in the media.
+When receiving such a media file, clients should call messages.getAttachedStickers, passing the media: the method will return a set of stickerset previews », with info about the stickersets (not stickers) used in the media.
+Mask stickers
+Mask stickers are a special kind of static stickers that are meant to be overlaid on top of photos and attached to media, as specified here ».
+maskCoords#aed6dbb2 n:int x:double y:double zoom:double = MaskCoords;
+
+documentAttributeSticker#6319d612 flags:# mask:flags.1?true alt:string stickerset:InputStickerSet mask_coords:flags.0?MaskCoords = DocumentAttribute;
+
+inputStickerSetItem#ffa0a496 flags:# document:InputDocument emoji:string mask_coords:flags.0?MaskCoords = InputStickerSetItem;
+Mask stickers can optionally have associated coordinates, contained in the maskCoords constructor.
+The n
position indicates where the mask should be placed:
+
+- 0 => Relative to the forehead
+- 1 => Relative to the eyes
+- 2 => Relative to the mouth
+- 3 => Relative to the chin
+
+The x
, y
and zoom
parameters further refine the position relative to the chosen facial feature.
+Note that these coordinates are only used to provide a default position when attaching stickers to media, by locally running facial recognition software and placing the mask sticker at the appropriate coordinates relative to the chosen facial feature.
+The final sticker position can be modified by the user before generating a new photo/video with the sticker baked-in.
+The final coordinates will not be sent along with the attached media, as they are only used as a suggested default position when placing the sticker.
+The default coordinates are chosen by the stickerset creator when uploading the sticker.
diff --git a/data/web/corefork.telegram.org/api/themes.html b/data/web/corefork.telegram.org/api/themes.html
index b70dd4d5dd..27868e3ff2 100644
--- a/data/web/corefork.telegram.org/api/themes.html
+++ b/data/web/corefork.telegram.org/api/themes.html
@@ -53,6 +53,7 @@
account.uploadTheme#1c3db333 flags:# file:InputFile thumb:flags.0?InputFile file_name:string mime_type:string = Document;
Theme files can be uploaded using account.uploadTheme: optionally a JPEG thumbnail for the theme can also be provided to thumb
.
The resulting document should be used when creating or updating themes.
The actual content of the theme file depends on the formats supported by the theming engine of the client.
baseThemeClassic#c3a12462 = BaseTheme;
baseThemeDay#fbd81688 = BaseTheme;
diff --git a/data/web/corefork.telegram.org/method/account.createTheme b/data/web/corefork.telegram.org/method/account.createTheme
index ccc4307b67..929d3201ec 100644
--- a/data/web/corefork.telegram.org/method/account.createTheme
+++ b/data/web/corefork.telegram.org/method/account.createTheme
@@ -91,7 +91,7 @@
settings
flags.3?Vector<InputThemeSettings>
-Theme settings
+Theme settings, multiple values can be provided for the different base themes (day/night mode, etc).