Update content of files

This commit is contained in:
GitHub Action 2023-04-07 17:53:41 +00:00
parent 1877f39a18
commit 8843510d1d
6 changed files with 20 additions and 18 deletions

View file

@ -141,9 +141,15 @@ The SHA256 hash of the file is computed, and it is passed along with the file's
<a href='/constructor/inputFile'>inputFile</a>#f52ff27f id:<a href='/type/long'>long</a> parts:<a href='/type/int'>int</a> name:<a href='/type/string'>string</a> md5_checksum:<a href='/type/string'>string</a> = <a href='/type/InputFile'>InputFile</a>;
<a href='/constructor/videoSizeEmojiMarkup'>videoSizeEmojiMarkup</a>#f85c413c emoji_id:<a href='/type/long'>long</a> background_colors:<a href='/type/Vector%20t'>Vector</a>&lt;<a href='/type/int'>int</a>&gt; = <a href='/type/VideoSize'>VideoSize</a>;
<a href='/constructor/videoSizeStickerMarkup'>videoSizeStickerMarkup</a>#da082fe stickerset:<a href='/type/InputStickerSet'>InputStickerSet</a> sticker_id:<a href='/type/long'>long</a> background_colors:<a href='/type/Vector%20t'>Vector</a>&lt;<a href='/type/int'>int</a>&gt; = <a href='/type/VideoSize'>VideoSize</a>;
<a href='/constructor/inputChatUploadedPhoto'>inputChatUploadedPhoto</a>#bdcdaec0 flags:<a href='/type/%23'>#</a> file:flags.0?<a href='/type/InputFile'>InputFile</a> video:flags.1?<a href='/type/InputFile'>InputFile</a> video_start_ts:flags.2?<a href='/type/double'>double</a> video_emoji_markup:flags.3?<a href='/type/VideoSize'>VideoSize</a> = <a href='/type/InputChatPhoto'>InputChatPhoto</a>;
<a href='/constructor/inputChatPhoto'>inputChatPhoto</a>#8953ad37 id:<a href='/type/InputPhoto'>InputPhoto</a> = <a href='/type/InputChatPhoto'>InputChatPhoto</a>;
<a href='/constructor/emojiListNotModified'>emojiListNotModified</a>#481eadfa = <a href='/type/EmojiList'>EmojiList</a>;
<a href='/constructor/emojiList'>emojiList</a>#7a1e11d1 hash:<a href='/type/long'>long</a> document_id:<a href='/type/Vector%20t'>Vector</a>&lt;<a href='/type/long'>long</a>&gt; = <a href='/type/EmojiList'>EmojiList</a>;
---functions---
<a href='/method/photos.updateProfilePhoto'>photos.updateProfilePhoto</a>#1c3d5956 flags:<a href='/type/%23'>#</a> fallback:flags.0?<a href='/constructor/true'>true</a> id:<a href='/type/InputPhoto'>InputPhoto</a> = <a href='/type/photos.Photo'>photos.Photo</a>;
@ -151,7 +157,10 @@ The SHA256 hash of the file is computed, and it is passed along with the file's
<a href='/method/messages.editChatPhoto'>messages.editChatPhoto</a>#35ddd674 chat_id:<a href='/type/long'>long</a> photo:<a href='/type/InputChatPhoto'>InputChatPhoto</a> = <a href='/type/Updates'>Updates</a>;
<a href='/method/channels.editPhoto'>channels.editPhoto</a>#f12e57c9 channel:<a href='/type/InputChannel'>InputChannel</a> photo:<a href='/type/InputChatPhoto'>InputChatPhoto</a> = <a href='/type/Updates'>Updates</a>;</code></pre>
<a href='/method/channels.editPhoto'>channels.editPhoto</a>#f12e57c9 channel:<a href='/type/InputChannel'>InputChannel</a> photo:<a href='/type/InputChatPhoto'>InputChatPhoto</a> = <a href='/type/Updates'>Updates</a>;
<a href='/method/account.getDefaultProfilePhotoEmojis'>account.getDefaultProfilePhotoEmojis</a>#e2750328 hash:<a href='/type/long'>long</a> = <a href='/type/EmojiList'>EmojiList</a>;
<a href='/method/account.getDefaultGroupPhotoEmojis'>account.getDefaultGroupPhotoEmojis</a>#915860ae hash:<a href='/type/long'>long</a> = <a href='/type/EmojiList'>EmojiList</a>;</code></pre>
<p>User profile pictures can be uploaded using the <a href="/method/photos.updateProfilePhoto">photos.uploadProfilePhoto</a> method: the actual profile picture has to be <a href="#uploading-files">uploaded as for normal files</a>.<br>
<a href="/method/photos.updateProfilePhoto">photos.uploadProfilePhoto</a> can also be used to reupload previously uploaded profile pictures. </p>
<h4><a class="anchor" href="#animated-profile-pictures" id="animated-profile-pictures" name="animated-profile-pictures"><i class="anchor-icon"></i></a>Animated profile pictures</h4>
@ -160,17 +169,6 @@ The <code>video_start_ts</code> is a floating point UNIX timestamp in seconds, i
<p><a href="/api/channel">Chat, channel and supergroup</a> profile photos and videos can be uploaded using <a href="/method/messages.editChatPhoto">messages.editChatPhoto</a> (<a href="/api/channel#basic-groups">basic groups</a>) or <a href="/method/channels.editPhoto">channels.editPhoto</a> (<a href="/api/channel">channels, supergroups</a>).<br>
Use the <a href="/constructor/inputChatPhoto">inputChatPhoto</a> to reuse previously uploaded profile pictures. </p>
<h4><a class="anchor" href="#sticker-profile-pictures" id="sticker-profile-pictures" name="sticker-profile-pictures"><i class="anchor-icon"></i></a>Sticker profile pictures</h4>
<p>Schema:</p>
<pre><code><a href='/constructor/videoSizeEmojiMarkup'>videoSizeEmojiMarkup</a>#f85c413c emoji_id:<a href='/type/long'>long</a> background_colors:<a href='/type/Vector%20t'>Vector</a>&lt;<a href='/type/int'>int</a>&gt; = <a href='/type/VideoSize'>VideoSize</a>;
<a href='/constructor/videoSizeStickerMarkup'>videoSizeStickerMarkup</a>#da082fe stickerset:<a href='/type/InputStickerSet'>InputStickerSet</a> sticker_id:<a href='/type/long'>long</a> background_colors:<a href='/type/Vector%20t'>Vector</a>&lt;<a href='/type/int'>int</a>&gt; = <a href='/type/VideoSize'>VideoSize</a>;
<a href='/constructor/emojiListNotModified'>emojiListNotModified</a>#481eadfa = <a href='/type/EmojiList'>EmojiList</a>;
<a href='/constructor/emojiList'>emojiList</a>#7a1e11d1 hash:<a href='/type/long'>long</a> document_id:<a href='/type/Vector%20t'>Vector</a>&lt;<a href='/type/long'>long</a>&gt; = <a href='/type/EmojiList'>EmojiList</a>;
---functions---
<a href='/method/account.getDefaultProfilePhotoEmojis'>account.getDefaultProfilePhotoEmojis</a>#e2750328 hash:<a href='/type/long'>long</a> = <a href='/type/EmojiList'>EmojiList</a>;
<a href='/method/account.getDefaultGroupPhotoEmojis'>account.getDefaultGroupPhotoEmojis</a>#915860ae hash:<a href='/type/long'>long</a> = <a href='/type/EmojiList'>EmojiList</a>;</code></pre>
<p><a href="/api/stickers">Sticker</a> and <a href="/api/custom-emoji">custom emoji sticker</a>-based profile pictures are also supported, by populating the <code>video_emoji_markup</code> flag with either a <a href="/constructor/videoSizeStickerMarkup">videoSizeStickerMarkup</a> or a <a href="/constructor/videoSizeEmojiMarkup">videoSizeEmojiMarkup</a> constructor. </p>
<p>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 <code>background_colors</code>, 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 <a href="/api/wallpapers#fill-types">fill wallpapers</a> are generated. The rotation angle for gradient backgrounds is 0.<br>
If animated or video stickers/custom emojis are used, the <code>video_start_ts</code> flag can contain a floating point UNIX timestamp in seconds, indicating the frame of the profile picture that should be used as static preview. </p>

View file

@ -322,6 +322,7 @@
<p>Telegram offers detailed channel statistics for channels and supergroups.</p>
<h4><a class="anchor" href="#discussion-groups" id="discussion-groups" name="discussion-groups"><i class="anchor-icon"></i></a><a href="/api/discussion">Discussion groups</a></h4>
<p>Groups can be associated to a channel as a discussion group, to allow users to discuss about posts.</p>
<h4><a class="anchor" href="#translation" id="translation" name="translation"><i class="anchor-icon"></i></a><a href="/api/translation">Translation</a></h4>
<h4><a class="anchor" href="#admin-banned-default-rights" id="admin-banned-default-rights" name="admin-banned-default-rights"><i class="anchor-icon"></i></a><a href="/api/rights">Admin, banned, default rights</a></h4>
<p>How to handle admin permissions, granular bans and global permissions in channels, groups and supergroups.</p>
<h4><a class="anchor" href="#channels-supergroups-gigagroups-and-basic-groups" id="channels-supergroups-gigagroups-and-basic-groups" name="channels-supergroups-gigagroups-and-basic-groups"><i class="anchor-icon"></i></a><a href="/api/channel">Channels, supergroups, gigagroups and basic groups</a></h4>

View file

@ -173,6 +173,7 @@
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
<h4><a class="anchor" href="#scheduled-messages" id="scheduled-messages" name="scheduled-messages"><i class="anchor-icon"></i></a><a href="/api/scheduled-messages">Scheduled messages</a></h4>
<p>Telegram allows scheduling messages</p>
<h4><a class="anchor" href="#translation" id="translation" name="translation"><i class="anchor-icon"></i></a><a href="/api/translation">Translation</a></h4>
<h4><a class="anchor" href="#pinned-messages" id="pinned-messages" name="pinned-messages"><i class="anchor-icon"></i></a><a href="/api/pin">Pinned messages</a></h4>
<p>Telegram allows pinning multiple messages on top of a specific chat.</p>
<h4><a class="anchor" href="#folders" id="folders" name="folders"><i class="anchor-icon"></i></a><a href="/api/folders">Folders</a></h4>

View file

@ -4,10 +4,10 @@
<meta charset="utf-8">
<title>messageActionBotAllowed</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="description" content="The domain name of the website on which the user has logged in. More about Telegram Login »">
<meta property="description" content="The user has given the bot permission to do something.">
<meta property="og:title" content="messageActionBotAllowed">
<meta property="og:image" content="">
<meta property="og:description" content="The domain name of the website on which the user has logged in. More about Telegram Login »">
<meta property="og:description" content="The user has given the bot permission to do something.">
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
@ -42,7 +42,7 @@
<div class="dev_page_bread_crumbs"><ul class="breadcrumb clearfix"><li><a href="/api" >API</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/messageActionBotAllowed" >messageActionBotAllowed</a></li></ul></div>
<h1 id="dev_page_title">messageActionBotAllowed</h1>
<div id="dev_page_content"><p>The domain name of the website on which the user has logged in. <a href="/widgets/login">More about Telegram Login »</a></p>
<div id="dev_page_content"><p>The user has given the bot permission to do something.</p>
<p><div class="clearfix">
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
<li class="dropdown">
@ -79,7 +79,7 @@
<tr>
<td><strong>domain</strong></td>
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.0?<a href="/type/string">string</a></td>
<td>The domain name of the website on which the user has logged in.</td>
<td>The domain name of the website on which the user has logged in. <a href="/widgets/login">More about Telegram Login »</a></td>
</tr>
<tr>
<td><strong>app</strong></td>

View file

@ -88,7 +88,9 @@
</table>
<h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3>
<p><a href="/type/Bool">Bool</a></p>
<h3><a class="anchor" href="#bots-can-use-this-method" id="bots-can-use-this-method" name="bots-can-use-this-method"><i class="anchor-icon"></i></a>Bots can use this method</h3></div>
<h3><a class="anchor" href="#bots-can-use-this-method" id="bots-can-use-this-method" name="bots-can-use-this-method"><i class="anchor-icon"></i></a>Bots can use this method</h3>
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
<h4><a class="anchor" href="#translation" id="translation" name="translation"><i class="anchor-icon"></i></a><a href="/api/translation">Translation</a></h4></div>
</div>

View file

@ -179,7 +179,7 @@
</tr>
<tr>
<td><a href="/constructor/messageActionBotAllowed">messageActionBotAllowed</a></td>
<td>The domain name of the website on which the user has logged in. <a href="/widgets/login">More about Telegram Login »</a></td>
<td>The user has given the bot permission to do something.</td>
</tr>
<tr>
<td><a href="/constructor/messageActionSecureValuesSentMe">messageActionSecureValuesSentMe</a></td>