<p>The huge <ahref="/constructor/config">config</a> constructor contains lots of useful information, from chat and message size limitations, to privacy settings, online status refresh interval and timeout, VoIP configuration, default inline bot usernames for GIF, image and venue lookup, and lots of other global and user-specific information, check out the <ahref="/constructor/config">constructor page</a> for more information.</p>
While <ahref="/method/help.getConfig">help.getConfig</a> returns MTProto-specific configuration with information about server-side limitations and other MTProto-related information, <ahref="/method/help.getAppConfig">help.getAppConfig</a> returns configuration parameters useful for graphical Telegram clients.</p>
<p>When first invoking <ahref="/method/help.getAppConfig">help.getAppConfig</a>, pass <code>0</code> to hash; in future calls, use the <code>hash</code> contained in the previously returned <ahref="/constructor/help.appConfig">help.appConfig</a>; if the configuration hasn't changed, a <ahref="/constructor/help.appConfigNotModified">help.appConfigNotModified</a> will be returned instead of <ahref="/constructor/help.appConfig">help.appConfig</a>.</p>
<p>Example value of <ahref="/constructor/help.appConfig">help.appConfig</a>.<code>config</code>: </p>
<p><ahref="/api/animated-emojis">Animated emojis</a> and <ahref="/api/dice">animated dice</a> should be scaled by this factor before being shown to the user (float)</p>
<p>For <ahref="/api/dice">animated dice</a> emojis other than the basic <imgclass="emoji"src="//telegram.org/img/emoji/40/F09F8EB2.png"width="20"height="20"alt="🎲"/>, indicates the winning dice value and the final frame of the animated sticker, at which to show the fireworks <imgclass="emoji"src="//telegram.org/img/emoji/40/F09F8E86.png"width="20"height="20"alt="🎆"/> (object with emoji keys and object values, containing <code>value</code> and <code>frame_start</code> float values)</p>
<p>A map of soundbites to be played when the user clicks on the specified <ahref="/api/animated-emojis">animated emoji</a>; the <ahref="/api/file_reference">file reference field</a> should be base64-decoded before <ahref="/api/files">downloading the file</a> (map of <ahref="/api/files">file IDs</a> (<ahref="/constructor/inputDocument">inputDocument</a>.id), with emoji string keys)</p>
<p>Specifies that the app should not display <ahref="/api/stickers#sticker-suggestions">local sticker suggestions »</a> for emojis at all and just use the result of <ahref="/method/messages.getStickers">messages.getStickers</a> (bool)</p>
<p>Specifies the validity period of the local cache of <ahref="/method/messages.getStickers">messages.getStickers</a>, also relevant when generating the <ahref="/api/offsets#hash-generation">pagination hash</a> when invoking the method. (integer)</p>
<p>Whether the login screen should show a <ahref="/api/qr-login">QR code login option</a>, possibly as default login method (string, "disabled", "primary" or "secondary")</p>
<p>Whether clients should actively show a tooltip, inviting the user to configure <ahref="/api/folders">dialog filters AKA folders</a>; typically this happens when the chat list is long enough to start getting cluttered. (boolean)</p>
<p>Whether clients <em>can</em> invoke <ahref="/method/account.setGlobalPrivacySettings">account.setGlobalPrivacySettings</a> with <ahref="/constructor/globalPrivacySettings"><code>globalPrivacySettings.archive_and_mute_new_noncontact_peers = boolTrue</code></a>, to automatically archive and mute new incoming chats from non-contacts. (boolean)</p>
<p>Contains a list of suggestions that should be actively shown as a tooltip to the user. (Array of strings, possible values shown <ahref="#suggestions">in the suggestions section »</a>. </p>
<p>The ID of the official <ahref="/api/antispam">native antispam bot</a>, that will automatically delete spam messages if enabled as specified in the <ahref="/api/antispam">native antispam documentation »</a>.<br>
When fetching the admin list of a supergroup using <ahref="/method/channels.getParticipants">channels.getParticipants</a>, if native antispam functionality in the specified supergroup, the bot should be manually added to the admin list displayed to the user. (numeric string that represents a Telegram user/bot ID, should be casted to an int64)</p>
<p>Minimum number of participants required to hide the participants list of a supergroup using <ahref="/method/channels.toggleParticipantsHidden">channels.toggleParticipantsHidden</a>. (integer)</p>
<p>A list of domains that support automatic login with manual user confirmation, <ahref="/api/url-authorization#link-url-authorization">click here for more info on URL authorization »</a>. (array of strings)</p>
<p>A list of Telegram domains that support automatic login with no user confirmation, <ahref="/api/url-authorization#link-url-authorization">click here for more info on URL authorization »</a>. (array of strings)</p>
<p>A list of Telegram domains that can always be opened without additional user confirmation, when clicking on in-app links where the URL is not fully displayed (i.e. <ahref="/constructor/messageEntityTextUrl">messageEntityTextUrl</a> entities). (array of strings)</p>
<p>Note that when opening <ahref="/api/links#direct-mini-app-links">direct Mini App links</a> for the first time, confirmation should still be requested from the user, even if the domain of the containing deep link is whitelisted (i.e. <code>t.me/<bot_username>/<short_name>?startapp=<start_parameter></code>, where <code>t.me</code> is whitelisted). </p>
<p>Confirmation should <strong>always</strong> be asked, even if we already opened the <ahref="/api/links#direct-mini-app-links">direct Mini App</a> before, if the link is not visible (i.e. <ahref="/constructor/messageEntityTextUrl">messageEntityTextUrl</a> text links, inline buttons etc.). </p>
<p>Per-user read receipts, fetchable using <ahref="/method/messages.getMessageReadParticipants">messages.getMessageReadParticipants</a>, will be available in groups with an amount of participants less or equal to <code>chat_read_mark_size_threshold</code>. (integer)</p>
<p>To protect user privacy, read receipts for chats are only stored for <code>chat_read_mark_expire_period</code> seconds after the message was sent. (integer)</p>
<p>To protect user privacy, read receipts for private chats are only stored for <code>pm_read_date_expire_period</code> seconds after the message was sent. (integer)</p>
<p>Maximum number of unique reactions for any given message: for example, if there are 2000 <imgclass="emoji"src="//telegram.org/img/emoji/40/F09F918D.png"width="20"height="20"alt="👍"/> and 1000 custom emoji <imgclass="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 <imgclass="emoji"src="//telegram.org/img/emoji/40/F09F918E.png"width="20"height="20"alt="👎"/> reaction, because that would raise the number of unique reactions to 3 > 2. (integer)</p>
<p>Maximum number of reactions that can be marked as allowed in a chat using <ahref="/constructor/chatReactionsSome">chatReactionsSome</a>. (integer)</p>
<p>Defines how many <ahref="/api/premium">Premium stickers</a> to show in the sticker suggestion popup when entering an emoji into the text field, see the <ahref="/api/stickers#sticker-suggestions">sticker docs for more info</a> (integer, defaults to 0)</p>
<p>For <ahref="/api/premium">Premium users</a>, used to define the suggested sticker list, see the <ahref="/api/stickers#sticker-suggestions">sticker docs for more info</a> (integer, defaults to 2)</p>
<p>The user can't purchase <ahref="/api/premium">Telegram Premium</a>. The app must also hide all Premium features, including stars for other users, et cetera. (boolean)</p>
<p>The maximum number of stickers a non-<ahref="/api/premium">Premium</a> user may <ahref="/api/stickers#favorite-stickersets">add to Favorites »</a> (integer)</p>
<p>The maximum number of stickers a <ahref="/api/premium">Premium</a> user may <ahref="/api/stickers#favorite-stickersets">add to Favorites »</a> (integer)</p>
<p>The maximum number of public <ahref="/api/channel">channels or supergroups</a> a non-<ahref="/api/premium">Premium</a> user may create (integer)</p>
<p>The maximum number of file parts uploadable by non-<ahref="/api/premium">Premium</a> users (integer, the maximum file size can be extrapolated by multiplying this value by <code>524288</code>, the biggest possible chunk size)</p>
<p>The maximum number of file parts uploadable by <ahref="/api/premium">Premium</a> users (integer, the maximum file size can be extrapolated by multiplying this value by <code>524288</code>, the biggest possible chunk size)</p>
<p>Array of string identifiers, indicating the order of <ahref="/api/premium">Telegram Premium</a> features in the Telegram Premium promotion popup, <ahref="/api/premium#telegram-premium-features">see here for the possible values »</a></p>
<p>Contains the username of the official <ahref="/api/premium">Telegram Premium</a> bot that may be used to buy a <ahref="/api/premium">Telegram Premium</a> subscription, see <ahref="/api/premium">here for detailed instructions »</a> (string)</p>
<p>Contains an <ahref="/api/payments">invoice slug</a> that may be used to buy a <ahref="/api/premium">Telegram Premium</a> subscription, see <ahref="/api/premium">here for detailed instructions »</a> (string)</p>
<p>Whether a gift icon should be shown in the attachment menu in private chats with users, offering the current user to gift a <ahref="/api/premium">Telegram Premium</a> subscription to the other user in the chat. (boolean)</p>
<p>Whether a gift icon should be shown in the text bar in private chats with users (ie like the <code>/</code> icon in chats with bots), offering the current user to gift a <ahref="/api/premium">Telegram Premium</a> subscription to the other user in the chat. Can only be true if <code>premium_gift_attach_menu_icon</code> is also true. (boolean)</p>
<p>Users that import a folder using a <ahref="/api/links#chat-folder-links">chat folder deep link »</a> should retrieve additions made to the folder by invoking <ahref="/method/chatlists.getChatlistUpdates">chatlists.getChatlistUpdates</a> at most every <code>chatlist_update_period</code> seconds. (integer)</p>
<p>Maximum number of per-folder <ahref="/api/links#chat-folder-links">chat folder deep links »</a> that can be created by non-<ahref="/api/premium">Premium</a> users. (integer)</p>
<p>Maximum number of per-folder <ahref="/api/links#chat-folder-links">chat folder deep links »</a> that can be created by <ahref="/api/premium">Premium</a> users. (integer)</p>
<p>A soft limit, specifying the maximum number of files that should be downloaded in parallel from the same DC, for files smaller than 20MB. (integer)</p>
<p>A soft limit, specifying the maximum number of files that should be downloaded in parallel from the same DC, for files bigger than 20MB. (integer)</p>
<p>The exact list of users that viewed the story will be hidden from the poster this many seconds after the story expires. (integer)</p>
<p>This limit applies <strong>only</strong> to non-<ahref="/api/premium">Premium</a> users, <ahref="/api/premium">Premium</a> users can <strong>always</strong> access the viewer list.</p>
<p>Enabling <ahref="/api/stories#stealth-mode">stories stealth mode</a> with the <code>past</code> flag will erase views of any story opened in the past <code>stories_stealth_past_period</code> seconds. (integer)</p>
<p>Enabling <ahref="/api/stories#stealth-mode">stories stealth mode</a> with the <code>future</code> flag will hide views of any story opened in the next <code>stories_stealth_future_period</code> seconds. (integer)</p>
<p>After enabling <ahref="/api/stories#stealth-mode">stories stealth mode</a>, this many seconds must elapse before the user is allowed to enable it again. (integer)</p>
<p>Maximum number of <ahref="/api/stories#media-areas">story reaction media areas »</a> that can be added to a story by non-<ahref="/api/premium">Premium</a> users. (integer)</p>
<p>Maximum number of <ahref="/api/stories#media-areas">story reaction media areas »</a> that can be added to a story by <ahref="/api/premium">Premium</a> users. (integer)</p>
<p>Username of the inline bot to use to generate venue location tags for stories, see <ahref="/api/stories#location-tags">here »</a> for more info. (string)</p>
<p>ID of the official Telegram user that will post stories about new Telegram features: stories posted by this user should be shown on the <ahref="/api/stories#watching-stories">active or active and hidden stories bar</a> just like for contacts, even if the user was removed from the contact list. (integer, defaults to <code>777000</code>)</p>
<p>Whether <ahref="/api/entities">styled text entities</a> and links in story text captions can be used by all users (<code>enabled</code>), only [Premium](/api/premium users) (<code>premium</code>), or no one (<code>disabled</code>). (string)</p>
<p>This field is used both when posting stories, to indicate to the user whether they can use entities, and when viewing stories, to hide entities (client-side) on stories posted by users whose <ahref="/api/premium">Premium</a> subscription has expired (if <code>stories_entities == "premium"</code> and <ahref="/constructor/user">user</a>.<code>premium</code> is not set, or if <code>stories_entities == "disabled"</code>). </p>
<p>The maximum number of countries that can be specified when restricting the set of participating countries in a <ahref="/api/giveaways">giveaway</a>. (itneger)</p>
<p>The number of <ahref="/api/boost">boosts</a> that will be gained by a channel for each winner of a <ahref="/api/giveaways">giveaway</a>. (integer)</p>
<p>The number of additional <ahref="/api/boost">boost slots</a> that the current user will receive when <ahref="/api/premium#gifting-telegram-premium">gifting a Telegram Premium subscription</a>. </p>
<p>The maximum number of <ahref="/api/transcribe">speech recognition »</a> calls per week for non-<ahref="/api/premium">Premium</a> users. (integer)</p>
<p>The maximum allowed duration of media in seconds for <ahref="/api/transcribe">speech recognition »</a> for non-<ahref="/api/premium">Premium</a> users. (integer)</p>
<p>The maximum number of similar channels that can be recommended by <ahref="/method/channels.getChannelRecommendations">channels.getChannelRecommendations»</a> to non-<ahref="/api/premium">Premium</a> users. (integer)</p>
<p>The maximum number of similar channels that can be recommended by <ahref="/method/channels.getChannelRecommendations">channels.getChannelRecommendations»</a> to <ahref="/api/premium">Premium</a> users. (integer)</p>
<p>After reaching at least this <ahref="/api/boost">boost level »</a>, channels gain the ability to change their <ahref="/api/colors">message accent palette emoji »</a>. (integer)</p>
<p>After reaching at least this <ahref="/api/boost">boost level »</a>, channels gain the ability to change their <ahref="/api/colors">profile accent palette emoji »</a>. (integer)</p>
<p>After reaching at least this <ahref="/api/boost">boost level »</a>, channels gain the ability to change their <ahref="/api/emoji-status">status emoji »</a>. (integer)</p>
<p>After reaching at least this <ahref="/api/boost">boost level »</a>, channels gain the ability to set a <ahref="/api/wallpapers#channel-wallpapers">fill channel wallpaper, see here » for more info</a>. (integer)</p>
<p>After reaching at least this <ahref="/api/boost">boost level »</a>, channels gain the ability to set any custom <ahref="/api/wallpapers">wallpaper</a>, not just <ahref="/api/wallpapers">fill channel wallpapers, see here » for more info</a>. (integer)</p>
A full list of these parameters can be seen in the <ahref="#client-configuration">Client Configuration section »</a>, but we're mostly interested in the <code>pending_suggestions</code> and <code>autoarchive_setting_available</code> fields of the returned JSON object: </p>
<li><code>autoarchive_setting_available</code> - Whether clients <em>can</em> invoke <ahref="/method/account.setGlobalPrivacySettings">account.setGlobalPrivacySettings</a> with <ahref="/constructor/globalPrivacySettings"><code>globalPrivacySettings.archive_and_mute_new_noncontact_peers = boolTrue</code></a>, to automatically archive and mute new incoming chats from non-contacts. (boolean)</li>
<li><code>pending_suggestions</code> - Contains a list of suggestions that should be actively shown as a tooltip to the user. Array of strings, possible values shown below:<ul>
<li><code>"AUTOARCHIVE_POPULAR"</code> - Users <em>should</em> invoke <ahref="/method/account.setGlobalPrivacySettings">account.setGlobalPrivacySettings</a> with <ahref="/constructor/globalPrivacySettings"><code>globalPrivacySettings.archive_and_mute_new_noncontact_peers = boolTrue</code></a>, to automatically archive and mute new incoming chats from non-contacts.</li>
<li><code>"VALIDATE_PASSWORD"</code> - Users should make sure they still remember their <ahref="/api/srp">2-step verification password</a>.</li>
<li><code>"VALIDATE_PHONE_NUMBER"</code> - Users should check whether their <ahref="/api/auth">authorization phone number</a> is correct and change the phone number if it is inaccessible.</li>
<li><code>"NEWCOMER_TICKS"</code> - Show the user a hint about the meaning of one and two ticks on sent messages.</li>
<li><code>"SETUP_PASSWORD"</code> - Show the user a hint, asking them to check whether they still remember their <ahref="/api/srp">2FA password</a></li>
<li><code>"PREMIUM_ANNUAL"</code> - Suggests the user to subscribe to the Premium subscription (with annual payments)</li>
<li><code>"PREMIUM_UPGRADE"</code> - Suggests the user to upgrade their existing Premium subscription from monthly payments to annual payments</li>
<li><code>"PREMIUM_RESTORE"</code> - Suggests the user to restore a recently expired Premium subscription</li>
<p>Some <ahref="/api/channel">channel/supergroup</a>-related suggestions can also be contained in the <code>pending_suggestions</code> field of the <ahref="/constructor/channelFull">channelFull</a> constructor, returned by <ahref="/method/channels.getFullChannel">channels.getFullChannel</a>.<br>
Here's a list of possible suggestions: </p>
<ul>
<li><code>CONVERT_GIGAGROUP</code> - The <ahref="/api/channel">supergroup</a> has many participants: the admin should call <ahref="/method/channels.convertToGigagroup">channels.convertToGigagroup</a> to convert it to a gigagroup.</li>
<p><ahref="/method/help.dismissSuggestion">help.dismissSuggestion</a> can be used to dismiss a suggestion.<br>
Pass <ahref="/constructor/inputPeerEmpty">inputPeerEmpty</a> to <code>peer</code> for <ahref="#basic-suggestions">basic suggestions</a> and the <ahref="/api/channel">channel/supergroup</a>'s peer for <ahref="#channel-suggestions">channel suggestions</a>.</p>
<li><ahref="/method/help.getAppUpdate">help.getAppUpdate</a> - Get info about an application update, can contain the updated application binary in the attached document</li>
<li><ahref="/method/help.getInviteText">help.getInviteText</a> - Returns a localized invitation message that can be sent via SMS to contacts that haven't signed up to Telegram yet</li>
<p>Typically, before a user <ahref="/api/auth#sign-in-sign-up">signs up</a> by invoking <ahref="/method/auth.signUp">auth.signUp</a>, apps should show a pop-up (if the <code>popup</code> flag of the <ahref="/constructor/help.termsOfService">help.termsOfService</a> method is set), asking the user to accept Telegram's terms of service; in case of denial, the user is to be returned to the initial page of the login flow. </p>
<p>When signing up for the first time, the <ahref="/constructor/help.termsOfService">help.termsOfService</a> is to be obtained from the <ahref="/constructor/auth.authorizationSignUpRequired">auth.authorizationSignUpRequired</a> constructor returned by the <ahref="/method/auth.signIn">auth.signIn</a>. </p>
<p>After signing up, or when logging in as an existing user, apps are supposed to call <ahref="/method/help.getTermsOfServiceUpdate">help.getTermsOfServiceUpdate</a> to check for any updates to the Terms of Service; this call should be repeated after <code>expires</code> seconds have elapsed.<br>
If an update to the Terms Of Service is available, clients are supposed to show a consent popup; if accepted, clients should call <ahref="/method/help.acceptTermsOfService">help.acceptTermsOfService</a>, providing the <ahref="/constructor/help.termsOfService">termsOfService <code>id</code> JSON object</a>; in case of denial, clients are to delete the account using <ahref="/method/account.deleteAccount">account.deleteAccount</a>, providing <code>Decline ToS update</code> as deletion <code>reason</code>. </p>
<h3><aclass="anchor"href="#telegram-support-info"id="telegram-support-info"name="telegram-support-info"><iclass="anchor-icon"></i></a>Telegram support info</h3>
<p>These methods can be used for fetching info about Telegram's support user, that users can use to get support and ask questions about the app. </p>
<ul>
<li><ahref="/method/help.getSupport">help.getSupport</a> - Will return the <ahref="/constructor/user">user</a> object that can be used for contacting support.</li>
<li><ahref="/method/help.getSupportName">help.getSupportName</a> - Will return a localized name for the support chat.</li>
</ul>
<h3><aclass="anchor"href="#country-information-and-login-phone-patterns"id="country-information-and-login-phone-patterns"name="country-information-and-login-phone-patterns"><iclass="anchor-icon"></i></a>Country information and login phone patterns</h3>
<p><ahref="/method/help.getCountriesList">help.getCountriesList</a> can be used to fetch a list of localized names for all available countries and phone code patterns for logging in. </p>
<p>The phone code pattern should be used when showing the <ahref="/api/auth">login</a> screen, or when changing phone number: for example, a pattern value of <code>XXX XXX XXX</code> with <code>country_code</code><code>+39</code> indicates that the phone field for login should accept a spaced pattern like <code>+39 123 456 789</code>.<br>
Also, the beginning of the national part of the phone number (<code>123 456 789</code>) should match one of the <code>prefixes</code>, if any were returned. </p>
<p>Additionally, the <code>fragment_prefixes</code><ahref="/api/config#client-configuration">client configuration parameter</a> contains a list of phone number prefixes for anonymous <ahref="https://fragment.com">Fragment</a> phone numbers.</p></div>