From 8843510d1df2e8d3dc6b3449d4db5cc97f5860fb Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 7 Apr 2023 17:53:41 +0000 Subject: [PATCH] Update content of files --- data/web/corefork.telegram.org/api/files.html | 22 +++++++++---------- .../constructor/channelFull.html | 1 + .../constructor/chatFull.html | 1 + .../constructor/messageActionBotAllowed.html | 8 +++---- .../method/messages.togglePeerTranslations | 4 +++- .../type/MessageAction.html | 2 +- 6 files changed, 20 insertions(+), 18 deletions(-) diff --git a/data/web/corefork.telegram.org/api/files.html b/data/web/corefork.telegram.org/api/files.html index 8566d3e13a..7cb0e3eb0b 100644 --- a/data/web/corefork.telegram.org/api/files.html +++ b/data/web/corefork.telegram.org/api/files.html @@ -141,9 +141,15 @@ The SHA256 hash of the file is computed, and it is passed along with the file's inputFile#f52ff27f id:long parts:int name:string md5_checksum:string = InputFile; +videoSizeEmojiMarkup#f85c413c emoji_id:long background_colors:Vector<int> = VideoSize; +videoSizeStickerMarkup#da082fe stickerset:InputStickerSet sticker_id:long background_colors:Vector<int> = VideoSize; + inputChatUploadedPhoto#bdcdaec0 flags:# file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double video_emoji_markup:flags.3?VideoSize = InputChatPhoto; inputChatPhoto#8953ad37 id:InputPhoto = InputChatPhoto; +emojiListNotModified#481eadfa = EmojiList; +emojiList#7a1e11d1 hash:long document_id:Vector<long> = EmojiList; + ---functions--- photos.updateProfilePhoto#1c3d5956 flags:# fallback:flags.0?true id:InputPhoto = photos.Photo; @@ -151,7 +157,10 @@ The SHA256 hash of the file is computed, and it is passed along with the file's messages.editChatPhoto#35ddd674 chat_id:long photo:InputChatPhoto = Updates; -channels.editPhoto#f12e57c9 channel:InputChannel photo:InputChatPhoto = Updates; +channels.editPhoto#f12e57c9 channel:InputChannel photo:InputChatPhoto = Updates; + +account.getDefaultProfilePhotoEmojis#e2750328 hash:long = EmojiList; +account.getDefaultGroupPhotoEmojis#915860ae hash:long = EmojiList;

User profile pictures can be uploaded using the photos.uploadProfilePhoto method: the actual profile picture has to be uploaded as for normal files.
photos.uploadProfilePhoto can also be used to reupload previously uploaded profile pictures.

Animated profile pictures

@@ -160,17 +169,6 @@ The video_start_ts is a floating point UNIX timestamp in seconds, i

Chat, channel and supergroup profile photos and videos can be uploaded using messages.editChatPhoto (basic groups) or channels.editPhoto (channels, supergroups).
Use the inputChatPhoto to reuse previously uploaded profile pictures.

Sticker profile pictures

-

Schema:

-
videoSizeEmojiMarkup#f85c413c emoji_id:long background_colors:Vector<int> = VideoSize;
-videoSizeStickerMarkup#da082fe stickerset:InputStickerSet sticker_id:long background_colors:Vector<int> = VideoSize;
-
-emojiListNotModified#481eadfa = EmojiList;
-emojiList#7a1e11d1 hash:long document_id:Vector<long> = EmojiList;
-
----functions---
-
-account.getDefaultProfilePhotoEmojis#e2750328 hash:long = EmojiList;
-account.getDefaultGroupPhotoEmojis#915860ae hash:long = EmojiList;

Sticker and custom emoji sticker-based profile pictures are also supported, by populating the video_emoji_markup flag with either a videoSizeStickerMarkup or a videoSizeEmojiMarkup constructor.

The profile picture should be rendered by placing the sticker at the center of a square canvas, in such a way that it occupies at most 67% of it. The background of the canvas is generated from background_colors, which contains a vector of 1, 2, 3 or 4 RBG-24 colors used to generate a solid (1), gradient (2) or freeform gradient (3, 4) background, similar to how fill wallpapers are generated. The rotation angle for gradient backgrounds is 0.
If animated or video stickers/custom emojis are used, the video_start_ts flag can contain a floating point UNIX timestamp in seconds, indicating the frame of the profile picture that should be used as static preview.

diff --git a/data/web/corefork.telegram.org/constructor/channelFull.html b/data/web/corefork.telegram.org/constructor/channelFull.html index 5c3716e6c0..79ebe1cea7 100644 --- a/data/web/corefork.telegram.org/constructor/channelFull.html +++ b/data/web/corefork.telegram.org/constructor/channelFull.html @@ -322,6 +322,7 @@

Telegram offers detailed channel statistics for channels and supergroups.

Discussion groups

Groups can be associated to a channel as a discussion group, to allow users to discuss about posts.

+

Translation

Admin, banned, default rights

How to handle admin permissions, granular bans and global permissions in channels, groups and supergroups.

Channels, supergroups, gigagroups and basic groups

diff --git a/data/web/corefork.telegram.org/constructor/chatFull.html b/data/web/corefork.telegram.org/constructor/chatFull.html index 3328b6029c..12dce3775b 100644 --- a/data/web/corefork.telegram.org/constructor/chatFull.html +++ b/data/web/corefork.telegram.org/constructor/chatFull.html @@ -173,6 +173,7 @@

Related pages

Scheduled messages

Telegram allows scheduling messages

+

Translation

Pinned messages

Telegram allows pinning multiple messages on top of a specific chat.

Folders

diff --git a/data/web/corefork.telegram.org/constructor/messageActionBotAllowed.html b/data/web/corefork.telegram.org/constructor/messageActionBotAllowed.html index 8c0a6087d8..74ced85e16 100644 --- a/data/web/corefork.telegram.org/constructor/messageActionBotAllowed.html +++ b/data/web/corefork.telegram.org/constructor/messageActionBotAllowed.html @@ -4,10 +4,10 @@ messageActionBotAllowed - + - + @@ -42,7 +42,7 @@

messageActionBotAllowed

-

The domain name of the website on which the user has logged in. More about Telegram Login »

+

The user has given the bot permission to do something.

+

Bots can use this method

+

Related pages

+

Translation

diff --git a/data/web/corefork.telegram.org/type/MessageAction.html b/data/web/corefork.telegram.org/type/MessageAction.html index 5232ee7d63..4e651e7fe5 100644 --- a/data/web/corefork.telegram.org/type/MessageAction.html +++ b/data/web/corefork.telegram.org/type/MessageAction.html @@ -179,7 +179,7 @@ messageActionBotAllowed -The domain name of the website on which the user has logged in. More about Telegram Login » +The user has given the bot permission to do something. messageActionSecureValuesSentMe