Update content of files

This commit is contained in:
GitHub Action 2023-04-04 16:48:18 +00:00
parent e8081d6d22
commit ebe56d653e
12 changed files with 20 additions and 49 deletions

View file

@ -55,7 +55,8 @@
<a href='/method/messages.getCustomEmojiDocuments'>messages.getCustomEmojiDocuments</a>#d9ab0f54 document_id:<a href='/type/Vector%20t'>Vector</a>&lt;<a href='/type/long'>long</a>&gt; = <a href='/type/Vector%20t'>Vector</a>&lt;<a href='/type/Document'>Document</a>&gt;;</code></pre>
<p>Custom emojis are a special kind of <a href="/api/entities">entity »</a>, containing just a <code>document_id</code>, which can be passed to <a href="/method/messages.getCustomEmojiDocuments">messages.getCustomEmojiDocuments</a> to fetch the <a href="/api/stickers">static, animated or video sticker emoji</a> that should be displayed to the user as described in the <a href="/api/stickers">stickers documentation</a>. </p>
<p>Custom emoji documents will contain <a href="/constructor/documentAttributeCustomEmoji">documentAttributeCustomEmoji</a> attribute instead of a <a href="/constructor/documentAttributeSticker">documentAttributeSticker</a>, containing information on the associated emoji (<code>alt</code>), whether the emoji can be used by non-premium users (<code>free</code>) and the associated <code>stickerset</code>.</p>
<p>Custom emoji documents will contain <a href="/constructor/documentAttributeCustomEmoji">documentAttributeCustomEmoji</a> attribute instead of a <a href="/constructor/documentAttributeSticker">documentAttributeSticker</a>, containing information on the associated emoji (<code>alt</code>), whether the emoji can be used by non-premium users (<code>free</code>) and the associated <code>stickerset</code>.<br>
If the <a href="/constructor/documentAttributeCustomEmoji">documentAttributeCustomEmoji</a>.<code>text_color</code> flag is set, the color of this TGS custom emoji should be changed to the text color when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context.</p>
<p>Note that when sending messages with attached custom emojis, the <a href="/constructor/messageEntityCustomEmoji">messageEntityCustomEmoji</a> <a href="/api/entities">entity »</a> must wrap exactly one regular emoji (the one contained in <a href="/constructor/documentAttributeCustomEmoji">documentAttributeCustomEmoji</a>.<code>alt</code>) in the related text, otherwise the server will ignore it. </p>
<p>Like stickers, custom emojis are organized in <a href="/api/stickers#stickersets">stickersets</a>: see the <a href="/api/stickers">stickers documentation »</a> for more info on how to work with them.</p>
<p>To send a message with one or more custom emojis, create and attach <a href="/constructor/messageEntityCustomEmoji">messageEntityCustomEmoji</a> <a href="/api/entities">entities »</a> to a message.<br>

View file

@ -261,7 +261,7 @@
<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> - </li>
<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/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>
@ -336,7 +336,6 @@
<h5><a class="anchor" href="#changed-methods" id="changed-methods" name="changed-methods"><i class="anchor-icon"></i></a>Changed Methods</h5>
<ul>
<li>Added <strong>flags</strong>, <strong>ttl_period</strong> parameters in <a href="/method/messages.createChat">messages.createChat</a></li>
<li>Removed <strong>fallback</strong> parameter in <a href="/method/photos.uploadProfilePhoto">photos.uploadProfilePhoto</a></li>
<li>Added <strong>forum</strong>, <strong>ttl_period</strong> parameters in <a href="/method/channels.createChannel">channels.createChannel</a></li>
<li>Added <strong>hidden</strong> parameter in <a href="/method/channels.editForumTopic">channels.editForumTopic</a></li>
</ul>
@ -367,7 +366,6 @@
<a href="/constructor/channelAdminLogEventActionToggleAntiSpam">channelAdminLogEventActionToggleAntiSpam</a>#64f36dfc new_value:<a href="/type/Bool">Bool</a> = <a href="/type/ChannelAdminLogEventAction">ChannelAdminLogEventAction</a>;<br>
---functions---<br>
<a href="/method/messages.createChat">messages.createChat</a>#0034a818 flags:<a href="/type/%23">#</a> users:<a href="/type/Vector%20t">Vector</a>&lt;<a href="/type/InputUser">InputUser</a>&gt; title:<a href="/type/string">string</a> ttl_period:flags.0?<a href="/type/int">int</a> = <a href="/type/Updates">Updates</a>;<br>
<a href="/method/photos.uploadProfilePhoto">photos.uploadProfilePhoto</a>#89f30f69 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> = <a href="/type/photos.Photo">photos.Photo</a>;<br>
<a href="/method/channels.createChannel">channels.createChannel</a>#91006707 flags:<a href="/type/%23">#</a> broadcast:flags.0?<a href="/constructor/true">true</a> megagroup:flags.1?<a href="/constructor/true">true</a> for_import:flags.3?<a href="/constructor/true">true</a> forum:flags.5?<a href="/constructor/true">true</a> title:<a href="/type/string">string</a> about:<a href="/type/string">string</a> geo_point:flags.2?<a href="/type/InputGeoPoint">InputGeoPoint</a> address:flags.2?<a href="/type/string">string</a> ttl_period:flags.4?<a href="/type/int">int</a> = <a href="/type/Updates">Updates</a>;
<a href="/method/channels.editForumTopic">channels.editForumTopic</a>#f4dfa185 flags:<a href="/type/%23">#</a> channel:<a href="/type/InputChannel">InputChannel</a> topic_id:<a href="/type/int">int</a> title:flags.0?<a href="/type/string">string</a> icon_emoji_id:flags.1?<a href="/type/long">long</a> closed:flags.2?<a href="/type/Bool">Bool</a> hidden:flags.3?<a href="/type/Bool">Bool</a> = <a href="/type/Updates">Updates</a>;
<a href="/method/channels.toggleAntiSpam">channels.toggleAntiSpam</a>#68f3e4eb channel:<a href="/type/InputChannel">InputChannel</a> enabled:<a href="/type/Bool">Bool</a> = <a href="/type/Updates">Updates</a>;
@ -534,10 +532,6 @@
<ul>
<li>Added <a href="/method/auth.importWebTokenAuthorization">auth.importWebTokenAuthorization</a> - </li>
</ul>
<h5><a class="anchor" href="#changed-methods" id="changed-methods" name="changed-methods"><i class="anchor-icon"></i></a>Changed Methods</h5>
<ul>
<li>Added <strong>fallback</strong> parameter in <a href="/method/photos.uploadProfilePhoto">photos.uploadProfilePhoto</a></li>
</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/stickerKeyword">stickerKeyword</a> - Keywords for a certain sticker</li>
@ -552,7 +546,6 @@
<a href="/constructor/stickerSetFullCovered">stickerSetFullCovered</a>#40d13c0e set:<a href="/type/StickerSet">StickerSet</a> packs:<a href="/type/Vector%20t">Vector</a>&lt;<a href="/type/StickerPack">StickerPack</a>&gt; keywords:<a href="/type/Vector%20t">Vector</a>&lt;<a href="/type/StickerKeyword">StickerKeyword</a>&gt; documents:<a href="/type/Vector%20t">Vector</a>&lt;<a href="/type/Document">Document</a>&gt; = <a href="/type/StickerSetCovered">StickerSetCovered</a>;
<a href="/constructor/stickerKeyword">stickerKeyword</a>#fcfeb29c document_id:<a href="/type/long">long</a> keyword:<a href="/type/Vector%20t">Vector</a>&lt;<a href="/type/string">string</a>&gt; = <a href="/type/StickerKeyword">StickerKeyword</a>;<br>
---functions---<br>
<a href="/method/photos.uploadProfilePhoto">photos.uploadProfilePhoto</a>#89f30f69 flags:<a href="/type/%23">#</a> fallback:flags.3?<a href="/constructor/true">true</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> = <a href="/type/photos.Photo">photos.Photo</a>;<br>
<a href="/method/auth.importWebTokenAuthorization">auth.importWebTokenAuthorization</a>#2db873a9 api_id:<a href="/type/int">int</a> api_hash:<a href="/type/string">string</a> web_auth_token:<a href="/type/string">string</a> = <a href="/type/auth.Authorization">auth.Authorization</a>;<br></code></pre></div>
<h3><a class="anchor" href="#layer-146" id="layer-146" name="layer-146"><i class="anchor-icon"></i></a><a href="/schema?layer=146">Layer 146</a></h3>
<h4><a class="anchor" href="#schema-changes" id="schema-changes" name="schema-changes"><i class="anchor-icon"></i></a>Schema changes</h4>

View file

@ -79,7 +79,7 @@
<tr>
<td><strong>text_color</strong></td>
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.1?<a href="/constructor/true">true</a></td>
<td> </td>
<td>Whether the color of this TGS custom emoji should be changed to the text color when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context.</td>
</tr>
<tr>
<td><strong>alt</strong></td>

View file

@ -89,7 +89,7 @@
<tr>
<td><strong>keywords</strong></td>
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.1?<a href="/type/string">string</a></td>
<td>Set of keywords, separated by commas</td>
<td>Set of keywords, separated by commas (can't be provided for mask stickers)</td>
</tr>
</tbody>
</table>

View file

@ -79,7 +79,7 @@
<tr>
<td><strong>keywords</strong></td>
<td style="text-align: center;"><a href="/type/Vector%20t">Vector</a>&lt;<a href="/type/StickerKeyword">StickerKeyword</a>&gt;</td>
<td> </td>
<td>Keywords for some or every sticker in the stickerset.</td>
</tr>
<tr>
<td><strong>documents</strong></td>

View file

@ -80,7 +80,7 @@ Currently used only for <a href="/api/custom-emoji">custom emoji stickersets</a>
<tr>
<td><strong>keywords</strong></td>
<td style="text-align: center;"><a href="/type/Vector%20t">Vector</a>&lt;<a href="/type/StickerKeyword">StickerKeyword</a>&gt;</td>
<td> </td>
<td>Keywords for some or every sticker in the stickerset.</td>
</tr>
<tr>
<td><strong>documents</strong></td>

View file

@ -79,7 +79,7 @@
<tr>
<td><strong>top_msg_id</strong></td>
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.0?<a href="/type/int">int</a></td>
<td>ID of the <a href="/api/topic#forum-topics">forum topic</a> to which the draft is associated</td>
<td>ID of the <a href="/api/forum#forum-topics">forum topic</a> to which the draft is associated</td>
</tr>
<tr>
<td><strong>draft</strong></td>
@ -91,6 +91,8 @@
<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>
<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="#forums" id="forums" name="forums"><i class="anchor-icon"></i></a><a href="/api/forum">Forums</a></h4>
<p>Telegram allows creating forums with multiple distinct topics.</p>
<h4><a class="anchor" href="#message-drafts" id="message-drafts" name="message-drafts"><i class="anchor-icon"></i></a><a href="/api/drafts">Message drafts</a></h4>
<p>How to handle message drafts</p></div>

View file

@ -4,36 +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="Parameters
Name
Type
Description
flags
#
Flags, see TL conditional fields
suggest
flags.3?true
 
save
flags.4?true
 
user_id…">
<meta property="description" content="Upload a profile picture that will only be visible to a certain user, or suggest">
<meta property="og:title" content="photos.uploadContactProfilePhoto">
<meta property="og:image" content="">
<meta property="og:description" content="Parameters
Name
Type
Description
flags
#
Flags, see TL conditional fields
suggest
flags.3?true
 
save
flags.4?true
 
user_id…">
<meta property="og:description" content="Upload a profile picture that will only be visible to a certain user, or suggest">
<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">
@ -68,7 +42,8 @@ user_id…">
<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><div class="clearfix">
<div id="dev_page_content"><p>Upload a profile picture that will only be visible to a certain user, or suggest</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>

View file

@ -4,10 +4,10 @@
<meta charset="utf-8">
<title>stickers.changeSticker</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="description" content="Update the keywords, emojis or mask coordinates of a sticker">
<meta property="description" content="Update the keywords, emojis or mask coordinates of a sticker, bots only.">
<meta property="og:title" content="stickers.changeSticker">
<meta property="og:image" content="">
<meta property="og:description" content="Update the keywords, emojis or mask coordinates of a sticker">
<meta property="og:description" content="Update the keywords, emojis or mask coordinates of a sticker, bots only.">
<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">
@ -92,7 +92,7 @@
<tr>
<td><strong>keywords</strong></td>
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.2?<a href="/type/string">string</a></td>
<td>If set, updates the sticker keywords (separated by commas).</td>
<td>If set, updates the sticker keywords (separated by commas). Can't be provided for mask stickers.</td>
</tr>
</tbody>
</table>

View file

@ -97,7 +97,7 @@
<tr>
<td><strong>text_color</strong></td>
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.6?<a href="/constructor/true">true</a></td>
<td> </td>
<td>Whether the color of TGS custom emojis contained in this set should be changed to the text color when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context. For custom emoji stickersets only.</td>
</tr>
<tr>
<td><strong>user_id</strong></td>

View file

@ -2707,7 +2707,7 @@
</tr>
<tr>
<td><a href="/method/photos.uploadContactProfilePhoto">photos.uploadContactProfilePhoto</a></td>
<td> </td>
<td>Upload a profile picture that will only be visible to a certain user, or suggest</td>
</tr>
</tbody>
</table>

View file

@ -96,7 +96,7 @@
</tr>
<tr>
<td><a href="/method/photos.uploadContactProfilePhoto">photos.uploadContactProfilePhoto</a></td>
<td> </td>
<td>Upload a profile picture that will only be visible to a certain user, or suggest</td>
</tr>
</tbody>
</table></div>