diff --git a/data/corefork.telegram.org/api/animated-emojis.html b/data/corefork.telegram.org/api/animated-emojis.html index 40fffba270..1e2bc586a5 100644 --- a/data/corefork.telegram.org/api/animated-emojis.html +++ b/data/corefork.telegram.org/api/animated-emojis.html @@ -97,11 +97,11 @@ If a set of reactions for the messages.setTyping, passing a sendMessageEmojiInteraction constructor with the following fields:
+After 500 milliseconds have elapsed with no more taps, the list should be cleared and stored taps should be sent using messages.setTyping, passing a sendMessageEmojiInteraction constructor with the following fields:emoticon
- The emoji we're reacting tomsg_id
- Message ID of the animated emoji that was clickedinteraction
- A JSON object with interaction info, containing the following keys:v
- An integer indicating the object version, currently 1
a
- An array of JSON objects, each containing the following keys:t
- float, relative timestamp of the tap in seconds, the first one being 0.0
.For photos, inputPhotoFileLocation is used:
@@ -206,10 +210,11 @@ The data for the input parameter of the InputFFor profile pictures of users, channels, supergroups and groups, since in most occasions they are encountered as simple fileLocationToBeDeprecated constructors without an associated photo, inputPeerPhotoFileLocation has to be used:
+For profile pictures of users, channels, supergroups and groups, inputPeerPhotoFileLocation has to be used:
peer
is the identifier of the peer whose photo we want to downloadvolume_id
and local_id
are extracted from the fileLocationToBeDeprecated of the desired quality (the logic for selecting the quality of profile pictures will be changed soon)big
is used to choose whether to download the full-resolution picture, or just the thumbnailphoto_id
is extracted from the chatPhoto or userProfilePhoto of the desired profile photoFor encrypted secret chat and telegram passport documents, respectively inputEncryptedFileLocation and inputSecureFileLocation have to be used, with parameters extracted from encryptedFile and secureFile (passport docs).
-For previews of sticker sets, inputStickerSetThumb is used (note: to download stickers and previews of stickers use the document method described above):
+For previews of sticker sets, inputStickerSetThumb is used (note: to download stickers and previews of stickers use the document method described above for documents):
stickerset
is set to the InputStickerSet constructor generated from the StickerSetvolume_id
and local_id
are extracted from the fileLocationToBeDeprecated from the thumb
PhotoSize of the StickerSet (the logic for downloading stickerset previews will be changed soon)stickerset
is set to the InputStickerSet constructor generated from stickerSetthumb_version
is copied from the same field in stickerSetFor old deprecated photos, if the client has cached some old fileLocations with the deprecated secret
identifier, inputFileLocation is used (this is mainly used for backwards compatiblity with bot API file IDs, all user clients must use the modern inputPhotoFileLocation file IDs):
For encrypted secret chat and telegram passport documents, respectively inputEncryptedFileLocation and inputSecureFileLocation have to be used, with parameters extracted from encryptedFile and secureFile (passport docs).
+For livestream chunks, inputGroupCallStream is used:
id
, file_reference
and access_hash
taken from the photo constructorcall
contains the related group call ID+access hash, taken from the groupCall constructor.time_ms
specifies the timestamp to fetchscale
specifies the duration of the video segment to fetch in milliseconds, by bitshifting 1000
to the right scale times: duration_ms := 1000 >> scale
video_channel
specifies the video channel to fetchvideo_quality
specifies the selected video quality (0 = lowest, 1 = medium, 2 = best)For old deprecated photos, if the client has cached some old fileLocations with the deprecated secret
identifier, inputFileLocation or inputPhotoLegacyFileLocation is used (this is mainly used for backwards compatiblity with bot API file IDs, all user clients must use the modern inputPhotoFileLocation file IDs):
file_reference
, access_hash
and id
(the last two only if present, in which case inputPhotoLegacyFileLocation is used instead of inputFileLocation) taken from the photo constructor.PINNED_*
New Constructors
Legacy photo file location
+DEPRECATED legacy photo file location