Update content of files

This commit is contained in:
GitHub Action 2022-08-15 18:21:17 +00:00
parent efdf371058
commit dcd5c5ce8a
3 changed files with 103 additions and 12 deletions

View file

@ -96,6 +96,52 @@ While <a href="/method/help.getConfig">help.getConfig</a> returns MTProto-specif
<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> - Maximum number of unique reaction-emojis for any given message: for example, if there are 2000 <img class="emoji" src="//telegram.org/img/emoji/40/F09F918D.png" width="20" height="20" alt="👍" /> and 1000 <img class="emoji" src="//telegram.org/img/emoji/40/F09F9881.png" width="20" height="20" alt="😁" /> reactions and reactions_uniq_max = 2, you can't add a <img class="emoji" src="//telegram.org/img/emoji/40/F09F918E.png" width="20" height="20" alt="👎" /> reaction, because that would raise the number of unique reaction-emojis to 3 &gt; 2. (integer)</li>
<li><code>ringtone_duration_max</code> - The maximum duration in seconds of <a href="/api/ringtones">uploadable notification sounds &amp;raquo</a> (integer)</li>
<li><code>ringtone_size_max</code> - The maximum size in bytes of <a href="/api/ringtones">uploadable notification sounds &amp;raquo</a></li>
<li><code>ringtone_saved_count_max</code> - The maximum number of <a href="/api/ringtones">saveable notification sounds &amp;raquo</a></li>
<li><code>message_animated_emoji_max</code> - Maximum number of custom animated emojis that may be present in a message. (integer)</li>
<li><code>premium_purchase_blocked</code> - (boolean)</li>
<li><code>channels_limit_default</code> - The maximum number of <a href="/api/channel">channels and supergroups</a> a non-Premium user may join (integer)</li>
<li><code>channels_limit_premium</code> - The maximum number of <a href="/api/channel">channels and supergroups</a> a Premium user may join (integer)</li>
<li><code>saved_gifs_limit_default</code> - The maximum number of GIFs a non-Premium user may save (integer)</li>
<li><code>saved_gifs_limit_premium</code> - The maximum number of GIFs a Premium user may save (integer)</li>
<li><code>stickers_faved_limit_default</code> - The maximum number of stickers a non-Premium user may add to Favorites (integer)</li>
<li><code>stickers_faved_limit_premium</code> - The maximum number of stickers a Premium user may add to Favorites (integer)</li>
<li><code>dialog_filters_limit_default</code> - The maximum number of <a href="/api/folders">folders</a> a non-Premium user may create (integer)</li>
<li><code>dialog_filters_limit_premium</code> - The maximum number of <a href="/api/folders">folders</a> a Premium user may create (integer)</li>
<li><code>dialog_filters_chats_limit_default</code> - The maximum number of chats a non-Premium user may add to a <a href="/api/folders">folder</a> (integer)</li>
<li><code>dialog_filters_chats_limit_premium</code> - The maximum number of chats a Premium user may add to a <a href="/api/folders">folder</a> (integer)</li>
<li><code>dialogs_pinned_limit_default</code> - The maximum number of chats a non-Premium user may pin (integer)</li>
<li><code>dialogs_pinned_limit_premium</code> - The maximum number of chats a Premium user may pin (integer)</li>
<li><code>dialogs_folder_pinned_limit_default</code> - The maximum number of chats a non-Premium user may pin in a folder (integer)</li>
<li><code>dialogs_folder_pinned_limit_premium</code> - The maximum number of chats a Premium user may pin in a folder (integer)</li>
<li><code>channels_public_limit_default</code> - The maximum number of public <a href="/api/channel">channels or supergroups</a> a non-Premium user may create (integer)</li>
<li><code>channels_public_limit_premium</code> - The maximum number of public <a href="/api/channel">channels or supergroups</a> a Premium user may create (integer)</li>
<li><code>caption_length_limit_default</code> - The maximum UTF-8 length of media captions sendable by non-Premium users (integer)</li>
<li><code>caption_length_limit_premium</code> - The maximum UTF-8 length of media captions sendable by non-Premium users (integer)</li>
<li><code>upload_max_fileparts_default</code> - The maximum size of files uploadable by non-Premium users (integer, indicates the number of 512kb file parts, so the size in bytes is determined by multiplying by <code>524288</code>)</li>
<li><code>upload_max_fileparts_premium</code> - The maximum size of files uploadable by Premium users (integer, indicates the number of 512kb file parts, so the size in bytes is determined by multiplying by <code>524288</code>)</li>
<li><code>about_length_limit_default</code> - The maximum UTF-8 length of bios of non-Premium users</li>
<li><code>about_length_limit_premium</code> - The maximum UTF-8 length of bios of Premium users</li>
<li><code>stickers_premium_by_emoji_num</code> - (integer)</li>
<li><code>stickers_normal_by_emoji_per_premium_num</code> - (integer)</li>
<li><code>premium_promo_order</code> - Array of string identifiers, indicating the order of Telegram Premium features in the Telegram Premimum promotion popup, possible values:<ul>
<li><code>double_limits</code> - Should open a secondary popup with a list of the default/premium limits mentioned above</li>
<li><code>more_upload</code> - Premium users can upload bigger files, as specified by the <code>upload_max_fileparts_*</code> config keys</li>
<li><code>faster_download</code> - Premium users have no download speed limits</li>
<li><code>voice_to_text</code> - Premium users can transcribe voice messages</li>
<li><code>no_ads</code> - Premium users see no <a href="/api/sponsored-messages">Sponsored Messages</a></li>
<li><code>unique_reactions</code> - Premium users have access to more <a href="/api/reactions">message reactions</a></li>
<li><code>premimum_stickers</code> - Premium users have access to premium stickersets</li>
<li><code>animated_emoji</code> - Premium users can send custom animated emojis</li>
<li><code>advanced_chat_management</code> -</li>
<li><code>profile_badge</code> - Premium users have a badge next to their name, showing that they are helping support Telegram</li>
<li><code>animated_userpics</code> - <a href="/api/files#animated-profile-pictures">Animated profile pictures</a> of Premium users will play in-chat and when browsing the dialog list</li>
<li><code>app_icons</code> - Premium users can change the default icon of the Telegram app</li>
</ul>
</li>
<li><code>premium_bot_username</code> - Contains the username of the official Telegram Premium bot that may be used to buy a Telegram Premium subscription (string)</li>
<li><code>getfile_experimental_params</code> - (boolean)</li>
</ul>
<p>Example value: </p>
<pre><code class="language-json">{
@ -142,47 +188,47 @@ While <a href="/method/help.getConfig">help.getConfig</a> returns MTProto-specif
"\ud83c\udf83": {
"id": "4956223179606458539",
"access_hash": "-2107001400913062971",
"file_reference_base64": "AGIaeBZckszt-s71DzCHhSkfZI_l"
"file_reference_base64": "AGL6hV6eDoc2ebQskOpbgrzTmLp0"
},
"\u26b0": {
"id": "4956223179606458540",
"access_hash": "-1498869544183595185",
"file_reference_base64": "AGIaeBZRfKxsAgnaLEDh5XIa8Gri"
"file_reference_base64": "AGL6hV6ogj9k1yASNSBKwVV7vl4g"
},
"\ud83e\udddf\u200d\u2642": {
"id": "4960929110848176331",
"access_hash": "3986395821757915468",
"file_reference_base64": "AGIaeBZcFga_bS9BsPvVNA2zuYCI"
"file_reference_base64": "AGL6hV40Jb1xBs_pSyJKKUOZB6Qp"
},
"\ud83e\udddf": {
"id": "4960929110848176332",
"access_hash": "-8929417974289765626",
"file_reference_base64": "AGIaeBbUbidUDCl4nImJXPTl2wWj"
"file_reference_base64": "AGL6hV7D4Nslcn-v1fIuc_ND9YrF"
},
"\ud83e\udddf\u200d\u2640": {
"id": "4960929110848176333",
"access_hash": "9161696144162881753",
"file_reference_base64": "AGIaeBb-ulJ2E-rSI2B8EKyAXs-8"
"file_reference_base64": "AGL6hV7h6twxi0zgxF0aWUUypVLa"
},
"\ud83c\udf51": {
"id": "4963180910661861548",
"access_hash": "-7431729439735063448",
"file_reference_base64": "AGIaeBa940aXpIVLThj0J2ctxYFe"
"file_reference_base64": "AGL6hV7LHEomrcDDMRiTCl6iaomm"
},
"\ud83c\udf8a": {
"id": "5094064004578410732",
"access_hash": "8518192996098758509",
"file_reference_base64": "AGIaeBZFqTTp5drt0JZ86DGDAu1t"
"file_reference_base64": "AGL6hV7zlo6gnet6iEhvGDlZk8v4"
},
"\ud83c\udf84": {
"id": "5094064004578410733",
"access_hash": "-4142643820629256996",
"file_reference_base64": "AGIaeBbEqu-gV0qAUdP5lD3MxLSK"
"file_reference_base64": "AGL6hV5w-pES-k304Ko8wawZnXHu"
},
"\ud83e\uddbe": {
"id": "5094064004578410734",
"access_hash": "-8934384022571962340",
"file_reference_base64": "AGIaeBZ0YCp8_Zl_cmP4nvKkkSfF"
"file_reference_base64": "AGL6hV45MFKTfB4kBAfUZWMezHfZ"
}
},
"gif_search_branding": "tenor",
@ -232,7 +278,52 @@ While <a href="/method/help.getConfig">help.getConfig</a> returns MTProto-specif
"chat_read_mark_expire_period": 604800,
"chat_read_mark_size_threshold": 100,
"reactions_default": "\ud83d\udc4d",
"reactions_uniq_max": 11
"reactions_uniq_max": 11,
"ringtone_duration_max": 5,
"ringtone_size_max": 307200,
"ringtone_saved_count_max": 100,
"premium_purchase_blocked": false,
"channels_limit_default": 500,
"channels_limit_premium": 1000,
"saved_gifs_limit_default": 200,
"saved_gifs_limit_premium": 400,
"stickers_faved_limit_default": 5,
"stickers_faved_limit_premium": 10,
"dialog_filters_limit_default": 10,
"dialog_filters_limit_premium": 20,
"dialog_filters_chats_limit_default": 100,
"dialog_filters_chats_limit_premium": 200,
"dialogs_pinned_limit_default": 5,
"dialogs_pinned_limit_premium": 10,
"dialogs_folder_pinned_limit_default": 100,
"dialogs_folder_pinned_limit_premium": 200,
"channels_public_limit_default": 10,
"channels_public_limit_premium": 20,
"caption_length_limit_default": 1024,
"caption_length_limit_premium": 2048,
"upload_max_fileparts_default": 4000,
"upload_max_fileparts_premium": 8000,
"about_length_limit_default": 70,
"about_length_limit_premium": 140,
"stickers_premium_by_emoji_num": 0,
"stickers_normal_by_emoji_per_premium_num": 3,
"message_animated_emoji_max": 100,
"premium_promo_order": [
"double_limits",
"more_upload",
"faster_download",
"voice_to_text",
"no_ads",
"unique_reactions",
"premium_stickers",
"animated_emoji",
"advanced_chat_management",
"profile_badge",
"animated_userpics",
"app_icons"
],
"premium_bot_username": "PremiumBot",
"getfile_experimental_params": false
}</code></pre>
<h3><a class="anchor" href="#suggestions" id="suggestions" name="suggestions"><i class="anchor-icon"></i></a>Suggestions</h3>
<p>The API can return a set of useful suggestions for users of graphical clients. </p>

View file

@ -84,7 +84,7 @@ Before linking a supergroup to a channel, access to the supergroup's old message
<a href='/method/channels.toggleJoinToSend'>channels.toggleJoinToSend</a>#e4cb9580 channel:<a href='/type/InputChannel'>InputChannel</a> enabled:<a href='/type/Bool'>Bool</a> = <a href='/type/Updates'>Updates</a>;</code></pre>
<p>Admins may use <a href="/method/channels.toggleJoinToSend">channels.toggleJoinToSend</a> to force users to join a discussion group before commenting.<br>
The <a href="/constructor/channel"><code>channel.join_to_send</code></a> flag will be set accordingly. </p></div>
The <a href="/constructor/channel"><code>channel.join_to_send</code></a> flag will be set accordingly, and all attempts by non-members to send a message to the group will return a <code>CHAT_GUEST_SEND_FORBIDDEN</code> RPC error. </p></div>
</div>

View file

@ -74,7 +74,7 @@ In the API, folders are called "dialog filters"; in the UI, they are typically r
The UI should then show a list of suggested folder combinations. </p>
<p>Once configuration is finished, apps call <a href="/method/messages.updateDialogFilter">messages.updateDialogFilter</a> to create or update existing folders.<br>
As per the <a href="/constructor/dialogFilter">dialogFilter</a> constructor, folders have multiple flags that can be combined to determine which chats should be included in (or excluded from) the folder.<br>
Folders can also have unlimited pinned chats, as determined by the <code>pinned_peers</code> field.</p>
Folders can also have up to <code>channels_public_limit_*</code> pinned chats, as determined by the <a href="/api/config#client-configuration">config</a> and the <code>pinned_peers</code> field.</p>
<p>To reorder existing folders, <a href="/method/messages.updateDialogFiltersOrder">messages.updateDialogFiltersOrder</a> should be used with the IDs of the various dialog filters.</p>
<p>To delete folders, use <a href="/method/messages.updateDialogFilter">messages.updateDialogFilter</a> without populating the <code>filter</code> flag field. </p>
<p>Clients can receive <a href="/constructor/updateDialogFilter">updateDialogFilter</a>, <a href="/constructor/updateDialogFilterOrder">updateDialogFilterOrder</a> updates with new filter information, generated by other clients when modifying folder info.<br>