Update content of files

This commit is contained in:
GitHub Action 2024-07-21 13:31:11 +00:00
parent a52378d6ca
commit 5f364d679b
6 changed files with 116 additions and 19 deletions

View file

@ -397,7 +397,31 @@ This method can be used to fetch info about a not-yet-cached business connection
<p>Since Telegram Business is currently included with the <a href="/api/premium">Telegram Premium</a> subscription, and Telegram Premium subscribers do not see <a href="/api/sponsored-messages">sponsored messages in channels</a>. </p>
<p>This may be problematic for business owners that may want to launch and view their own Telegram ads via the <a href="https://ads.telegram.org">Telegram ad platform »</a>. </p>
<p>For this reason, the Telegram Business settings page should contain a toggle to re-enable Telegram ads for the current account, which should trigger a call to <a href="/method/account.toggleSponsoredMessages">account.toggleSponsoredMessages</a>. </p>
<p>The current value of the toggle will be stored in <a href="/constructor/userFull">userFull</a>.<code>sponsored_enabled</code>.</p></div>
<p>The current value of the toggle will be stored in <a href="/constructor/userFull">userFull</a>.<code>sponsored_enabled</code>. </p>
<h3><a class="anchor" href="#folder-tags" id="folder-tags" name="folder-tags"><i class="anchor-icon"></i></a>Folder tags</h3>
<p>Telegram Business users can use <a href="/api/folder#folder-tags">folder tags, see here »</a> for more info. </p>
<h3><a class="anchor" href="#business-features-promo-page" id="business-features-promo-page" name="business-features-promo-page"><i class="anchor-icon"></i></a>Business features promo page</h3>
<p>Telegram Business offers a set of additional features and raised limits: clients should be aware of the current subscription status to accordingly modify client behavior. </p>
<pre><code>---functions---
<a href='/method/help.getAppConfig'>help.getAppConfig</a>#61e3f854 hash:<a href='/type/int'>int</a> = <a href='/type/help.AppConfig'>help.AppConfig</a>;</code></pre>
<p>Clients should show a Telegram Business button in the settings.<br>
Clicking on this button in the settings should open a Telegram Business modal. </p>
<p><a href="/method/help.getAppConfig">help.getAppConfig</a> to fetch info on how to build the Telegram Business modal, returning a list of Business feature identifiers in the <a href="/api/config#business-promo-order"><code>business_promo_order</code> appConfig field</a>: the modal should contain a row for each returned feature, ordered as specified in the returned array. </p>
<p>Possible feature identifiers:</p>
<ul>
<li><code>business_location</code> - Business users can set a <a href="#location">business location</a></li>
<li><code>business_hours</code> - Business users can set <a href="#opening-hours">opening hours</a></li>
<li><code>quick_replies</code> - Business users can create and use <a href="#quick-reply-shortcuts">quick reply shortcuts</a></li>
<li><code>greeting_message</code> - Business users can set a <a href="#greeting-messages">greeting message</a></li>
<li><code>away_message</code> - Business users can set an <a href="#away-messages">away message</a></li>
<li><code>business_links</code> - Business users can create <a href="#business-chat-links">business chat links</a></li>
<li><code>business_intro</code> - Business users can set a custom <a href="#business-introduction">business chat introduction</a></li>
<li><code>business_bots</code> - Business users can <a href="#connected-bots">connect business bots to their account</a></li>
<li><code>emoji_status</code> - Business users can set a <a href="/api/emoji-status">custom emoji status</a>. </li>
<li><code>folder_tags</code> - Business users can enable <a href="/api/folders#folder-tags">folder tags</a>. </li>
<li><code>stories</code> - Business users have many additional <a href="/api/stories">story features</a>.</li>
</ul></div>
</div>

View file

@ -188,13 +188,7 @@ While <a href="/method/help.getConfig">help.getConfig</a> returns MTProto-specif
"dialog_filters_enabled": true,
"dialog_filters_tooltip": true,
"autoarchive_setting_available": true,
"pending_suggestions": [
"AUTOARCHIVE_POPULAR",
"VALIDATE_PASSWORD",
"VALIDATE_PHONE_NUMBER",
"NEWCOMER_TICKS",
"SETUP_PASSWORD"
],
"pending_suggestions": [],
"autologin_domains": [
"instantview.telegram.org",
"translations.telegram.org",
@ -203,14 +197,20 @@ While <a href="/method/help.getConfig">help.getConfig</a> returns MTProto-specif
"bugs.telegram.org",
"suggestions.telegram.org",
"themes.telegram.org",
"promote.telegram.org"
"promote.telegram.org",
"ads.telegram.org"
],
"url_auth_domains": [
"web.telegram.org",
"web.t.me",
"k.t.me",
"a.t.me"
],
"url_auth_domains": [],
"round_video_encoding": {
"diameter": 384,
"video_bitrate": 1000,
"audio_bitrate": 64,
"max_size": 16777216
"max_size": 12582912
},
"chat_read_mark_expire_period": 604800,
"chat_read_mark_size_threshold": 100,
@ -236,7 +236,7 @@ While <a href="/method/help.getConfig">help.getConfig</a> returns MTProto-specif
"channels_public_limit_default": 10,
"channels_public_limit_premium": 20,
"caption_length_limit_default": 1024,
"caption_length_limit_premium": 2048,
"caption_length_limit_premium": 4096,
"upload_max_fileparts_default": 4000,
"upload_max_fileparts_premium": 8000,
"about_length_limit_default": 70,
@ -252,20 +252,38 @@ While <a href="/method/help.getConfig">help.getConfig</a> returns MTProto-specif
"stories",
"more_upload",
"double_limits",
"business",
"last_seen",
"voice_to_text",
"faster_download",
"translations",
"animated_emoji",
"emoji_status",
"saved_tags",
"peer_colors",
"wallpapers",
"profile_badge",
"message_privacy",
"advanced_chat_management",
"no_ads",
"app_icons",
"infinite_reactions",
"animated_userpics",
"premium_stickers",
"wallpapers",
"peer_colors"
"effects"
],
"business_promo_order": [
"business_location",
"business_hours",
"quick_replies",
"greeting_message",
"away_message",
"business_links",
"business_intro",
"business_bots",
"emoji_status",
"folder_tags",
"stories"
],
"premium_bot_username": "PremiumBot",
"whitelisted_domains": [
@ -293,6 +311,7 @@ While <a href="/method/help.getConfig">help.getConfig</a> returns MTProto-specif
"chatlist_update_period": 300,
"small_queue_max_active_operations_count": 5,
"large_queue_max_active_operations_count": 2,
"story_expire_period": 86400,
"story_viewers_expire_period": 86400,
"story_expiring_limit_default": 3,
"story_expiring_limit_premium": 100,
@ -307,7 +326,9 @@ While <a href="/method/help.getConfig">help.getConfig</a> returns MTProto-specif
"stories_sent_monthly_limit_default": 30,
"stories_sent_monthly_limit_premium": 3000,
"stories_venue_search_username": "foursquare",
"stories_all_hidden": false,
"stories_entities": "premium",
"stories_export_nopublic_link": true,
"stories_changelog_user_id": 777000,
"authorization_autoconfirm_period": 604800,
"stories_suggested_reactions_limit_default": 1,
@ -320,7 +341,8 @@ While <a href="/method/help.getConfig">help.getConfig</a> returns MTProto-specif
"boosts_channel_level_max": 100,
"boosts_per_sent_gift": 3,
"quote_length_max": 1024,
"transcribe_audio_trial_weekly_number": 2,
"channel_color_level_min": 5,
"transcribe_audio_trial_weekly_number": 0,
"transcribe_audio_trial_duration_max": 300,
"recommended_channels_limit_default": 10,
"recommended_channels_limit_premium": 100,
@ -331,7 +353,35 @@ While <a href="/method/help.getConfig">help.getConfig</a> returns MTProto-specif
"channel_custom_wallpaper_level_min": 10,
"saved_dialogs_pinned_limit_default": 5,
"saved_dialogs_pinned_limit_premium": 100,
"pm_read_date_expire_period": 604800
"pm_read_date_expire_period": 604800,
"group_transcribe_level_min": 6,
"group_emoji_stickers_level_min": 4,
"group_profile_bg_icon_level_min": 5,
"group_emoji_status_level_min": 8,
"group_wallpaper_level_min": 9,
"group_custom_wallpaper_level_min": 10,
"quick_replies_limit": 100,
"quick_reply_messages_limit": 20,
"upload_premium_speedup_upload": 10,
"upload_premium_speedup_download": 10,
"upload_premium_speedup_notify_period": 3600,
"intro_title_length_limit": 32,
"intro_description_length_limit": 70,
"business_chat_links_limit": 100,
"channel_restrict_sponsored_level_min": 50,
"channel_revenue_withdrawal_enabled": true,
"dismissed_suggestions": [],
"stories_pinned_to_top_count_max": 3,
"stars_purchase_blocked": false,
"stories_area_url_max": 3,
"stars_revenue_withdrawal_min": 1000,
"stars_paid_post_amount_max": 2500,
"can_edit_factcheck": false,
"factcheck_length_limit": 1024,
"web_app_allowed_protocols": [
"http",
"https"
]
}</code></pre>
<p>Typical fields included in the resulting JSON object are: </p>
<h4><a class="anchor" href="#emojies-animated-zoom" id="emojies-animated-zoom" name="emojies-animated-zoom"><i class="anchor-icon"></i></a><code>emojies_animated_zoom</code></h4>
@ -466,6 +516,8 @@ Note that the stickerset can be fetched using <a href="/constructor/inputSticker
<p>The maximum UTF-8 length of bios of <a href="/api/premium">Premium</a> users (integer)</p>
<h4><a class="anchor" href="#premium-promo-order" id="premium-promo-order" name="premium-promo-order"><i class="anchor-icon"></i></a><code>premium_promo_order</code></h4>
<p>Array of string identifiers, indicating the order of <a href="/api/premium">Telegram Premium</a> features in the Telegram Premium promotion popup, <a href="/api/premium#telegram-premium-features">see here for the possible values »</a></p>
<h4><a class="anchor" href="#business-promo-order" id="business-promo-order" name="business-promo-order"><i class="anchor-icon"></i></a><code>business_promo_order</code></h4>
<p>Array of string identifiers, indicating the order of <a href="/api/business">Telegram Business</a> features in the Telegram Business promotion popup, <a href="/api/business#business-features-promo-page">see here for the possible values »</a></p>
<h4><a class="anchor" href="#premium-bot-username" id="premium-bot-username" name="premium-bot-username"><i class="anchor-icon"></i></a><code>premium_bot_username</code></h4>
<p>Contains the username of the official <a href="/api/premium">Telegram Premium</a> bot that may be used to buy a <a href="/api/premium">Telegram Premium</a> subscription, see <a href="/api/premium">here for detailed instructions »</a> (string)</p>
<h4><a class="anchor" href="#premium-invoice-slug" id="premium-invoice-slug" name="premium-invoice-slug"><i class="anchor-icon"></i></a><code>premium_invoice_slug</code></h4>

View file

@ -98,7 +98,7 @@ Clients can also receive <a href="/constructor/updateDialogFilters">updateDialog
<a href='/method/messages.toggleDialogFilterTags'>messages.toggleDialogFilterTags</a>#fd2dda49 enabled:<a href='/type/Bool'>Bool</a> = <a href='/type/Bool'>Bool</a>;
<a href='/method/messages.getDialogFilters'>messages.getDialogFilters</a>#efd48c89 = <a href='/type/messages.DialogFilters'>messages.DialogFilters</a>;</code></pre>
<p>Folder tags may be enabled or disabled for all <a href="#folders">folders</a> using the <a href="/method/messages.toggleDialogFilterTags">messages.toggleDialogFilterTags</a> method. </p>
<p>Folder tags may be enabled or disabled for all <a href="#folders">folders</a> using the <a href="/method/messages.toggleDialogFilterTags">messages.toggleDialogFilterTags</a> method (<a href="/api/business">Business</a> users only). </p>
<p>If the new value of the toggle is different, the method will emit an <a href="/constructor/updateDialogFilters">updateDialogFilters</a> to all other currently-logged in sessions, which should trigger a call to <a href="/method/messages.toggleDialogFilterTags">messages.toggleDialogFilterTags</a> to load the new value of the toggle, in <a href="/constructor/messages.dialogFilters">messages.dialogFilters</a>.<code>tags_enabled</code>. </p>
<p>If folder tags are enabled, clients should add folder tags (one for each folder the dialog entry is a part of, except for the "All chats" folder represented by <a href="/constructor/dialogFilterDefault">dialogFilterDefault</a> and tags with <code>color=-1</code>) to all dialog entries, under the preview of the latest message. </p>
<p>These folder tags should contain the name of the folder, and should be colored with the <code>color</code> specified in the dialog folder entry.<br>

View file

@ -95,6 +95,15 @@ Clicking on this button in the settings, clicking on the <a href="#badge">badge<
<p><code>double_limits</code> - Clicking on this entry should open a secondary popup with a list of the <a href="#premium-limits">improved Premium limits »</a>.</p>
</li>
<li>
<p><code>business</code> - Premium users currently have access to <a href="/api/business">Telegram Business features »</a>. </p>
</li>
<li>
<p><code>last_seen</code> - Premium users can view the last seen and message read times of other users even they can't view the last seen or read time for the current user. </p>
</li>
<li>
<p><code>message_privacy</code> - Premium users can disallow incoming voice and video note messages in private chats using <a href="/constructor/inputPrivacyKeyVoiceMessages">inputPrivacyKeyVoiceMessages</a> and <a href="/api/privacy#require-premium-for-new-non-contact-users">restrict incoming messages from non-contacts</a>. </p>
</li>
<li>
<p><code>more_upload</code> - Premium users can upload bigger files, as specified by the <a href="/api/config#upload-max-fileparts-default">upload_max_fileparts_default</a> vs <a href="/api/config#upload-max-fileparts-premium">upload_max_fileparts_premium</a> config keys.</p>
</li>
<li>
@ -142,6 +151,18 @@ Clicking on this button in the settings, clicking on the <a href="#badge">badge<
<li>
<p><code>emoji_status</code> - Premium users can set a <a href="/api/emoji-status">status emoji</a>.</p>
</li>
<li>
<p><code>saved_tags</code> - Premium users can use <a href="/api/saved-messages#tags">saved message tags</a>. </p>
</li>
<li>
<p><code>effects</code> - Premium users can use <a href="/api/effects">message effects</a>. </p>
</li>
<li>
<p><code>channel_boost</code> - Premium users can <a href="/api/boost">boost chats and channels</a>. </p>
</li>
<li>
<p><code>forum_topic_icon</code> - Premium users can set a <a href="/api/custom-emoji">custom emoji</a> as a <a href="/api/forum">forum topic icon</a></p>
</li>
</ul>
<p>The <a href="/constructor/help.premiumPromo">help.premiumPromo</a> constructor returned by <a href="/method/help.getPremiumPromo">help.getPremiumPromo</a> contains various info about the subscription, as described in the <a href="/constructor/help.premiumPromo">constructor page</a>.</p>
<h4><a class="anchor" href="#premium-limits" id="premium-limits" name="premium-limits"><i class="anchor-icon"></i></a>Premium limits</h4>

View file

@ -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/inputPrivacyKeyVoiceMessages" >inputPrivacyKeyVoiceMessages</a></li></ul></div>
<h1 id="dev_page_title">inputPrivacyKeyVoiceMessages</h1>
<div id="dev_page_content"><p>Whether people can send you voice messages</p>
<div id="dev_page_content"><p>Whether people can send you voice messages or round videos (<a href="/api/premium">Premium</a> users only). </p>
<p><div class="clearfix">
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
<li class="dropdown">

View file

@ -3624,7 +3624,7 @@ Look for updates of telegram&#39;s terms of service…">
<tbody>
<tr>
<td><a href="/method/messages.getOutboxReadDate">messages.getOutboxReadDate</a></td>
<td>Get the exact read date of one of our messages, sent to a private chat with another user.<br><br>Can be only done for private outgoing messages not older than <a href="/api/config#pm-read-date-expire-period">appConfig.pm_read_date_expire_period »</a>.<br><br>If the <code>peer</code>'s <a href="/constructor/userFull">userFull</a>.<code>read_dates_private</code> flag is set, we will not be able to fetch the exact read date of messages we send to them, and a <code>USER_PRIVACY_RESTRICTED</code> RPC error will be emitted. <br>The exact read date of messages might still be unavailable for other reasons, see <a href="/constructor/globalPrivacySettings">here »</a> for more info. <br>To set <a href="/constructor/userFull">userFull</a>.<code>read_dates_private</code> for ourselves invoke <a href="/method/account.setGlobalPrivacySettings">account.setGlobalPrivacySettings</a>, setting the <code>settings.hide_read_marks</code> flag.</td>
<td>Get the exact read date of one of our messages, sent to a private chat with another user.<br><br>Can be only done for private outgoing messages not older than <a href="/api/config#pm-read-date-expire-period">appConfig.pm_read_date_expire_period »</a>.<br><br>If the <code>peer</code>'s <a href="/constructor/userFull">userFull</a>.<code>read_dates_private</code> flag is set, we will not be able to fetch the exact read date of messages we send to them, and a <code>USER_PRIVACY_RESTRICTED</code> RPC error will be emitted. <br>The exact read date of messages might still be unavailable for other reasons, see <a href="/constructor/globalPrivacySettings">here »</a> for more info. <br>To set <a href="/constructor/userFull">userFull</a>.<code>read_dates_private</code> for ourselves invoke <a href="/method/account.setGlobalPrivacySettings">account.setGlobalPrivacySettings</a>, setting the <code>settings.hide_read_marks</code> flag.</td>
</tr>
<tr>
<td><a href="/method/messages.toggleDialogFilterTags">messages.toggleDialogFilterTags</a></td>