From 65a6d1894d1db2e015a9ff85937e4403c2bbd6a6 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sat, 24 Sep 2022 17:03:03 +0000 Subject: [PATCH] Update content of files --- .../web/corefork.telegram.org/api/config.html | 6 ++-- .../api/emoji-status.html | 29 ++++++++++++++++--- .../web/corefork.telegram.org/api/layers.html | 1 + .../corefork.telegram.org/api/premium.html | 2 ++ .../corefork.telegram.org/api/reactions.html | 14 +++++++-- 5 files changed, 44 insertions(+), 8 deletions(-) diff --git a/data/web/corefork.telegram.org/api/config.html b/data/web/corefork.telegram.org/api/config.html index 9ce818d624..1d6e30efa1 100644 --- a/data/web/corefork.telegram.org/api/config.html +++ b/data/web/corefork.telegram.org/api/config.html @@ -236,17 +236,19 @@ While help.getConfig returns MTProto-specif "message_animated_emoji_max": 100, "premium_promo_order": [ "double_limits", + "animated_emoji", "more_upload", "faster_download", "voice_to_text", "no_ads", "unique_reactions", "premium_stickers", - "animated_emoji", "advanced_chat_management", "profile_badge", "animated_userpics", - "app_icons" + "app_icons", + "infinite_reactions", + "emoji_status" ], "premium_bot_username": "PremiumBot" } diff --git a/data/web/corefork.telegram.org/api/emoji-status.html b/data/web/corefork.telegram.org/api/emoji-status.html index af2d03ac4c..779fb40dce 100644 --- a/data/web/corefork.telegram.org/api/emoji-status.html +++ b/data/web/corefork.telegram.org/api/emoji-status.html @@ -45,6 +45,7 @@

Telegram allows users to set an emoticon or a custom emoji as status, to show next to their name in chats and profiles.

+

Setting an emoji status

emojiStatusEmpty#2de11aae = EmojiStatus;
 emojiStatus#929b619d document_id:long = EmojiStatus;
 emojiStatusUntil#fa30a8c7 document_id:long until:int = EmojiStatus;
@@ -52,19 +53,39 @@
 user#5d99adee flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true support:flags.23?true scam:flags.24?true apply_min_photo:flags.25?true fake:flags.26?true bot_attach_menu:flags.27?true premium:flags.28?true attach_menu_enabled:flags.29?true id:long access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?Vector<RestrictionReason> bot_inline_placeholder:flags.19?string lang_code:flags.22?string emoji_status:flags.30?EmojiStatus = User;
 
 updateUserEmojiStatus#28373599 user_id:long emoji_status:EmojiStatus = Update;
+
 updateRecentEmojiStatuses#30f443db = Update;
 
 account.emojiStatusesNotModified#d08ce645 = account.EmojiStatuses;
 account.emojiStatuses#90c467d1 hash:long statuses:Vector<EmojiStatus> = account.EmojiStatuses;
 
+---functions---
+
+account.updateEmojiStatus#fbd3de6b emoji_status:EmojiStatus = Bool;
+account.getRecentEmojiStatuses#0f578105 hash:long = account.EmojiStatuses;
+account.clearRecentEmojiStatuses#18201aae = Bool;
+

Use account.updateEmojiStatus to change the status emoji of your profile.

+ +

The newly set EmojiStatus constructor will be contained in the emoji_status field of the user constructor, and other users will receive an updateUserEmojiStatus.

+

Other logged-in clients will also receive an updateRecentEmojiStatuses update, indicating that the recent status emoji list has changed.

+

Recently used emoji statuses can be fetched using account.getRecentEmojiStatuses, and the list can be cleared using account.clearRecentEmojiStatuses.

+

Featured emoji status stickersets

+
emojiStatus#929b619d document_id:long = EmojiStatus;
+
+account.emojiStatusesNotModified#d08ce645 = account.EmojiStatuses;
+account.emojiStatuses#90c467d1 hash:long statuses:Vector<EmojiStatus> = account.EmojiStatuses;
+
 inputStickerSetEmojiDefaultStatuses#29d0f5ee = InputStickerSet;
 
 ---functions---
 
-account.updateEmojiStatus#fbd3de6b emoji_status:EmojiStatus = Bool;
-account.getDefaultEmojiStatuses#d6753386 hash:long = account.EmojiStatuses;
-account.getRecentEmojiStatuses#0f578105 hash:long = account.EmojiStatuses;
-account.clearRecentEmojiStatuses#18201aae = Bool;
+account.getDefaultEmojiStatuses#d6753386 hash:long = account.EmojiStatuses; +

A set of standard statuses can be fetched by passing inputStickerSetEmojiDefaultStatuses to messages.getStickerSet, as specified in the stickerset documentation ยป.

+

account.getDefaultEmojiStatuses can also be used to get a list of featured emoji statuses, from multiple featured custom emoji stickersets.

diff --git a/data/web/corefork.telegram.org/api/layers.html b/data/web/corefork.telegram.org/api/layers.html index 12e9ca2d2f..0129511721 100644 --- a/data/web/corefork.telegram.org/api/layers.html +++ b/data/web/corefork.telegram.org/api/layers.html @@ -46,6 +46,7 @@

Below you will find information on schema changes. For more details on the use of layers, see Invoking API methods.

Layer 145

+

Custom emoji statuses

Schema changes

New Methods

The help.premiumPromo constructor returned by help.getPremiumPromo also contains the following fields: