diff --git a/data/web/corefork.telegram.org/api/custom-emoji.html b/data/web/corefork.telegram.org/api/custom-emoji.html index 2c63588d43..7fe6691460 100644 --- a/data/web/corefork.telegram.org/api/custom-emoji.html +++ b/data/web/corefork.telegram.org/api/custom-emoji.html @@ -4,14 +4,12 @@
---functions---
-messages.getEmojiStickers#fbfca18f hash:long = messages.AllStickers;
-messages.getFeaturedEmojiStickers#ecf6736 hash:long = messages.FeaturedStickers;
messages.allStickersNotModified#e86602c3 = messages.AllStickers; +messages.allStickers#cdbbcebb hash:long sets:Vector<stickerset> = messages.AllStickers;
+---functions---
+
+messages.getEmojiStickers#fbfca18f hash:long = messages.AllStickers;
diff --git a/data/web/corefork.telegram.org/api/links.html b/data/web/corefork.telegram.org/api/links.html
index 55665e138e..989a85374b 100644
--- a/data/web/corefork.telegram.org/api/links.html
+++ b/data/web/corefork.telegram.org/api/links.html
@@ -224,7 +224,7 @@ tg://resolve?domain=<username>&livestream=<invite_hash>
Used to import stickersets as described here ».
+Used to import stickersets as described here ».
t.me
syntax:
t.me/addstickers/<slug>
tg:
syntax:
slug
Used to import custom emoji stickersets:
+Used to import custom emoji stickersets as described here ».
t.me
syntax:
t.me/addemoji/<slug>
tg:
syntax:
slug
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
.
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.
+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.
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.
+An updateStickerSetsOrder update will be emitted to the other logged-in sessions when reordering stickersets.
+This update should trigger a call to messages.getAllStickers.
Use messages.getAllStickers to fetch all installed and non-archived stickers.
inputStickerSetItem#ffa0a496 flags:# document:InputDocument emoji:string mask_coords:flags.0?MaskCoords = InputStickerSetItem;
@@ -213,20 +215,27 @@ An updateStickerSets update will be
---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.addStickerToSet#8653febe stickerset:InputStickerSet sticker:InputStickerSetItem = 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 packs.
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).
messages.foundStickerSetsNotModified#d54b65d = messages.FoundStickerSets;
messages.foundStickerSets#8af09dd2 hash:long sets:Vector<StickerSetCovered> = messages.FoundStickerSets;
@@ -250,7 +259,7 @@ Users can also create stickersets by interacting with the official messages.getFeaturedStickers or messages.getFeaturedEmojiStickers, for custom emojis.
+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
.
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.
@@ -271,7 +280,8 @@ Users can also create stickersets by interacting with the official updateFavedStickers update will be emitted to the other logged-in sessions when faving or unfaving 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;
@@ -287,7 +297,8 @@ Users can also create stickersets by interacting with the official 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.
+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;
@@ -295,7 +306,7 @@ Users can also create stickersets by interacting with the official custom emojis when the user enters an emoji in the text bar.
+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.
@@ -325,7 +336,8 @@ The stickers_emoji_cache_time
specifies the validity period of the
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.
+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/method/messages.uploadMedia b/data/web/corefork.telegram.org/method/messages.uploadMedia
index f2340ce386..3db3b69ac9 100644
--- a/data/web/corefork.telegram.org/method/messages.uploadMedia
+++ b/data/web/corefork.telegram.org/method/messages.uploadMedia
@@ -83,7 +83,7 @@
peer
InputPeer
-The chat, can be an inputPeerEmpty for bots
+The chat, can be inputPeerEmpty for bots and inputPeerSelf for users.
media
@@ -195,6 +195,8 @@
Related pages
inputPeerEmpty
An empty constructor, no user or chat is defined.
+inputPeerSelf
+Defines the current user.
Uploading and Downloading Files
How to transfer large data batches correctly.