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.
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.
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.
Telegram offers detailed channel statistics for channels and supergroups.
Groups can be associated to a channel as a discussion group, to allow users to discuss about posts.
+How to handle admin permissions, granular bans and global permissions in channels, groups and supergroups.
Telegram allows scheduling messages
+Telegram allows pinning multiple messages on top of a specific chat.
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.