diff --git a/data/web/corefork.telegram.org/api/custom-emojis.html b/data/web/corefork.telegram.org/api/custom-emojis.html new file mode 100644 index 0000000000..28eb794f3a --- /dev/null +++ b/data/web/corefork.telegram.org/api/custom-emojis.html @@ -0,0 +1,118 @@ + + +
+ +Stickers are contained in document constructors attached to messages, and always have an attribute of type documentAttributeSticker.
-The documentAttributeSticker contains information about the associated stickerset, the emoji that represents the sticker,
-Image stickers are simple
+Stickers can be contained in document constructors attached to messages, and always have an attribute of type documentAttributeSticker.
+The documentAttributeSticker attribute contains information about the associated stickerset, the emoji that represents the sticker, and more.
+There are multiple available sticker types:
+Static stickers are WebP images with the following specs:
+They're identified by mime_type
field of the associated document, always equal to image/webp
.
See here » for tips on how to create the perfect static sticker, and here » for info on how to upload it using the API.
+Animated stickers are vector
+They're identified by mime_type
field of the associated document, always equal to application/x-tgsticker
.
See here » for tips on how to create the perfect animated sticker, and here » for info on how to upload it using the API.
+Video stickers are VP9 videos with the following specs:
+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.
+Like all files, stickers have a set of previews that should be handled as described in the file docs ».
inputStickeredMediaPhoto#4a992157 id:InputPhoto = InputStickeredMedia;
inputStickeredMediaDocument#438865b id:InputDocument = InputStickeredMedia;
@@ -123,7 +151,7 @@ This field is actually used to allow associating more than one emoji to a sticke
stickerSetFullCovered#1aed5ee5 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = StickerSetCovered;
Certain parts of the API may return partial StickerSetCovered constructors instead of full document constructors for every sticker in the set: