diff --git a/data/web/corefork.telegram.org/api/stickers.html b/data/web/corefork.telegram.org/api/stickers.html index f69da39447..36bae5003e 100644 --- a/data/web/corefork.telegram.org/api/stickers.html +++ b/data/web/corefork.telegram.org/api/stickers.html @@ -65,18 +65,18 @@ document#8fd4c4d8 flags:# id:long…">
The documentAttributeSticker attribute contains information about the associated stickerset, the emoji that represents the sticker, and more.
There are multiple available sticker types:
Like all files, stickers have a set of previews that should be handled as described in the file docs ».
-Stickers are organized in stickersets, and are also used in the following contexts:
+Like all files, stickers have a set of previews that should be handled as described here ».
+Stickers are organized in stickersets », and are also used in the following contexts:
Static stickers are WebP images with the following specs:
@@ -151,7 +151,7 @@ Otherwise, a messages.stickerSethash
and just a few stickers were modified, all stickers will be returned anyway. hash
and just a few stickers were modified/reordered, all stickers will be returned anyway.
alt
field of the document.Certain parts of the API may return partial StickerSetCovered constructors instead of full document constructors for every sticker in the set:
messages.foundStickerSetsNotModified#d54b65d = messages.FoundStickerSets;
-messages.foundStickerSets#8af09dd2 hash:long sets:Vector<StickerSetCovered> = messages.FoundStickerSets;
-
----functions---
-
-messages.searchStickerSets#35705b8a flags:# exclude_featured:flags.0?true q:string hash:long = messages.FoundStickerSets;
-You can use messages.searchStickerSets to search globally available stickersets by name: note that this method returns a stickerset preview ».
+Also, like all files, sticker documents have a set of previews that should be handled as described here ».
inputStickerSetID#9de7a269 id:long access_hash:long = InputStickerSet;
inputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet;
@@ -195,6 +188,14 @@ This field is actually used to allow associating more than one emoji to a sticke
messages.toggleStickerSets#b5052fea flags:# uninstall:flags.0?true archive:flags.1?true unarchive:flags.2?true stickersets:Vector<InputStickerSet> = Bool;
messages.reorderStickerSets#78337739 flags:# masks:flags.0?true emojis:flags.1?true order:Vector<long> = Bool;
messages.getAllStickers#b8a0a1a8 hash:long = messages.AllStickers;
+A stickerset can be installed using messages.installStickerSet, archived=false
, with possible return values:
sets
field by archiving them. Use messages.uninstallStickerSet or messages.toggleStickerSets with the uninstall
flag to uninstall one or more stickersets.
Use messages.reorderStickerSets to reorder installed stickersets by the stickerSet ID: notice that normal, mask and custom emoji stickersets are ordered independently, use the appropriate flags to sort the correct type of stickerset.
+Use messages.getAllStickers to fetch all installed and non-archived stickers.
messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;
messages.stickerSetNotModified#d3f924eb = messages.StickerSet;
@@ -210,6 +211,14 @@ This field is actually used to allow associating more than one emoji to a sticke
stickers.setStickerSetThumb#9a364e30 stickerset:InputStickerSet thumb:InputDocument = messages.StickerSet;
stickers.checkShortName#284b3639 short_name:string = Bool;
stickers.suggestShortName#4dafc503 title:string = stickers.SuggestedShortName;
+messages.foundStickerSetsNotModified#d54b65d = messages.FoundStickerSets;
+messages.foundStickerSets#8af09dd2 hash:long sets:Vector<StickerSetCovered> = messages.FoundStickerSets;
+
+---functions---
+
+messages.searchStickerSets#35705b8a flags:# exclude_featured:flags.0?true q:string hash:long = messages.FoundStickerSets;
+You can use messages.searchStickerSets to search globally available stickersets by name: note that this method returns a set of stickerset previews ».
messages.featuredStickersNotModified#c6dc0c66 count:int = messages.FeaturedStickers;
messages.featuredStickers#be382906 flags:# premium:flags.0?true hash:long count:int sets:Vector<StickerSetCovered> unread:Vector<long> = messages.FeaturedStickers;
@@ -222,20 +231,29 @@ This field is actually used to allow associating more than one emoji to a sticke
messages.getOldFeaturedStickers#7ed094a1 offset:int limit:int hash:long = messages.FeaturedStickers;
messages.getFeaturedEmojiStickers#ecf6736 hash:long = messages.FeaturedStickers;
+Telegram showcases a set of featured stickers: they can be fetched using messages.getFeaturedStickers or messages.getFeaturedEmojiStickers, for custom emojis.
+The method also returns a set of unread stickerSet IDs in the unread
field: use messages.readFeaturedStickers to mark them as read: note that this will only affect the unread
field, all stickersets will still be returned, unless you also generate a hash
.
messages.getOldFeaturedStickers can be used to fetch an extended list with even more featured stickersets, that were previously featured in the short list returned by messages.getFeaturedStickers.
messages.archivedStickers#4fcba9c8 count:int sets:Vector<StickerSetCovered> = messages.ArchivedStickers;
---functions---
+messages.installStickerSet#c78fe460 stickerset:InputStickerSet archived:Bool = messages.StickerSetInstallResult;
+messages.toggleStickerSets#b5052fea flags:# uninstall:flags.0?true archive:flags.1?true unarchive:flags.2?true stickersets:Vector<InputStickerSet> = Bool;
+
messages.getArchivedStickers#57f17692 flags:# masks:flags.0?true emojis:flags.1?true offset_id:long limit:int = messages.ArchivedStickers;
+One or more stickersets can be archived (or unarchived) using messages.installStickerSet with archived=true|false
, or messages.toggleStickerSets with either the archive
or unarchive
flag.
An unused stickerset may also be automatically archived when installing new stickersets.
+Archived stickers are not returned by messages.getAllStickers and can only be fetched using messages.getArchivedStickers: note that this method returns a set of stickerset previews ».
messages.recentStickersNotModified#b17f890 = messages.RecentStickers;
messages.recentStickers#88d37c56 hash:long packs:Vector<StickerPack> stickers:Vector<Document> dates:Vector<int> = messages.RecentStickers;
---functions---
-messages.getRecentStickers#9da9403b flags:# attached:flags.0?true hash:long = messages.RecentStickers;
messages.saveRecentSticker#392718f8 flags:# attached:flags.0?true id:InputDocument unsave:Bool = Bool;
+messages.getRecentStickers#9da9403b flags:# attached:flags.0?true hash:long = messages.RecentStickers;
messages.clearRecentStickers#8999602d flags:# attached:flags.0?true = Bool;
messages.favedStickersNotModified#9e8fa6d3 = messages.FavedStickers;
@@ -243,8 +261,10 @@ This field is actually used to allow associating more than one emoji to a sticke
---functions---
-messages.getFavedStickers#4f1aaa9 hash:long = messages.FavedStickers;
-messages.faveSticker#b9ffc55b id:InputDocument unfave:Bool = Bool;
+messages.faveSticker#b9ffc55b id:InputDocument unfave:Bool = Bool;
+messages.getFavedStickers#4f1aaa9 hash:long = messages.FavedStickers;
+A stickerset can be faved or unfaved using messages.faveSticker.
+Favorited stickers can be fetched using messages.getFavedStickers: note that this method returns a set of stickerset previews ».
messages.stickersNotModified#f1749a22 = messages.Stickers;
messages.stickers#30a6ec7e hash:long stickers:Vector<Document> = messages.Stickers;