From 3b233341db56c43f93601726196a61f4ce005e1c Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 7 Apr 2023 17:27:38 +0000 Subject: [PATCH] Update content of files --- .../api/custom-emoji.html | 17 +++++++- .../web/corefork.telegram.org/api/layers.html | 16 ++++---- .../corefork.telegram.org/api/stickers.html | 12 ++++-- .../constructor/emojiListNotModified.html | 18 ++++----- .../messages.getEmojiProfilePhotoGroups | 36 ++++++----------- data/web/corefork.telegram.org/methods.html | 6 +-- .../corefork.telegram.org/type/EmojiList.html | 36 +++++------------ .../type/messages.EmojiGroups | 40 ++++++------------- 8 files changed, 79 insertions(+), 102 deletions(-) diff --git a/data/web/corefork.telegram.org/api/custom-emoji.html b/data/web/corefork.telegram.org/api/custom-emoji.html index 52871aff0d..c47a9397d3 100644 --- a/data/web/corefork.telegram.org/api/custom-emoji.html +++ b/data/web/corefork.telegram.org/api/custom-emoji.html @@ -60,7 +60,22 @@ If the documentAttributeCust

Note that when sending messages with attached custom emojis, the messageEntityCustomEmoji entity » must wrap exactly one regular emoji (the one contained in documentAttributeCustomEmoji.alt) in the related text, otherwise the server will ignore it.

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

To send a message with one or more custom emojis, create and attach messageEntityCustomEmoji entities » to a message.
-Note that you can attach a maximum of message_animated_emoji_max custom emojis, as specified by the appConfig field ».

+Note that you can attach a maximum of message_animated_emoji_max custom emojis, as specified by the appConfig field ».

+

Emoji categories

+
messages.emojiGroupsNotModified#6fb4ad87 = messages.EmojiGroups;
+messages.emojiGroups#881fb94b hash:int groups:Vector<EmojiGroup> = messages.EmojiGroups;
+
+emojiGroup#7a9abda9 title:string icon_emoji_id:long emoticons:Vector<string> = EmojiGroup;
+
+---functions---
+
+messages.getEmojiGroups#7488ce5b hash:int = messages.EmojiGroups;
+messages.getEmojiStatusGroups#2ecd56cd hash:int = messages.EmojiGroups;
+messages.getEmojiProfilePhotoGroups#21a548f3 hash:int = messages.EmojiGroups;
+

messages.getEmojiGroups, messages.getEmojiStatusGroups and messages.getEmojiProfilePhotoGroups may be used to fetch a categorized list of UTF-8 emojis.

+

Each category is described by a title (i.e. "Animals", "Faces", "Flags"), is represented by a single custom emoji (icon_emoji_id), and contains a list of UTF-8 emojis (emoticons).
+These categories should be displayed in the custom emoji search bar, and when the user clicks on them, the client should display all custom emojis matching the emoticons for that category.

+

messages.getEmojiStatusGroups should be used when choosing a custom emoji to set as emoji status, messages.getEmojiProfilePhotoGroups when choosing a custom emoji to set as profile picture, messages.getEmojiGroups in all other cases when choosing a custom emoji.

diff --git a/data/web/corefork.telegram.org/api/layers.html b/data/web/corefork.telegram.org/api/layers.html index 6969d313e9..0fd1d8bf26 100644 --- a/data/web/corefork.telegram.org/api/layers.html +++ b/data/web/corefork.telegram.org/api/layers.html @@ -157,9 +157,9 @@
  • Added account.getDefaultProfilePhotoEmojis - Get a set of suggested custom emoji stickers that can be used as profile picture
  • Added account.getDefaultGroupPhotoEmojis - Get a set of suggested custom emoji stickers that can be used as group picture
  • Added auth.requestFirebaseSms -
  • -
  • Added messages.getEmojiGroups -
  • -
  • Added messages.getEmojiStatusGroups -
  • -
  • Added messages.getEmojiProfilePhotoGroups -
  • +
  • Added messages.getEmojiGroups - Represents a list of emoji categories, to be used when selecting custom emojis.
  • +
  • Added messages.getEmojiStatusGroups - Represents a list of emoji categories, to be used when selecting custom emojis to set as custom emoji status.
  • +
  • Added messages.getEmojiProfilePhotoGroups - Represents a list of emoji categories, to be used when selecting custom emojis to set as profile picture.
  • Added messages.searchCustomEmoji - Look for custom emojis associated to a UTF8 emoji
  • Added messages.togglePeerTranslations - Toggle real-time chat translation for a certain chat
  • Added account.getAutoSaveSettings - Get autosave settings
  • @@ -180,12 +180,12 @@
  • Added requestPeerTypeChat - Choose a chat or supergroup
  • Added requestPeerTypeBroadcast - Choose a channel
  • Added keyboardButtonRequestPeer - Prompts the user to select and share a peer with the bot using messages.sendBotRequestedPeer
  • -
  • Added emojiListNotModified -
  • -
  • Added emojiList -
  • +
  • Added emojiListNotModified - The list of custom emojis hasn't changed.
  • +
  • Added emojiList - Represents a list of custom emojis.
  • Added auth.sentCodeTypeFirebaseSms -
  • -
  • Added emojiGroup -
  • -
  • Added messages.emojiGroupsNotModified -
  • -
  • Added messages.emojiGroups -
  • +
  • Added emojiGroup - Represents an emoji category.
  • +
  • Added messages.emojiGroupsNotModified - The list of emoji categories hasn't changed.
  • +
  • Added messages.emojiGroups - Represents a list of emoji categories.
  • Added videoSizeEmojiMarkup - An animated profile picture based on a custom emoji sticker.
  • Added videoSizeStickerMarkup - An animated profile picture based on a sticker.
  • Added textWithEntities - Styled text with message entities
  • diff --git a/data/web/corefork.telegram.org/api/stickers.html b/data/web/corefork.telegram.org/api/stickers.html index 639863459d..6c9a07615a 100644 --- a/data/web/corefork.telegram.org/api/stickers.html +++ b/data/web/corefork.telegram.org/api/stickers.html @@ -345,13 +345,17 @@ Note that for custom emojis, the flag should onl
    messages.stickersNotModified#f1749a22 = messages.Stickers;
     messages.stickers#30a6ec7e hash:long stickers:Vector<Document> = messages.Stickers;
     
    +emojiListNotModified#481eadfa = EmojiList;
    +emojiList#7a1e11d1 hash:long document_id:Vector<long> = EmojiList;
    +
     ---functions---
     
    -messages.getStickers#d5a5d3a1 emoticon:string hash:long = messages.Stickers;
    +messages.getStickers#d5a5d3a1 emoticon:string hash:long = messages.Stickers; +messages.searchCustomEmoji#2c11c0d7 emoticon:string hash:long = EmojiList;

    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 appConfig parameter 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.

    +

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

    +

    Otherwise, the following local logic should be used.