Update content of files

This commit is contained in:
GitHub Action 2022-03-04 20:53:58 +00:00
parent 9a2c112778
commit e22e1505d2
9 changed files with 41 additions and 28 deletions

View file

@ -90,7 +90,7 @@ While <a href="/method/help.getConfig">help.getConfig</a> returns MTProto-specif
<li><code>round_video_encoding</code> - Contains a set of recommended codec parameters for round videos. </li>
<li><code>chat_read_mark_size_threshold</code> - Per-user read receipts, fetchable using <a href="/method/messages.getMessageReadParticipants">messages.getMessageReadParticipants</a> will be available in groups with less than <code>chat_read_mark_size_threshold</code> participants. (int)</li>
<li><code>chat_read_mark_expire_period</code> - To protect user privacy, read receipts are only stored for <code>chat_read_mark_expire_period</code> seconds after the message was sent. (int)</li>
<li><code>groupcall_video_participants_max</code> - Maximum number of participants that can broadcast video in a group call (int)</li>
<li><code>groupcall_video_participants_max</code> - Maximum number of participants in a group call (livestreams allow ∞ participants) (int)</li>
<li><code>reactions_default</code> - Default emoji reaction to use in the quick reaction menu, this value can be changed using <a href="/method/messages.setDefaultReaction">messages.setDefaultReaction</a> (string)</li>
<li><code>reactions_uniq_max</code> -</li>
<li><code>export_urls</code> - </li>

View file

@ -69,6 +69,17 @@ Participants of the chat will receive an <a href="/constructor/updateMessageReac
<p>In groups, <a href="/method/messages.getMessageReactionsList">messages.getMessageReactionsList</a> can be used to fetch the reaction list, along with the sender of each reaction. </p>
<p><a href="/method/messages.getUnreadReactions">messages.getUnreadReactions</a> is used to fetch messages with unread reactions.<br>
Use <a href="/method/messages.readReactions">messages.readReactions</a> to mark all reactions as read in a certain chat.</p>
<h2><a class="anchor" href="#fetch-globally-available-reactions" id="fetch-globally-available-reactions" name="fetch-globally-available-reactions"><i class="anchor-icon"></i></a>Fetch globally available reactions</h2>
<pre><code><a href='/constructor/availableReaction'>availableReaction</a>#c077ec01 flags:<a href='/type/%23'>#</a> inactive:flags.0?<a href='/constructor/true'>true</a> reaction:<a href='/type/string'>string</a> title:<a href='/type/string'>string</a> static_icon:<a href='/type/Document'>Document</a> appear_animation:<a href='/type/Document'>Document</a> select_animation:<a href='/type/Document'>Document</a> activate_animation:<a href='/type/Document'>Document</a> effect_animation:<a href='/type/Document'>Document</a> around_animation:flags.1?<a href='/type/Document'>Document</a> center_icon:flags.1?<a href='/type/Document'>Document</a> = <a href='/type/AvailableReaction'>AvailableReaction</a>;
<a href='/constructor/messages.availableReactionsNotModified'>messages.availableReactionsNotModified</a>#9f071957 = <a href='/type/messages.AvailableReactions'>messages.AvailableReactions</a>;
<a href='/constructor/messages.availableReactions'>messages.availableReactions</a>#768e3aad hash:<a href='/type/int'>int</a> reactions:<a href='/type/Vector%20t'>Vector</a>&lt;<a href='/type/AvailableReaction'>AvailableReaction</a>&gt; = <a href='/type/messages.AvailableReactions'>messages.AvailableReactions</a>;
---functions---
<a href='/method/messages.getAvailableReactions'>messages.getAvailableReactions</a>#18dea0ac hash:<a href='/type/int'>int</a> = <a href='/type/messages.AvailableReactions'>messages.AvailableReactions</a>;</code></pre>
<p><a href="/method/messages.getAvailableReactions">messages.getAvailableReactions</a> can be used to fetch the full list of reactions that can be used on Telegram.<br>
The returned vector of <a href="/constructor/availableReaction">availableReaction</a> contains multiple fields with lottie animated stickers and simple images that should be positioned, displayed and played appropriately in the UI, as described in the <a href="/constructor/availableReaction">constructor page »</a>. </p>
<h2><a class="anchor" href="#set-default-reaction" id="set-default-reaction" name="set-default-reaction"><i class="anchor-icon"></i></a>Set default reaction</h2>
<pre><code><a href='/constructor/jsonString'>jsonString</a>#b71e767a value:<a href='/type/string'>string</a> = <a href='/type/JSONValue'>JSONValue</a>;
<a href='/constructor/jsonObjectValue'>jsonObjectValue</a>#c0de1bd9 key:<a href='/type/string'>string</a> value:<a href='/type/JSONValue'>JSONValue</a> = <a href='/type/JSONObjectValue'>JSONObjectValue</a>;
@ -81,17 +92,6 @@ Use <a href="/method/messages.readReactions">messages.readReactions</a> to mark
<a href='/method/help.getAppConfig'>help.getAppConfig</a>#98914110 = <a href='/type/JSONValue'>JSONValue</a>;</code></pre>
<p><a href="/method/messages.setDefaultReaction">messages.setDefaultReaction</a> can be used to change the default emoji reaction to use in the quick reaction menu.<br>
This value is synced across devices and can be fetched using <a href="/api/config#client-configuration">help.getAppConfig, <code>reactions_default</code> field</a>.</p>
<h2><a class="anchor" href="#fetch-globally-available-reactions" id="fetch-globally-available-reactions" name="fetch-globally-available-reactions"><i class="anchor-icon"></i></a>Fetch globally available reactions</h2>
<pre><code><a href='/constructor/availableReaction'>availableReaction</a>#c077ec01 flags:<a href='/type/%23'>#</a> inactive:flags.0?<a href='/constructor/true'>true</a> reaction:<a href='/type/string'>string</a> title:<a href='/type/string'>string</a> static_icon:<a href='/type/Document'>Document</a> appear_animation:<a href='/type/Document'>Document</a> select_animation:<a href='/type/Document'>Document</a> activate_animation:<a href='/type/Document'>Document</a> effect_animation:<a href='/type/Document'>Document</a> around_animation:flags.1?<a href='/type/Document'>Document</a> center_icon:flags.1?<a href='/type/Document'>Document</a> = <a href='/type/AvailableReaction'>AvailableReaction</a>;
<a href='/constructor/messages.availableReactionsNotModified'>messages.availableReactionsNotModified</a>#9f071957 = <a href='/type/messages.AvailableReactions'>messages.AvailableReactions</a>;
<a href='/constructor/messages.availableReactions'>messages.availableReactions</a>#768e3aad hash:<a href='/type/int'>int</a> reactions:<a href='/type/Vector%20t'>Vector</a>&lt;<a href='/type/AvailableReaction'>AvailableReaction</a>&gt; = <a href='/type/messages.AvailableReactions'>messages.AvailableReactions</a>;
---functions---
<a href='/method/messages.getAvailableReactions'>messages.getAvailableReactions</a>#18dea0ac hash:<a href='/type/int'>int</a> = <a href='/type/messages.AvailableReactions'>messages.AvailableReactions</a>;</code></pre>
<p><a href="/method/messages.getAvailableReactions">messages.getAvailableReactions</a> can be used to fetch the full list of reactions that can be used on Telegram.<br>
The returned vector of <a href="/constructor/availableReaction">availableReaction</a> contains multiple fields with lottie animated stickers and simple images that should be positioned, displayed and played appropriately in the UI, as described in the <a href="/constructor/availableReaction">constructor page »</a>. </p>
<h2><a class="anchor" href="#change-available-reactions-in-group-or-channel" id="change-available-reactions-in-group-or-channel" name="change-available-reactions-in-group-or-channel"><i class="anchor-icon"></i></a>Change available reactions in group or channel</h2>
<pre><code><a href='/constructor/channelAdminLogEventActionChangeAvailableReactions'>channelAdminLogEventActionChangeAvailableReactions</a>#9cf7f76a prev_value:<a href='/type/Vector%20t'>Vector</a>&lt;<a href='/type/string'>string</a>&gt; new_value:<a href='/type/Vector%20t'>Vector</a>&lt;<a href='/type/string'>string</a>&gt; = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;

View file

@ -92,13 +92,15 @@
<tr>
<td>400</td>
<td>PASSWORD_REQUIRED</td>
<td>A <a href="https://core.telegram.org/api/srp">2FA password</a> must be configured to use Telegram Passport.</td>
<td>A <a href="/api/srp">2FA password</a> must be configured to use Telegram Passport.</td>
</tr>
</tbody>
</table>
<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="#telegram-passport-encryption-details" id="telegram-passport-encryption-details" name="telegram-passport-encryption-details"><i class="anchor-icon"></i></a><a href="/passport/encryption">Telegram Passport Encryption Details</a></h4>
<h4><a class="anchor" href="#telegram-passport-manual" id="telegram-passport-manual" name="telegram-passport-manual"><i class="anchor-icon"></i></a><a href="/passport">Telegram Passport Manual</a></h4></div>
<h4><a class="anchor" href="#telegram-passport-manual" id="telegram-passport-manual" name="telegram-passport-manual"><i class="anchor-icon"></i></a><a href="/passport">Telegram Passport Manual</a></h4>
<h4><a class="anchor" href="#two-factor-authentication" id="two-factor-authentication" name="two-factor-authentication"><i class="anchor-icon"></i></a><a href="/api/srp">Two-factor authentication</a></h4>
<p>How to login to a user's account if they have enabled 2FA, how to change password.</p></div>
</div>

View file

@ -87,10 +87,13 @@
<tr>
<td>400</td>
<td>AUTOARCHIVE_NOT_AVAILABLE</td>
<td>The autoarchive setting is not available at this time: please check the value of the <a href="https://core.telegram.org/api/config#client-configuration">autoarchive_setting_available field in client config »</a> before calling this method.</td>
<td>The autoarchive setting is not available at this time: please check the value of the <a href="/api/config#client-configuration">autoarchive_setting_available field in client config »</a> before calling this method.</td>
</tr>
</tbody>
</table></div>
</table>
<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="#client-configuration" id="client-configuration" name="client-configuration"><i class="anchor-icon"></i></a><a href="/api/config">Client configuration</a></h4>
<p>The MTProto API has multiple configuration parameters that can be fetched with the appropriate methods.</p></div>
</div>

View file

@ -93,7 +93,7 @@
<tr>
<td>400</td>
<td>EMAIL_UNCONFIRMED_%d</td>
<td>The provided email isn't confirmed, %d is the length of the verification code that was just sent to the email: use <a href="https://core.telegram.org/method/account.verifyEmail">account.verifyEmail</a> to enter the received verification code and enable the recovery email.</td>
<td>The provided email isn't confirmed, %d is the length of the verification code that was just sent to the email: use <a href="/method/account.verifyEmail">account.verifyEmail</a> to enter the received verification code and enable the recovery email.</td>
</tr>
<tr>
<td>400</td>
@ -129,7 +129,9 @@
</table>
<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="#two-factor-authentication" id="two-factor-authentication" name="two-factor-authentication"><i class="anchor-icon"></i></a><a href="/api/srp">Two-factor authentication</a></h4>
<p>How to login to a user's account if they have enabled 2FA, how to change password.</p></div>
<p>How to login to a user's account if they have enabled 2FA, how to change password.</p>
<h4><a class="anchor" href="#accountverifyemail" id="accountverifyemail" name="accountverifyemail"><i class="anchor-icon"></i></a><a href="/method/account.verifyEmail">account.verifyEmail</a></h4>
<p>Verify an email address for telegram <a href="/passport">passport</a>.</p></div>
</div>

View file

@ -123,7 +123,7 @@
<tr>
<td>400</td>
<td>FILE_REFERENCE_INVALID</td>
<td>The specified <a href="https://core.telegram.org/api/file_reference">file reference</a> is invalid.</td>
<td>The specified <a href="/api/file_reference">file reference</a> is invalid.</td>
</tr>
<tr>
<td>400</td>
@ -145,7 +145,9 @@
<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="#channels" id="channels" name="channels"><i class="anchor-icon"></i></a><a href="/api/channel">Channels</a></h4>
<p>How to handle channels, supergroups, groups, and what's the difference between them.</p></div>
<p>How to handle channels, supergroups, groups, and what's the difference between them.</p>
<h4><a class="anchor" href="#file-references" id="file-references" name="file-references"><i class="anchor-icon"></i></a><a href="/api/file_reference">File references</a></h4>
<p>How to handle file references.</p></div>
</div>

View file

@ -91,7 +91,7 @@
<tr>
<td>400</td>
<td>CHAT_TOO_BIG</td>
<td>This method is not available for groups with more than <code>chat_read_mark_size_threshold</code> members, <a href="https://core.telegram.org/api/config#client-configuration">see client configuration »</a>.</td>
<td>This method is not available for groups with more than <code>chat_read_mark_size_threshold</code> members, <a href="/api/config#client-configuration">see client configuration »</a>.</td>
</tr>
</tbody>
</table>

View file

@ -263,12 +263,12 @@
<tr>
<td>400</td>
<td>FILE_REFERENCE_EMPTY</td>
<td>An empty <a href="https://core.telegram.org/api/file_reference">file reference</a> was specified.</td>
<td>An empty <a href="/api/file_reference">file reference</a> was specified.</td>
</tr>
<tr>
<td>400</td>
<td>FILE_REFERENCE_EXPIRED</td>
<td>File reference expired, it must be refetched as described in <a href="https://core.telegram.org/api/file_reference">the documentation</a>.</td>
<td>File reference expired, it must be refetched as described in <a href="/api/file_reference">the documentation</a>.</td>
</tr>
<tr>
<td>400</td>
@ -467,7 +467,9 @@
<h4><a class="anchor" href="#styled-text-with-message-entities" id="styled-text-with-message-entities" name="styled-text-with-message-entities"><i class="anchor-icon"></i></a><a href="/api/entities">Styled text with message entities</a></h4>
<p>How to create styled text with message entities</p>
<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></div>
<p>Telegram allows scheduling messages</p>
<h4><a class="anchor" href="#file-references" id="file-references" name="file-references"><i class="anchor-icon"></i></a><a href="/api/file_reference">File references</a></h4>
<p>How to handle file references.</p></div>
</div>

View file

@ -123,12 +123,12 @@
<tr>
<td>400</td>
<td>FILE_REFERENCE_*</td>
<td>The file reference expired, it <a href="https://core.telegram.org/api/file_reference">must be refreshed</a>.</td>
<td>The file reference expired, it <a href="/api/file_reference">must be refreshed</a>.</td>
</tr>
<tr>
<td>406</td>
<td>FILEREF_UPGRADE_NEEDED</td>
<td>The client has to be updated in order to support <a href="https://core.telegram.org/api/file_reference">file references</a>.</td>
<td>The client has to be updated in order to support <a href="/api/file_reference">file references</a>.</td>
</tr>
<tr>
<td>400</td>
@ -138,7 +138,7 @@
<tr>
<td>400</td>
<td>FILE_REFERENCE_EXPIRED</td>
<td>File reference expired, it must be refetched as described in <a href="https://core.telegram.org/api/file_reference">the documentation</a>.</td>
<td>File reference expired, it must be refetched as described in <a href="/api/file_reference">the documentation</a>.</td>
</tr>
<tr>
<td>400</td>
@ -169,7 +169,9 @@
</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="#encrypted-cdns-for-speed-and-security" id="encrypted-cdns-for-speed-and-security" name="encrypted-cdns-for-speed-and-security"><i class="anchor-icon"></i></a><a href="/cdn">Encrypted CDNs for Speed and Security</a></h4></div>
<h4><a class="anchor" href="#encrypted-cdns-for-speed-and-security" id="encrypted-cdns-for-speed-and-security" name="encrypted-cdns-for-speed-and-security"><i class="anchor-icon"></i></a><a href="/cdn">Encrypted CDNs for Speed and Security</a></h4>
<h4><a class="anchor" href="#file-references" id="file-references" name="file-references"><i class="anchor-icon"></i></a><a href="/api/file_reference">File references</a></h4>
<p>How to handle file references.</p></div>
</div>