From 56cf86143c0e4f99e466589ebd989b6bcb735e85 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 5 Sep 2022 17:08:37 +0000 Subject: [PATCH] Update content of files --- .../6ed2ac30-49e1-4073-87c2-f1ffcb74e81f.html | 6 +- .../api/custom-emoji.html | 34 +- .../corefork.telegram.org/api/entities.html | 1 + data/web/corefork.telegram.org/api/masks.html | 133 ++++++ .../corefork.telegram.org/api/stickers.html | 415 ++++++++++++++++++ data/web/corefork.telegram.org/methods.html | 230 +++++----- 6 files changed, 680 insertions(+), 139 deletions(-) create mode 100644 data/web/corefork.telegram.org/api/masks.html create mode 100644 data/web/corefork.telegram.org/api/stickers.html diff --git a/data/web/api.appcenter.ms/v0.1/public/sparkle/apps/6ed2ac30-49e1-4073-87c2-f1ffcb74e81f.html b/data/web/api.appcenter.ms/v0.1/public/sparkle/apps/6ed2ac30-49e1-4073-87c2-f1ffcb74e81f.html index 9d07a33d98..fc22182b8c 100644 --- a/data/web/api.appcenter.ms/v0.1/public/sparkle/apps/6ed2ac30-49e1-4073-87c2-f1ffcb74e81f.html +++ b/data/web/api.appcenter.ms/v0.1/public/sparkle/apps/6ed2ac30-49e1-4073-87c2-f1ffcb74e81f.html @@ -1,6 +1,6 @@ -Telegram Beta/v0.1/public/sparkle/apps/6ed2ac30-49e1-4073-87c2-f1ffcb74e81fVersion 8.9 (234977)<div><p>[&quot;bugfix&quot;]</p> +Telegram Beta/v0.1/public/sparkle/apps/6ed2ac30-49e1-4073-87c2-f1ffcb74e81fVersion 8.9 (236142)<div><p>[&quot;bugfixes&quot;]</p> +</div>Mon, 05 Sep 2022 17:03:26 GMT10.11Version 8.9 (234977)<div><p>[&quot;bugfix&quot;]</p> </div>Thu, 18 Aug 2022 17:20:31 GMT10.11Version 8.9 (234948)<div><p>[&quot;bugfix&quot;]</p> </div>Tue, 16 Aug 2022 18:15:18 GMT10.11Version 8.9 (234937)<div><p>[&quot;bugfix&quot;]</p> </div>Mon, 15 Aug 2022 19:42:35 GMT10.11Version 8.9 (234927)<div><p>[&quot;bugfix&quot;]</p> -</div>Mon, 15 Aug 2022 17:44:07 GMT10.11Version 8.9 (234913)<div><p>[&quot;bugfix&quot;]</p> -</div>Mon, 15 Aug 2022 11:53:32 GMT10.11 \ No newline at end of file +</div>Mon, 15 Aug 2022 17:44:07 GMT10.11 \ No newline at end of file diff --git a/data/web/corefork.telegram.org/api/custom-emoji.html b/data/web/corefork.telegram.org/api/custom-emoji.html index 8617b4f4c2..6eb5bb617b 100644 --- a/data/web/corefork.telegram.org/api/custom-emoji.html +++ b/data/web/corefork.telegram.org/api/custom-emoji.html @@ -2,14 +2,12 @@ - Custom-emoji + Custom emojis - - + + - + @@ -41,30 +39,24 @@ stickerSet#2dd14edc flags:# archived:flags.1?true official:flags.2?true masks:fl
- -

Custom-emoji

+ +

Custom emojis

-

Custom emojis

-
stickerSet#2dd14edc flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?true videos:flags.6?true emojis:flags.7?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string thumbs:flags.4?Vector<PhotoSize> thumb_dc_id:flags.4?int thumb_version:flags.4?int thumb_document_id:flags.8?long count:int hash:int = StickerSet;
+

Telegram allows including animated and static custom emojis inside of messages.

+
messageEntityCustomEmoji#c8cf05f8 offset:int length:int document_id:long = MessageEntity;
 
-messageEntityCustomEmoji#c8cf05f8 offset:int length:int document_id:long = MessageEntity;
+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;
 
 documentAttributeCustomEmoji#fd149899 flags:# free:flags.0?true alt:string stickerset:InputStickerSet = DocumentAttribute;
 
-stickerSetFullCovered#1aed5ee5 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = StickerSetCovered;
-
-updateReadFeaturedEmojiStickers#fb4c496c = Update;
-
-messages.allStickersNotModified#e86602c3 = messages.AllStickers;
-messages.allStickers#cdbbcebb hash:long sets:Vector<StickerSet> = messages.AllStickers;
-
 ---functions---
 
-messages.getCustomEmojiDocuments#d9ab0f54 document_id:Vector<long> = Vector<Document>;
-messages.getEmojiStickers#fbfca18f hash:long = messages.AllStickers;
-messages.getFeaturedEmojiStickers#0ecf6736 hash:long = messages.FeaturedStickers;
+messages.getCustomEmojiDocuments#d9ab0f54 document_id:Vector<long> = Vector<Document>; +

Custom emojis are a special kind of entity », containing just a document_id, which can be passed to messages.getCustomEmojiDocuments to fetch the static, animated or video sticker emoji that should be displayed to the user as described in the stickers documentation.

+

Sticker documents will contain documentAttributeCustomEmoji attribute instead of a documentAttributeSticker, containing information on the associated emoji, whether the emoji can be used by non-premium users (free) and the associated stickerset.

+

Like stickers, custom emojis are organized in stickersets: see the stickers documentation » for more info on how to work with them.

diff --git a/data/web/corefork.telegram.org/api/entities.html b/data/web/corefork.telegram.org/api/entities.html index 723af5b972..bc615bc6d9 100644 --- a/data/web/corefork.telegram.org/api/entities.html +++ b/data/web/corefork.telegram.org/api/entities.html @@ -106,6 +106,7 @@ code
  • inputMessageEntityMentionName => Mention a user
  • messageEntityMention => @botfather (this mention is generated automatically server-side for @usernames in messages)
  • +

    Also, messageEntityCustomEmoji entities are used for custom emojis ».

    A number of other entities are also available, see the type page for the full list ».

    diff --git a/data/web/corefork.telegram.org/api/masks.html b/data/web/corefork.telegram.org/api/masks.html new file mode 100644 index 0000000000..c10e14c476 --- /dev/null +++ b/data/web/corefork.telegram.org/api/masks.html @@ -0,0 +1,133 @@ + + + + + Masks + + + + + + + + + + + + + + + + +
    + + + +
    + + + + + + + + diff --git a/data/web/corefork.telegram.org/api/stickers.html b/data/web/corefork.telegram.org/api/stickers.html new file mode 100644 index 0000000000..c24721485e --- /dev/null +++ b/data/web/corefork.telegram.org/api/stickers.html @@ -0,0 +1,415 @@ + + + + + Stickers + + + + + + + + + + + + + + + + +
    + +
    +
    +
    + +

    Stickers

    + +
    + +

    Telegram clients support displaying static and animated stickers.

    +

    Displaying stickers

    +
    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;
    +
    +documentAttributeSticker#6319d612 flags:# mask:flags.1?true alt:string stickerset:InputStickerSet mask_coords:flags.0?MaskCoords = DocumentAttribute;
    +
    +inputStickerSetEmpty#ffb62b95 = InputStickerSet;
    +inputStickerSetID#9de7a269 id:long access_hash:long = InputStickerSet;
    +inputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet;
    +inputStickerSetAnimatedEmoji#28703c8 = InputStickerSet;
    +inputStickerSetDice#e67f520e emoticon:string = InputStickerSet;
    +inputStickerSetAnimatedEmojiAnimations#cde3739 = InputStickerSet;
    +inputStickerSetPremiumGifts#c88b3b02 = InputStickerSet;
    +

    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:

    + +

    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

    +

    Static stickers are WebP images with the following specs:

    +
      +
    • For stickers, either the width or height must be equal to 512 pixels.
    • +
    • For custom emojis, the resolution must be equal 100x100 pixels.
    • +
    • Transparency is supported.
    • +
    +

    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

    +

    Animated stickers are Lottie vector animations ».

    +

    Telegram uses a special .tgs file format for lottie animations, which consists in a gzipped bodymovin JSON file, playable using the rlottie library.

    +

    Lottie animation specs:

    +
      +
    • The canvas size must be 512х512 pixels.
    • +
    • Objects must not leave the canvas.
    • +
    • Animation length must not exceed 3 seconds.
    • +
    • All animations must be looped.
    • +
    • All animations must run at 60 Frames Per Second.
    • +
    +

    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

    +

    Video stickers are VP9 videos with the following specs:

    +
      +
    • The video must be encoded using VP9, in a WebM container.
    • +
    • The WebM container must have no audio stream.
    • +
    • For stickers, either the width or height must be equal to 512 pixels.
    • +
    • For custom emojis, the resolution must be equal 100x100 pixels.
    • +
    • Maximum duration: 3 seconds.
    • +
    • Frame rate: up to 30 FPS.
    • +
    • Transparency is supported.
    • +
    • The video should be looped for optimal user experience.
    • +
    +

    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.

    +

    Stickersets

    +
    inputStickerSetID#9de7a269 id:long access_hash:long = InputStickerSet;
    +inputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet;
    +inputStickerSetAnimatedEmoji#28703c8 = InputStickerSet;
    +inputStickerSetAnimatedEmojiAnimations#cde3739 = InputStickerSet;
    +inputStickerSetDice#e67f520e emoticon:string = InputStickerSet;
    +inputStickerSetPremiumGifts#c88b3b02 = InputStickerSet;
    +
    +messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;
    +messages.stickerSetNotModified#d3f924eb = messages.StickerSet;
    +
    +stickerSet#2dd14edc flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?true videos:flags.6?true emojis:flags.7?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string thumbs:flags.4?Vector<PhotoSize> thumb_dc_id:flags.4?int thumb_version:flags.4?int thumb_document_id:flags.8?long count:int hash:int = StickerSet;
    +
    +stickerPack#12b299d4 emoticon:string documents:Vector<long> = StickerPack;
    +
    +---functions---
    +
    +messages.getStickerSet#c8a0ec74 stickerset:InputStickerSet hash:int = messages.StickerSet;
    +

    Stickers are grouped together in so-called sticker packs: however, in the API they're referred to as "sticker sets", and the name "sticker pack" is reserved for something else, read on for more info.

    +

    Use messages.getStickerSet to fetch information about the stickerset, providing the following parameters:

    + +

    The method will return a messages.stickerSetNotModified if a non-zero hash is provided and the stickerset wasn't modified since the last time we fetched it.
    +Otherwise, a messages.stickerSet will be returned, containing:

    +
      +
    • A stickerSet constructor with info about the stickerset
    • +
    • A vector of document, containing all the stickers. +Note that even if we provided an old hash and just a few stickers were modified/reordered, all stickers will be returned anyway.
    • +
    • A vector of stickerPack constructors, containing all the stickers IDs in the stickerpack, grouped by emoji.
      +The main emoji to use when previewing stickers in the chat list is present in the alt field of the document.
      +This field is actually used to allow associating more than one emoji to a sticker: this means that the same document ID may be present in multiple stickerPacks.
    • +
    +

    Stickerset previews

    +
    stickerSetCovered#6410a5d2 set:StickerSet cover:Document = StickerSetCovered;
    +stickerSetMultiCovered#3407e51b set:StickerSet covers:Vector<Document> = StickerSetCovered;
    +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:

    + +

    Also, like all files, sticker documents have a set of previews that should be handled as described here ».

    +

    Installing stickers

    +
    inputStickerSetID#9de7a269 id:long access_hash:long = InputStickerSet;
    +inputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet;
    +inputStickerSetAnimatedEmoji#28703c8 = InputStickerSet;
    +inputStickerSetAnimatedEmojiAnimations#cde3739 = InputStickerSet;
    +inputStickerSetDice#e67f520e emoticon:string = InputStickerSet;
    +inputStickerSetPremiumGifts#c88b3b02 = InputStickerSet;
    +
    +messages.stickerSetInstallResultSuccess#38641628 = messages.StickerSetInstallResult;
    +messages.stickerSetInstallResultArchive#35e410a8 sets:Vector<StickerSetCovered> = messages.StickerSetInstallResult;
    +
    +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;
    +messages.uninstallStickerSet#f96e55de stickerset:InputStickerSet = Bool;
    +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;
    +messages.getEmojiStickers#fbfca18f hash:long = messages.AllStickers;
    +

    A stickerset can be installed using messages.installStickerSet, archived=false, with possible return values:

    + +

    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.
    +Both updates should trigger a call to messages.getAllStickers, messages.getArchivedStickers, messages.getEmojiStickers.

    +

    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.
    +This update should trigger a call to messages.getAllStickers, messages.getArchivedStickers, messages.getEmojiStickers.

    +

    Use messages.getAllStickers to fetch all installed and non-archived stickersets.
    +Use messages.getEmojiStickers to fetch all installed and non-archived custom emoji stickersets.

    +

    Creating stickersets

    +
    inputStickerSetItem#ffa0a496 flags:# document:InputDocument emoji:string mask_coords:flags.0?MaskCoords = InputStickerSetItem;
    +
    +messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;
    +messages.stickerSetNotModified#d3f924eb = messages.StickerSet;
    +
    +stickers.suggestedShortName#85fea03f short_name:string = stickers.SuggestedShortName;
    +
    +---functions---
    +
    +messages.uploadMedia#519bc2b1 peer:InputPeer media:InputMedia = MessageMedia;
    +
    +stickers.checkShortName#284b3639 short_name:string = Bool;
    +stickers.suggestShortName#4dafc503 title:string = stickers.SuggestedShortName;
    +
    +stickers.createStickerSet#9021ab67 flags:# masks:flags.0?true animated:flags.1?true videos:flags.4?true user_id:InputUser title:string short_name:string thumb:flags.2?InputDocument stickers:Vector<InputStickerSetItem> software:flags.3?string = messages.StickerSet;
    +
    +stickers.addStickerToSet#8653febe stickerset:InputStickerSet sticker:InputStickerSetItem = messages.StickerSet;
    +stickers.removeStickerFromSet#f7760f51 sticker:InputDocument = messages.StickerSet;
    +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.

    +

    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.
    +Custom emoji stickersets can only be created using the @stickers bot for now.

    +

    Use stickers.addStickerToSet to add stickers to the stickerset.
    +Use stickers.setStickerSetThumb to edit the stickerset thumbnail after creation.
    +Use stickers.removeStickerFromSet to remove stickers from a stickerset, and stickers.changeStickerPosition to move stickers in a stickerset (simply providing the sticker document is enough).

    +

    Searching stickers

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

    +

    Featured stickers

    +
    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;
    +messages.readFeaturedStickers#5b118126 id:Vector<long> = Bool;
    +
    +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.

    +

    Clients should preload featured stickers on startup according to the value of the preload_featured_stickers configuration parameter.

    +

    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.
    +This method will also emit an updateReadFeaturedStickers or updateReadFeaturedEmojiStickers update on all other logged-in sessions.

    +

    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.

    +

    Favorite stickers

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

    +

    Users can fave only a certain number of stickersets, as specified by the following configuration parameters:

    +
      +
    • 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.
    +This update should trigger a call to messages.getFavedStickers.

    +

    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;
    +messages.getRecentStickers#9da9403b flags:# attached:flags.0?true hash:long = messages.RecentStickers;
    +messages.clearRecentStickers#8999602d flags:# attached:flags.0?true = Bool;
    +

    After using a sticker in a message, clients should invoke messages.saveRecentSticker (normal and mask stickers only, mask stickers should set the attached flag).

    +

    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.
    +This update should trigger a call to messages.getRecentStickers.

    +

    Sticker suggestions

    +
    messages.stickersNotModified#f1749a22 = messages.Stickers;
    +messages.stickers#30a6ec7e hash:long stickers:Vector<Document> = messages.Stickers;
    +
    +---functions---
    +
    +messages.getStickers#d5a5d3a1 emoticon:string hash:long = messages.Stickers;
    +

    Clients should show a popup with a list of suggested stickers and custom emojis when the user enters an emoji in the text bar.

    +

    If the stickers_emoji_suggest_only_api app configuration parameter is set to true, clients must invoke messages.getStickers to fetch a list of suggested stickers for the emoji.
    +The stickers_emoji_cache_time specifies the validity period of the local cache of messages.getStickers, also relevant when generating the pagination hash when invoking the method.

    +

    Otherwise, the following local logic should be used.

    +
      +
    • Construct two lists of recently used stickers, matching the emoji:
        +
      • List a) Contains all non-Premium stickers.
      • +
      • List b) Contains all Premium stickers.
      • +
      +
    • +
    • The final suggested sticker list c is composed as follows:
        +
      • If the user doesn't have a Premium subscription: all stickers from a, followed by stickers_premium_by_emoji_num stickers from b.
      • +
      • If the user has a Premium subscription: stickers_normal_by_emoji_per_premium_num stickers from a, followed by 1 sticker from b, and so on until both lists are empty.
      • +
      +
    • +
    +

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

    +

    An updateStickerSets update will be emitted to the other logged-in sessions when archiving or unarchiving stickersets.
    +This update should trigger a call to messages.getArchivedStickers.

    + +
    + +
    +
    + +
    + + + + + + + + diff --git a/data/web/corefork.telegram.org/methods.html b/data/web/corefork.telegram.org/methods.html index abbba14836..2e86488b82 100644 --- a/data/web/corefork.telegram.org/methods.html +++ b/data/web/corefork.telegram.org/methods.html @@ -1055,6 +1055,121 @@ +

    Working with stickers »

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameDescription
    messages.getOldFeaturedStickersMethod for fetching previously featured stickers
    messages.toggleStickerSetsApply changes to multiple stickersets
    stickers.suggestShortNameSuggests a short name for a given stickerpack name
    stickers.checkShortNameCheck whether the given short name is available
    stickers.setStickerSetThumbSet stickerset thumbnail
    stickers.addStickerToSetAdd a sticker to a stickerset, bots only. The sticker set must have been created by the bot.
    stickers.changeStickerPositionChanges the absolute position of a sticker in the set to which it belongs; for bots only. The sticker set must have been created by the bot
    stickers.createStickerSetCreate a stickerset, bots only.
    stickers.removeStickerFromSetRemove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.
    messages.clearRecentStickersClear recent stickers
    messages.faveStickerMark or unmark a sticker as favorite
    messages.getAllStickersGet all installed stickers
    messages.getArchivedStickersGet all archived stickers
    messages.getAttachedStickersGet stickers attached to a photo or video
    messages.getFavedStickersGet faved stickers
    messages.getFeaturedStickersGet featured stickers
    messages.getMaskStickersGet installed mask stickers
    messages.getRecentStickersGet recent stickers
    messages.getStickerSetGet info about a stickerset
    messages.getStickersGet stickers by emoji
    messages.saveRecentStickerAdd/remove sticker from recent stickers list
    messages.installStickerSetInstall a stickerset
    messages.readFeaturedStickersMark new featured stickers as read
    messages.reorderStickerSetsReorder installed stickersets
    messages.searchStickerSetsSearch for stickersets
    messages.uninstallStickerSetUninstall a stickerset

    Working with telegram passport

    @@ -2219,121 +2334,6 @@
    -

    Working with stickers

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameDescription
    messages.getOldFeaturedStickersMethod for fetching previously featured stickers
    messages.toggleStickerSetsApply changes to multiple stickersets
    stickers.suggestShortNameSuggests a short name for a given stickerpack name
    stickers.checkShortNameCheck whether the given short name is available
    stickers.setStickerSetThumbSet stickerset thumbnail
    stickers.addStickerToSetAdd a sticker to a stickerset, bots only. The sticker set must have been created by the bot.
    stickers.changeStickerPositionChanges the absolute position of a sticker in the set to which it belongs; for bots only. The sticker set must have been created by the bot
    stickers.createStickerSetCreate a stickerset, bots only.
    stickers.removeStickerFromSetRemove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.
    messages.clearRecentStickersClear recent stickers
    messages.faveStickerMark or unmark a sticker as favorite
    messages.getAllStickersGet all installed stickers
    messages.getArchivedStickersGet all archived stickers
    messages.getAttachedStickersGet stickers attached to a photo or video
    messages.getFavedStickersGet faved stickers
    messages.getFeaturedStickersGet featured stickers
    messages.getMaskStickersGet installed mask stickers
    messages.getRecentStickersGet recent stickers
    messages.getStickerSetGet info about a stickerset
    messages.getStickersGet stickers by emoji
    messages.saveRecentStickerAdd/remove sticker from recent stickers list
    messages.installStickerSetInstall a stickerset
    messages.readFeaturedStickersMark new featured stickers as read
    messages.reorderStickerSetsReorder installed stickersets
    messages.searchStickerSetsSearch for stickersets
    messages.uninstallStickerSetUninstall a stickerset

    Working with the attachment menu » of web app bots »