Update content of files

This commit is contained in:
GitHub Action 2023-04-04 17:13:08 +00:00
parent 151dab46b5
commit 2cbf243e90
12 changed files with 61 additions and 85 deletions

View file

@ -257,11 +257,11 @@
<a href="/method/account.saveAutoSaveSettings">account.saveAutoSaveSettings</a>#d69b8361 flags:<a href="/type/%23">#</a> users:flags.0?<a href="/constructor/true">true</a> chats:flags.1?<a href="/constructor/true">true</a> broadcasts:flags.2?<a href="/constructor/true">true</a> peer:flags.3?<a href="/type/InputPeer">InputPeer</a> settings:<a href="/type/AutoSaveSettings">AutoSaveSettings</a> = <a href="/type/Bool">Bool</a>;
<a href="/method/account.deleteAutoSaveExceptions">account.deleteAutoSaveExceptions</a>#53bc0020 = <a href="/type/Bool">Bool</a>;<br></code></pre></div>
<h3><a class="anchor" href="#layer-151" id="layer-151" name="layer-151"><i class="anchor-icon"></i></a><a href="/schema?layer=151">Layer 151</a></h3>
<p>Spoiler media, contact-specific profile pictures, hidden supergroup participants.</p>
<p>Spoiler media, custom contact profile pictures, hidden supergroup participants.</p>
<h4><a class="anchor" href="#schema-changes" id="schema-changes" name="schema-changes"><i class="anchor-icon"></i></a>Schema changes</h4>
<h5><a class="anchor" href="#new-methods" id="new-methods" name="new-methods"><i class="anchor-icon"></i></a>New Methods</h5>
<ul>
<li>Added <a href="/method/photos.uploadContactProfilePhoto">photos.uploadContactProfilePhoto</a> - Upload a profile picture that will only be visible to a certain user, or suggest</li>
<li>Added <a href="/method/photos.uploadContactProfilePhoto">photos.uploadContactProfilePhoto</a> - Upload a custom profile picture for a contact, or suggest a new profile picture to a contact.</li>
<li>Added <a href="/method/channels.toggleParticipantsHidden">channels.toggleParticipantsHidden</a> - Hide or display the participants list in a supergroup</li>
</ul>
<h5><a class="anchor" href="#changed-methods" id="changed-methods" name="changed-methods"><i class="anchor-icon"></i></a>Changed Methods</h5>
@ -272,10 +272,10 @@
</ul>
<h5><a class="anchor" href="#new-constructors" id="new-constructors" name="new-constructors"><i class="anchor-icon"></i></a>New Constructors</h5>
<ul>
<li>Added <a href="/constructor/messageActionSuggestProfilePhoto">messageActionSuggestProfilePhoto</a> - </li>
<li>Added <a href="/constructor/messageActionSuggestProfilePhoto">messageActionSuggestProfilePhoto</a> - A new profile picture was suggested using <a href="/method/photos.uploadContactProfilePhoto">photos.uploadContactProfilePhoto</a>.</li>
<li>Added <a href="/constructor/messageActionAttachMenuBotAllowed">messageActionAttachMenuBotAllowed</a></li>
<li>Added <a href="/constructor/stickerSetNoCovered">stickerSetNoCovered</a> - </li>
<li>Added <a href="/constructor/updateUser">updateUser</a> - </li>
<li>Added <a href="/constructor/stickerSetNoCovered">stickerSetNoCovered</a> - Just the stickerset information, with no previews.</li>
<li>Added <a href="/constructor/updateUser">updateUser</a> - User information was updated, it must be refetched using <a href="/method/users.getFullUser">users.getFullUser</a>.</li>
</ul>
<h5><a class="anchor" href="#changed-constructors" id="changed-constructors" name="changed-constructors"><i class="anchor-icon"></i></a>Changed Constructors</h5>
<ul>

View file

@ -43,6 +43,7 @@
<h1 id="dev_page_title">inputChatUploadedPhoto</h1>
<div id="dev_page_content"><p>New photo to be set as group profile photo.</p>
<p>The <code>file</code>, <code>video</code> and <code>video_emoji_markup</code> flags are mutually exclusive.</p>
<p><div class="clearfix">
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
<li class="dropdown">
@ -84,12 +85,12 @@
<tr>
<td><strong>video_start_ts</strong></td>
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.2?<a href="/type/double">double</a></td>
<td>Timestamp that should be shown as static preview to the user (seconds)</td>
<td>Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if <code>video</code> or <code>video_emoji_markup</code> is set.</td>
</tr>
<tr>
<td><strong>video_emoji_markup</strong></td>
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.3?<a href="/type/VideoSize">VideoSize</a></td>
<td> </td>
<td>Animated sticker profile picture, must contain either a <a href="/constructor/videoSizeEmojiMarkup">videoSizeEmojiMarkup</a> or a <a href="/constructor/videoSizeStickerMarkup">videoSizeStickerMarkup</a> constructor.</td>
</tr>
</tbody>
</table>
@ -97,7 +98,11 @@
<p><a href="/type/InputChatPhoto">InputChatPhoto</a></p>
<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="#uploadsavefilepart" id="uploadsavefilepart" name="uploadsavefilepart"><i class="anchor-icon"></i></a><a href="/method/upload.saveFilePart">upload.saveFilePart</a></h4>
<p>Saves a part of file for further sending to one of the methods.</p></div>
<p>Saves a part of file for further sending to one of the methods.</p>
<h4><a class="anchor" href="#videosizeemojimarkup" id="videosizeemojimarkup" name="videosizeemojimarkup"><i class="anchor-icon"></i></a><a href="/constructor/videoSizeEmojiMarkup">videoSizeEmojiMarkup</a></h4>
<p>An <a href="/api/files#animated-profile-pictures">animated profile picture</a> based on a <a href="/api/custom-emoji">custom emoji sticker</a>.</p>
<h4><a class="anchor" href="#videosizestickermarkup" id="videosizestickermarkup" name="videosizestickermarkup"><i class="anchor-icon"></i></a><a href="/constructor/videoSizeStickerMarkup">videoSizeStickerMarkup</a></h4>
<p>An <a href="/api/files#animated-profile-pictures">animated profile picture</a> based on a <a href="/api/stickers">sticker</a>.</p></div>
</div>

View file

@ -4,26 +4,10 @@
<meta charset="utf-8">
<title>messageActionSuggestProfilePhoto</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="description" content="Parameters
Name
Type
Description
photo
Photo
 
Type
MessageAction">
<meta property="description" content="A new profile picture was suggested using photos.uploadContactProfilePhoto.">
<meta property="og:title" content="messageActionSuggestProfilePhoto">
<meta property="og:image" content="">
<meta property="og:description" content="Parameters
Name
Type
Description
photo
Photo
 
Type
MessageAction">
<meta property="og:description" content="A new profile picture was suggested using photos.uploadContactProfilePhoto.">
<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">
@ -58,7 +42,8 @@ MessageAction">
<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/messageActionSuggestProfilePhoto" >messageActionSuggestProfilePhoto</a></li></ul></div>
<h1 id="dev_page_title">messageActionSuggestProfilePhoto</h1>
<div id="dev_page_content"><p><div class="clearfix">
<div id="dev_page_content"><p>A new profile picture was suggested using <a href="/method/photos.uploadContactProfilePhoto">photos.uploadContactProfilePhoto</a>.</p>
<p><div class="clearfix">
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
<li class="dropdown">
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 155 <b class="caret"></b></a>
@ -84,12 +69,16 @@ MessageAction">
<tr>
<td><strong>photo</strong></td>
<td style="text-align: center;"><a href="/type/Photo">Photo</a></td>
<td> </td>
<td>The photo that the user suggested we set as profile picture.</td>
</tr>
</tbody>
</table>
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
<p><a href="/type/MessageAction">MessageAction</a></p></div>
<p><a href="/type/MessageAction">MessageAction</a></p>
<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="#photosuploadcontactprofilephoto" id="photosuploadcontactprofilephoto" name="photosuploadcontactprofilephoto"><i class="anchor-icon"></i></a><a href="/method/photos.uploadContactProfilePhoto">photos.uploadContactProfilePhoto</a></h4>
<p>Upload a custom profile picture for a contact, or suggest a new profile picture to a contact.</p>
<p>The <code>file</code>, <code>video</code> and <code>video_emoji_markup</code> flags are mutually exclusive.</p></div>
</div>

View file

@ -4,26 +4,10 @@
<meta charset="utf-8">
<title>stickerSetNoCovered</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="description" content="Parameters
Name
Type
Description
set
StickerSet
 
Type
StickerSetCovered">
<meta property="description" content="Just the stickerset information, with no previews.">
<meta property="og:title" content="stickerSetNoCovered">
<meta property="og:image" content="">
<meta property="og:description" content="Parameters
Name
Type
Description
set
StickerSet
 
Type
StickerSetCovered">
<meta property="og:description" content="Just the stickerset information, with no previews.">
<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">
@ -58,7 +42,8 @@ StickerSetCovered">
<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/stickerSetNoCovered" >stickerSetNoCovered</a></li></ul></div>
<h1 id="dev_page_title">stickerSetNoCovered</h1>
<div id="dev_page_content"><p><div class="clearfix">
<div id="dev_page_content"><p>Just the stickerset information, with no previews.</p>
<p><div class="clearfix">
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
<li class="dropdown">
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 155 <b class="caret"></b></a>
@ -84,7 +69,7 @@ StickerSetCovered">
<tr>
<td><strong>set</strong></td>
<td style="text-align: center;"><a href="/type/StickerSet">StickerSet</a></td>
<td> </td>
<td>Stickerset information.</td>
</tr>
</tbody>
</table>

View file

@ -4,26 +4,10 @@
<meta charset="utf-8">
<title>updateUser</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="description" content="Parameters
Name
Type
Description
user_id
long
 
Type
Update">
<meta property="description" content="User information was updated, it must be refetched using users.getFullUser.">
<meta property="og:title" content="updateUser">
<meta property="og:image" content="">
<meta property="og:description" content="Parameters
Name
Type
Description
user_id
long
 
Type
Update">
<meta property="og:description" content="User information was updated, it must be refetched using users.getFullUser.">
<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">
@ -58,7 +42,8 @@ Update">
<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/updateUser" >updateUser</a></li></ul></div>
<h1 id="dev_page_title">updateUser</h1>
<div id="dev_page_content"><p><div class="clearfix">
<div id="dev_page_content"><p>User information was updated, it must be refetched using <a href="/method/users.getFullUser">users.getFullUser</a>.</p>
<p><div class="clearfix">
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
<li class="dropdown">
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 155 <b class="caret"></b></a>
@ -84,12 +69,15 @@ Update">
<tr>
<td><strong>user_id</strong></td>
<td style="text-align: center;"><a href="/type/long">long</a></td>
<td> </td>
<td>User ID</td>
</tr>
</tbody>
</table>
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
<p><a href="/type/Update">Update</a></p></div>
<p><a href="/type/Update">Update</a></p>
<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="#usersgetfulluser" id="usersgetfulluser" name="usersgetfulluser"><i class="anchor-icon"></i></a><a href="/method/users.getFullUser">users.getFullUser</a></h4>
<p>Returns extended user info by ID.</p></div>
</div>

View file

@ -4,10 +4,10 @@
<meta charset="utf-8">
<title>photos.uploadContactProfilePhoto</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="description" content="Upload a profile picture that will only be visible to a certain user, or suggest">
<meta property="description" content="Upload a custom profile picture for a contact, or suggest a new profile picture to a contact.">
<meta property="og:title" content="photos.uploadContactProfilePhoto">
<meta property="og:image" content="">
<meta property="og:description" content="Upload a profile picture that will only be visible to a certain user, or suggest">
<meta property="og:description" content="Upload a custom profile picture for a contact, or suggest a new profile picture to a contact.">
<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,8 @@
<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="/methods" >All Methods</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/method/photos.uploadContactProfilePhoto" >photos.uploadContactProfilePhoto</a></li></ul></div>
<h1 id="dev_page_title">photos.uploadContactProfilePhoto</h1>
<div id="dev_page_content"><p>Upload a profile picture that will only be visible to a certain user, or suggest</p>
<div id="dev_page_content"><p>Upload a custom profile picture for a contact, or suggest a new profile picture to a contact.</p>
<p>The <code>file</code>, <code>video</code> and <code>video_emoji_markup</code> flags are mutually exclusive.</p>
<p><div class="clearfix">
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
<li class="dropdown">
@ -76,17 +77,17 @@
<tr>
<td><strong>suggest</strong></td>
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.3?<a href="/constructor/true">true</a></td>
<td> </td>
<td>If set, will send a <a href="/constructor/messageActionSuggestProfilePhoto">messageActionSuggestProfilePhoto</a> service message to <code>user_id</code>, suggesting them to use the specified profile picture; otherwise, will set a personal profile picture for the user (only visible to the current user).</td>
</tr>
<tr>
<td><strong>save</strong></td>
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.4?<a href="/constructor/true">true</a></td>
<td> </td>
<td>If set, removes a previously set personal profile picture (does not affect suggested profile pictures, to remove them simply deleted the <a href="/constructor/messageActionSuggestProfilePhoto">messageActionSuggestProfilePhoto</a> service message with <a href="/method/messages.deleteMessages">messages.deleteMessages</a>).</td>
</tr>
<tr>
<td><strong>user_id</strong></td>
<td style="text-align: center;"><a href="/type/InputUser">InputUser</a></td>
<td> </td>
<td>The contact</td>
</tr>
<tr>
<td><strong>file</strong></td>
@ -101,12 +102,12 @@
<tr>
<td><strong>video_start_ts</strong></td>
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.2?<a href="/type/double">double</a></td>
<td>Floating point UNIX timestamp in seconds, indicating the frame of the video that should be used as static preview.</td>
<td>Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if <code>video</code> or <code>video_emoji_markup</code> is set.</td>
</tr>
<tr>
<td><strong>video_emoji_markup</strong></td>
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.5?<a href="/type/VideoSize">VideoSize</a></td>
<td> </td>
<td>Animated sticker profile picture, must contain either a <a href="/constructor/videoSizeEmojiMarkup">videoSizeEmojiMarkup</a> or a <a href="/constructor/videoSizeStickerMarkup">videoSizeStickerMarkup</a> constructor.</td>
</tr>
</tbody>
</table>
@ -131,8 +132,16 @@
</table>
<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="#messageactionsuggestprofilephoto" id="messageactionsuggestprofilephoto" name="messageactionsuggestprofilephoto"><i class="anchor-icon"></i></a><a href="/constructor/messageActionSuggestProfilePhoto">messageActionSuggestProfilePhoto</a></h4>
<p>A new profile picture was suggested using <a href="/method/photos.uploadContactProfilePhoto">photos.uploadContactProfilePhoto</a>.</p>
<h4><a class="anchor" href="#messagesdeletemessages" id="messagesdeletemessages" name="messagesdeletemessages"><i class="anchor-icon"></i></a><a href="/method/messages.deleteMessages">messages.deleteMessages</a></h4>
<p>Deletes messages by their identifiers.</p>
<h4><a class="anchor" href="#uploading-and-downloading-files" id="uploading-and-downloading-files" name="uploading-and-downloading-files"><i class="anchor-icon"></i></a><a href="/api/files">Uploading and Downloading Files</a></h4>
<p>How to transfer large data batches correctly.</p></div>
<p>How to transfer large data batches correctly.</p>
<h4><a class="anchor" href="#videosizeemojimarkup" id="videosizeemojimarkup" name="videosizeemojimarkup"><i class="anchor-icon"></i></a><a href="/constructor/videoSizeEmojiMarkup">videoSizeEmojiMarkup</a></h4>
<p>An <a href="/api/files#animated-profile-pictures">animated profile picture</a> based on a <a href="/api/custom-emoji">custom emoji sticker</a>.</p>
<h4><a class="anchor" href="#videosizestickermarkup" id="videosizestickermarkup" name="videosizestickermarkup"><i class="anchor-icon"></i></a><a href="/constructor/videoSizeStickerMarkup">videoSizeStickerMarkup</a></h4>
<p>An <a href="/api/files#animated-profile-pictures">animated profile picture</a> based on a <a href="/api/stickers">sticker</a>.</p></div>
</div>

View file

@ -2707,7 +2707,7 @@
</tr>
<tr>
<td><a href="/method/photos.uploadContactProfilePhoto">photos.uploadContactProfilePhoto</a></td>
<td>Upload a profile picture that will only be visible to a certain user, or suggest</td>
<td>Upload a custom profile picture for a contact, or suggest a new profile picture to a contact.<br><br>The <code>file</code>, <code>video</code> and <code>video_emoji_markup</code> flags are mutually exclusive.</td>
</tr>
</tbody>
</table>

View file

@ -73,7 +73,7 @@
</tr>
<tr>
<td><a href="/constructor/inputChatUploadedPhoto">inputChatUploadedPhoto</a></td>
<td>New photo to be set as group profile photo.</td>
<td>New photo to be set as group profile photo.<br><br>The <code>file</code>, <code>video</code> and <code>video_emoji_markup</code> flags are mutually exclusive.</td>
</tr>
<tr>
<td><a href="/constructor/inputChatPhoto">inputChatPhoto</a></td>

View file

@ -243,7 +243,7 @@
</tr>
<tr>
<td><a href="/constructor/messageActionSuggestProfilePhoto">messageActionSuggestProfilePhoto</a></td>
<td> </td>
<td>A new profile picture was suggested using <a href="/method/photos.uploadContactProfilePhoto">photos.uploadContactProfilePhoto</a>.</td>
</tr>
<tr>
<td><a href="/constructor/messageActionRequestedPeer">messageActionRequestedPeer</a></td>

View file

@ -82,7 +82,7 @@
</tr>
<tr>
<td><a href="/constructor/stickerSetNoCovered">stickerSetNoCovered</a></td>
<td> </td>
<td>Just the stickerset information, with no previews.</td>
</tr>
</tbody>
</table></div>

View file

@ -609,7 +609,7 @@
</tr>
<tr>
<td><a href="/constructor/updateUser">updateUser</a></td>
<td> </td>
<td>User information was updated, it must be refetched using <a href="/method/users.getFullUser">users.getFullUser</a>.</td>
</tr>
<tr>
<td><a href="/constructor/updateAutoSaveSettings">updateAutoSaveSettings</a></td>

View file

@ -96,7 +96,7 @@
</tr>
<tr>
<td><a href="/method/photos.uploadContactProfilePhoto">photos.uploadContactProfilePhoto</a></td>
<td>Upload a profile picture that will only be visible to a certain user, or suggest</td>
<td>Upload a custom profile picture for a contact, or suggest a new profile picture to a contact.<br><br>The <code>file</code>, <code>video</code> and <code>video_emoji_markup</code> flags are mutually exclusive.</td>
</tr>
</tbody>
</table></div>