diff --git a/data/web/corefork.telegram.org/api/stickers.html b/data/web/corefork.telegram.org/api/stickers.html index d97911626c..df402697cf 100644 --- a/data/web/corefork.telegram.org/api/stickers.html +++ b/data/web/corefork.telegram.org/api/stickers.html @@ -181,6 +181,10 @@ This field is actually used to allow associating more than one emoji to a sticke messages.allStickersNotModified#e86602c3 = messages.AllStickers; messages.allStickers#cdbbcebb hash:long sets:Vector<StickerSet> = messages.AllStickers; +updateNewStickerSet#688a30aa stickerset:messages.StickerSet = Update; +updateStickerSetsOrder#bb2d201 flags:# masks:flags.0?true emojis:flags.1?true order:Vector<long> = Update; +updateStickerSets#43ae3dec = Update; + ---functions--- messages.installStickerSet#c78fe460 stickerset:InputStickerSet archived:Bool = messages.StickerSetInstallResult; @@ -194,7 +198,10 @@ This field is actually used to allow associating more than one emoji to a sticke
  • messages.stickerSetInstallResultArchive - The stickerset was successfully installed, displacing some older unused stickersets specified in the sets field by archiving them.
  • Use messages.uninstallStickerSet or messages.toggleStickerSets with the uninstall flag to uninstall one or more stickersets.

    +

    An updateNewStickerSet update will be emitted to the other logged-in sessions when installing stickersets. +An updateStickerSets update will be emitted to the other logged-in sessions when uninstalling or archiving 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.

    +

    An updateStickerSetsOrder update will be emitted to the other logged-in sessions when reordering stickersets.

    Use messages.getAllStickers to fetch all installed and non-archived stickers.

    Creating stickersets

    messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;
    @@ -211,6 +218,10 @@ 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;
    +

    Bots can create stickersets by using the following methods.
    +Users can't create stickersets by using these methods, so they must interact either with the official @stickers bot, or with some other bot that offers similar features.

    +

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

    +

    Use stickers.createStickerSet to create a normal, animated, video, mask an stickerset.

    Searching stickers

    messages.foundStickerSetsNotModified#d54b65d = messages.FoundStickerSets;
     messages.foundStickerSets#8af09dd2 hash:long sets:Vector<StickerSetCovered> = messages.FoundStickerSets;
    @@ -223,6 +234,9 @@ This field is actually used to allow associating more than one emoji to a sticke
     
    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;
     
    +updateReadFeaturedStickers#571d2742 = Update;
    +updateReadFeaturedEmojiStickers#fb4c496c = Update;
    +
     ---functions---
     
     messages.getFeaturedStickers#64780b14 hash:long = messages.FeaturedStickers;
    @@ -239,6 +253,8 @@ This field is actually used to allow associating more than one emoji to a sticke
     
    messages.favedStickersNotModified#9e8fa6d3 = messages.FavedStickers;
     messages.favedStickers#2cb51097 hash:long packs:Vector<StickerPack> stickers:Vector<Document> = messages.FavedStickers;
     
    +updateFavedStickers#e511996d = Update;
    +
     ---functions---
     
     messages.faveSticker#b9ffc55b id:InputDocument unfave:Bool = Bool;
    @@ -250,10 +266,13 @@ This field is actually used to allow associating more than one emoji to a sticke
     
  • Premium users can fave a total of stickers_faved_limit_premium stickersets.
  • Non-Premium users can fave a total of stickers_faved_limit_default stickersets.
  • +

    An updateFavedStickers update will be emitted to the other logged-in sessions when faving or unfaving stickersets.

    Recent stickers

    messages.recentStickersNotModified#b17f890 = messages.RecentStickers;
     messages.recentStickers#88d37c56 hash:long packs:Vector<StickerPack> stickers:Vector<Document> dates:Vector<int> = messages.RecentStickers;
     
    +updateRecentStickers#9a422c20 = Update;
    +
     ---functions---
     
     messages.saveRecentSticker#392718f8 flags:# attached:flags.0?true id:InputDocument unsave:Bool = Bool;
    @@ -263,6 +282,7 @@ This field is actually used to allow associating more than one emoji to a sticke
     

    A sticker can be then removed from the recent stickers list using messages.saveRecentSticker with unsave=true; the entire list can be cleared using messages.clearRecentStickers.

    Use messages.getRecentStickers to fetch the recent stickers list.

    Users can add only a certain number of recent stickers, according to the value of the stickers_recent_limit configuration parameter.

    +

    An updateRecentStickers update will be emitted to the other logged-in sessions when modifying the recent stickerset list.

    Sticker suggestions

    messages.stickersNotModified#f1749a22 = messages.Stickers;
     messages.stickers#30a6ec7e hash:long stickers:Vector<Document> = messages.Stickers;
    @@ -289,6 +309,8 @@ The stickers_emoji_cache_time specifies the validity period of the
     

    Archived stickers

    messages.archivedStickers#4fcba9c8 count:int sets:Vector<StickerSetCovered> = messages.ArchivedStickers;
     
    +updateStickerSets#43ae3dec = Update;
    +
     ---functions---
     
     messages.installStickerSet#c78fe460 stickerset:InputStickerSet archived:Bool = messages.StickerSetInstallResult;
    @@ -297,7 +319,8 @@ The stickers_emoji_cache_time specifies the validity period of the
     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 ».

    +

    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 ».

    +

    An updateStickerSets update will be emitted to the other logged-in sessions when archiving or unarchiving stickersets.