diff --git a/data/web/corefork.telegram.org/api/masks.html b/data/web/corefork.telegram.org/api/masks.html index c10e14c476..d90a75fae2 100644 --- a/data/web/corefork.telegram.org/api/masks.html +++ b/data/web/corefork.telegram.org/api/masks.html @@ -4,12 +4,12 @@ Masks - + - + @@ -46,15 +46,37 @@ inputStickeredMediaDocument#438865b id:InputDocument…">
-

inputStickeredMediaPhoto#4a992157 id:InputPhoto = InputStickeredMedia; -inputStickeredMediaDocument#438865b id:InputDocument = InputStickeredMedia;

-
inputStickerSetItem#ffa0a496 flags:# document:InputDocument emoji:string mask_coords:flags.0?MaskCoords = InputStickerSetItem;
+

Telegram allows attaching static, animated and video stickers to photos and videos.

+
inputMediaUploadedPhoto#1e287d04 flags:# file:InputFile stickers:flags.0?Vector<InputDocument> ttl_seconds:flags.1?int = InputMedia;
+
+inputMediaUploadedDocument#5b38c6c1 flags:# nosound_video:flags.3?true force_file:flags.4?true file:InputFile thumb:flags.2?InputFile mime_type:string attributes:Vector<DocumentAttribute> stickers:flags.0?Vector<InputDocument> ttl_seconds:flags.1?int = InputMedia;
+
+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;
+
+
+documentAttributeHasStickers#9801d2f7 = DocumentAttribute;
+
+photo#fb197a65 flags:# has_stickers:flags.0?true id:long access_hash:long file_reference:bytes date:int sizes:Vector<PhotoSize> video_sizes:flags.1?Vector<VideoSize> dc_id:int = Photo;
+document#8fd4c4d8 flags:# id:long access_hash:long file_reference:bytes date:int mime_type:string size:long thumbs:flags.0?Vector<PhotoSize> video_thumbs:flags.1?Vector<VideoSize> dc_id:int attributes:Vector<DocumentAttribute> = Document;
+
+inputStickeredMediaPhoto#4a992157 id:InputPhoto = InputStickeredMedia;
+inputStickeredMediaDocument#438865b id:InputDocument = InputStickeredMedia;
+
+inputStickerSetItem#ffa0a496 flags:# document:InputDocument emoji:string mask_coords:flags.0?MaskCoords = InputStickerSetItem;
+
+stickerSetCovered#6410a5d2 set:StickerSet cover:Document = StickerSetCovered;
+stickerSetMultiCovered#3407e51b set:StickerSet covers:Vector<Document> = StickerSetCovered;
 
 ---functions---
 
+messages.sendMedia#e25ff8e0 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true peer:InputPeer reply_to_msg_id:flags.0?int media:InputMedia message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates;
+
 messages.getAttachedStickers#cc5b67cc media:InputStickeredMedia = Vector<StickerSetCovered>;
 
-messages.getMaskStickers#640f82b8 hash:long = messages.AllStickers;
+messages.getMaskStickers#640f82b8 hash:long = messages.AllStickers; +

To attach a set of stickers to a photo or a video, clients should first overlay the sticker

diff --git a/data/web/corefork.telegram.org/api/stickers.html b/data/web/corefork.telegram.org/api/stickers.html index c24721485e..18ac20e54d 100644 --- a/data/web/corefork.telegram.org/api/stickers.html +++ b/data/web/corefork.telegram.org/api/stickers.html @@ -225,8 +225,9 @@ Use messages.getEmojiStickers to stickers.changeStickerPosition#ffb6d4ca sticker:InputDocument position:int = messages.StickerSet; stickers.setStickerSetThumb#9a364e30 stickerset:InputStickerSet thumb:InputDocument = messages.StickerSet;

Bots and users can create stickersets by using the following methods.
-Users can also create stickersets by interacting with the official @stickers bot.

-

Note that unofficial bots must append a "_by_<bot_username>" prefix to the stickerset short name when creating stickersets.

+Users can also create stickersets by interacting with the official @stickers bot.

+

Note that unofficial bots must append a "_by_<bot_username>" prefix to the stickerset short name when creating stickersets. +Also note that users can't directly modify stickersets created using stickers.createStickerSet, and must use the @stickers bot, instead: only the sticker creation+shortname methods are available directly to users to allow importing stickers using the stickers SDK.

Use messages.uploadMedia to upload stickers and thumbnails, if you don't already have access to a previously uploaded document.

Use stickers.checkShortName to check if a given short name is available, and stickers.suggestShortName to let the server suggest a short name, given the stickerset title.

Use stickers.createStickerSet to create normal, animated, video or mask stickersets.