mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-01-01 09:06:24 +01:00
Update content of files
This commit is contained in:
parent
d61564be01
commit
36687f984b
37 changed files with 265 additions and 453 deletions
|
@ -51,9 +51,10 @@
|
|||
<p>To show a nicely formatted and validated phone number field, the <a href="/constructor/help.countriesList">help.countriesList</a> constructor can be obtained using the <a href="/method/help.getCountriesList">help.getCountriesList</a> method.<br>
|
||||
The <a href="/constructor/help.countriesList">help.countriesList</a> config is then used as described <a href="/api/config#country-information-and-login-phone-patterns">here »</a>. </p>
|
||||
<p>Then, a text message containing an authorization code is sent to the user's phone using <a href="/method/auth.sendCode">auth.sendCode</a>.<br>
|
||||
However, this is not always the case, if logout tokens are used: </p>
|
||||
<h4><a class="anchor" href="#logout-tokens" id="logout-tokens" name="logout-tokens"><i class="anchor-icon"></i></a>Logout tokens</h4>
|
||||
However, this is not always the case, if future auth tokens are used: </p>
|
||||
<h4><a class="anchor" href="#future-auth-tokens" id="future-auth-tokens" name="future-auth-tokens"><i class="anchor-icon"></i></a>Future auth tokens</h4>
|
||||
<p>When invoking <a href="/method/auth.logOut">auth.logOut</a> on a previously authorized session with 2FA enabled, the server may return a <code>future_auth_token</code>, which should be stored in the local database.<br>
|
||||
A <code>future_auth_token</code> is also contained in the <a href="/constructor/auth.authorization">auth.authorization</a> returned when logging in.<br>
|
||||
At all times, the logout token database should contain at most 20 tokens: evict older tokens as new tokens are added.<br>
|
||||
When invoking <a href="/method/auth.sendCode">auth.sendCode</a>, all logout tokens present in the database should be provided to <code>codeSettings.logout_tokens</code>.<br>
|
||||
If any of the logout tokens matches the account we're trying to login into and the token hasn't expired, <a href="/method/auth.sendCode">auth.sendCode</a> will directly return a <code>SESSION_PASSWORD_NEEDED</code> RPC error, directly asking the user to <a href="#2fa">enter the 2FA password</a>, without sending any authorization code. </p>
|
||||
|
|
|
@ -153,6 +153,43 @@ The webview must be closed after invoking the <a href="/method/messages.sendWebV
|
|||
<p>To open them, clients should call <a href="/method/messages.requestWebView">messages.requestWebView</a>, and then open a webview using the <code>url</code> contained in the returned <a href="/constructor/webViewResultUrl">webViewResultUrl</a>. </p>
|
||||
<p>After loading the webview, until it is closed by a <a href="/api/web-events#web-app-close">web_app_close event</a>, the user client must invoke <a href="/method/messages.prolongWebView">messages.prolongWebView</a> every 60 seconds: if the method call returns <code>QUERY_ID_INVALID</code>, the webview must be closed. </p>
|
||||
<p>The opened URL's fragment parameters already contain basic information about the user and a <code>query_id</code> parameter, that is exposed by the <a href="/bots/webapps">bot web apps JS library</a>: this <code>query_id</code> can then be used <strong>by the bot</strong> to invoke <a href="/method/messages.sendWebViewResultMessage">messages.sendWebViewResultMessage</a>, passing an <a href="/type/InputBotInlineResult">InputBotInlineResult</a> constructor that will automatically send a message with optionally attached media, and even inline buttons on behalf of the user. </p>
|
||||
<h3><a class="anchor" href="#bot-web-apps" id="bot-web-apps" name="bot-web-apps"><i class="anchor-icon"></i></a>Bot web apps</h3>
|
||||
<p>Schema:</p>
|
||||
<pre><code><a href='/constructor/inputBotAppID'>inputBotAppID</a>#a920bd7a id:<a href='/type/long'>long</a> access_hash:<a href='/type/long'>long</a> = <a href='/type/InputBotApp'>InputBotApp</a>;
|
||||
<a href='/constructor/inputBotAppShortName'>inputBotAppShortName</a>#908c0407 bot_id:<a href='/type/InputUser'>InputUser</a> short_name:<a href='/type/string'>string</a> = <a href='/type/InputBotApp'>InputBotApp</a>;
|
||||
|
||||
<a href='/constructor/botAppNotModified'>botAppNotModified</a>#5da674b7 = <a href='/type/BotApp'>BotApp</a>;
|
||||
<a href='/constructor/botApp'>botApp</a>#95fcd1d6 flags:<a href='/type/%23'>#</a> id:<a href='/type/long'>long</a> access_hash:<a href='/type/long'>long</a> short_name:<a href='/type/string'>string</a> title:<a href='/type/string'>string</a> description:<a href='/type/string'>string</a> photo:<a href='/type/Photo'>Photo</a> document:flags.0?<a href='/type/Document'>Document</a> hash:<a href='/type/long'>long</a> = <a href='/type/BotApp'>BotApp</a>;
|
||||
|
||||
<a href='/constructor/messages.botApp'>messages.botApp</a>#eb50adf5 flags:<a href='/type/%23'>#</a> inactive:flags.0?<a href='/constructor/true'>true</a> request_write_access:flags.1?<a href='/constructor/true'>true</a> app:<a href='/type/BotApp'>BotApp</a> = <a href='/type/messages.BotApp'>messages.BotApp</a>;
|
||||
|
||||
<a href='/constructor/appWebViewResultUrl'>appWebViewResultUrl</a>#3c1b4f0d url:<a href='/type/string'>string</a> = <a href='/type/AppWebViewResult'>AppWebViewResult</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
<a href='/method/messages.getBotApp'>messages.getBotApp</a>#34fdc5c3 app:<a href='/type/InputBotApp'>InputBotApp</a> hash:<a href='/type/long'>long</a> = <a href='/type/messages.BotApp'>messages.BotApp</a>;
|
||||
|
||||
<a href='/method/messages.requestAppWebView'>messages.requestAppWebView</a>#8c5a3b3c flags:<a href='/type/%23'>#</a> write_allowed:flags.0?<a href='/constructor/true'>true</a> peer:<a href='/type/InputPeer'>InputPeer</a> app:<a href='/type/InputBotApp'>InputBotApp</a> start_param:flags.1?<a href='/type/string'>string</a> theme_params:flags.2?<a href='/type/DataJSON'>DataJSON</a> platform:<a href='/type/string'>string</a> = <a href='/type/AppWebViewResult'>AppWebViewResult</a>;
|
||||
|
||||
<a href='/method/messages.prolongWebView'>messages.prolongWebView</a>#7ff34309 flags:<a href='/type/%23'>#</a> silent:flags.5?<a href='/constructor/true'>true</a> peer:<a href='/type/InputPeer'>InputPeer</a> bot:<a href='/type/InputUser'>InputUser</a> query_id:<a href='/type/long'>long</a> reply_to_msg_id:flags.0?<a href='/type/int'>int</a> top_msg_id:flags.9?<a href='/type/int'>int</a> send_as:flags.13?<a href='/type/InputPeer'>InputPeer</a> = <a href='/type/Bool'>Bool</a>;</code></pre>
|
||||
<p>Another way to open web apps is by using <a href="/api/links#bot-web-app-links">bot web app links »</a>. </p>
|
||||
<p>These links are different from <a href="/api/links#bot-attachment-menu-links">bot attachment menu deep links »</a>, because they don't require the user to install an attachment menu, and a single bot can offer multiple web apps, distinguished by their <code>short_name</code>. </p>
|
||||
<p>These links should be handled as follows: </p>
|
||||
<ul>
|
||||
<li>Check if <code>bot_username</code> parameter of the link is indeed a bot username, if so then</li>
|
||||
<li>Invoke <a href="/method/messages.getBotApp">messages.getBotApp</a>, passing an <a href="/constructor/inputBotAppShortName">inputBotAppShortName</a> with the <code>short_name</code> contained in the <code>appname</code> query string parameter.
|
||||
If the client has already encountered an app with this short name from the same bot before, pass the <code>hash</code> of the cached <a href="/constructor/botApp">botApp</a> constructor to <a href="/method/messages.getBotApp">messages.getBotApp</a>.</li>
|
||||
<li>If a <a href="/constructor/messages.botApp">messages.botApp</a> constructor is returned, open the web app by invoking <a href="/method/messages.requestAppWebView">messages.requestAppWebView</a>, generating an <a href="/constructor/inputBotAppID">inputBotAppID</a> constructor from <code>id</code> and <code>access_hash</code> of the returned <a href="/constructor/botApp">botApp</a>, or from previously cached information if we already met the bot app and <a href="/constructor/botAppNotModified">botAppNotModified</a> was returned. <ul>
|
||||
<li>If the client has clicked on the link in a Telegram chat, pass the chat's peer information into <code>peer</code>; otherwise pass the bot's peer information, instead.</li>
|
||||
<li>If the <a href="/constructor/messages.botApp">messages.botApp</a>.<code>inactive</code> flag is set, ask confirmation from the user before opening the web app.</li>
|
||||
<li>If the <code>startapp</code> query string parameter is present, pass it to <code>start_param</code> when invoking <a href="/method/messages.requestAppWebView">messages.requestAppWebView</a>.</li>
|
||||
<li>If the <a href="/constructor/messages.botApp">messages.botApp</a>.<code>request_write_access</code> flag is set, the bot is asking permission to send messages to the user: if the user agrees, set the <code>write_allowed</code> flag when invoking <a href="/method/messages.requestAppWebView">messages.requestAppWebView</a>.</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<p>Finally, open the webview using the <code>url</code> contained in the returned <a href="/constructor/appWebViewResultUrl">appWebViewResultUrl</a>. </p>
|
||||
<p>Since there is no linked inline query, <code>web_app_data_send</code> events must be ignored.<br>
|
||||
The bot can, however, write to the user directly if it already has a chat with the user or if it requested permission via <code>request_write_access</code> and the user granted it with <code>write_allowed</code>. </p>
|
||||
<h3><a class="anchor" href="#theme-parameters" id="theme-parameters" name="theme-parameters"><i class="anchor-icon"></i></a>Theme parameters</h3>
|
||||
<p>Bot web apps can be themed according to the following theme parameters, passed as a JSON object to the <code>theme_params</code> parameter of the <a href="/method/messages.requestSimpleWebView">messages.requestSimpleWebView</a> and <a href="/method/messages.requestWebView">messages.requestWebView</a> methods. </p>
|
||||
<p>This JSON object has the the following keys, containing color theme information (hex string, RGB, no alpha) to pass to the web app:</p>
|
||||
|
|
|
@ -57,7 +57,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/messages.getBotApp">messages.getBotApp</a> - </li>
|
||||
<li>Added <a href="/method/messages.getBotApp">messages.getBotApp</a> - Obtain information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a></li>
|
||||
<li>Added <a href="/method/messages.requestAppWebView">messages.requestAppWebView</a> - Open a <a href="/bots/webapps">bot web app</a> from a <a href="/api/links#bot-web-app-links">bot web app deep link</a>, sending over user information after user confirmation.</li>
|
||||
<li>Added <a href="/method/bots.setBotInfo">bots.setBotInfo</a> - Set our about text and description (bots only)</li>
|
||||
<li>Added <a href="/method/bots.getBotInfo">bots.getBotInfo</a> - Get our about text and description (bots only)</li>
|
||||
|
@ -72,10 +72,10 @@
|
|||
<ul>
|
||||
<li>Added <a href="/constructor/inputBotAppID">inputBotAppID</a> - </li>
|
||||
<li>Added <a href="/constructor/inputBotAppShortName">inputBotAppShortName</a> - </li>
|
||||
<li>Added <a href="/constructor/botAppNotModified">botAppNotModified</a> - </li>
|
||||
<li>Added <a href="/constructor/botApp">botApp</a> - </li>
|
||||
<li>Added <a href="/constructor/botAppNotModified">botAppNotModified</a> - Bot app info hasn't changed.</li>
|
||||
<li>Added <a href="/constructor/botApp">botApp</a> - Contains information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a>.</li>
|
||||
<li>Added <a href="/constructor/messages.botApp">messages.botApp</a> - </li>
|
||||
<li>Added <a href="/constructor/appWebViewResultUrl">appWebViewResultUrl</a> - </li>
|
||||
<li>Added <a href="/constructor/appWebViewResultUrl">appWebViewResultUrl</a> - Contains the link that must be used to open a <a href="/api/bots/webapps#bot-web-apps">bot web app</a>.</li>
|
||||
<li>Added <a href="/constructor/inlineBotWebView">inlineBotWebView</a> - </li>
|
||||
<li>Added <a href="/constructor/readParticipantDate">readParticipantDate</a> - </li>
|
||||
<li>Added <a href="/constructor/updateGroupInvitePrivacyForbidden">updateGroupInvitePrivacyForbidden</a> - </li>
|
||||
|
@ -189,7 +189,7 @@
|
|||
<li>Added <a href="/constructor/messages.translateResult">messages.translateResult</a> - </li>
|
||||
<li>Added <a href="/constructor/autoSaveSettings">autoSaveSettings</a> - </li>
|
||||
<li>Added <a href="/constructor/autoSaveException">autoSaveException</a> - </li>
|
||||
<li>Added <a href="/constructor/account.autoSaveSettings">account.autoSaveSettings</a> - </li>
|
||||
<li>Added <a href="/constructor/account.autoSaveSettings">account.autoSaveSettings</a> - Contains media autosave settings</li>
|
||||
<li>Added <a href="/constructor/updateAutoSaveSettings">updateAutoSaveSettings</a> - </li>
|
||||
</ul>
|
||||
<h5><a class="anchor" href="#changed-constructors" id="changed-constructors" name="changed-constructors"><i class="anchor-icon"></i></a>Changed Constructors</h5>
|
||||
|
@ -323,8 +323,8 @@
|
|||
<ul>
|
||||
<li>Added <a href="/method/channels.toggleAntiSpam">channels.toggleAntiSpam</a> - Enable or disable the <a href="/api/antispam">native antispam system</a>.</li>
|
||||
<li>Added <a href="/method/channels.reportAntiSpamFalsePositive">channels.reportAntiSpamFalsePositive</a> - Report a <a href="/api/antispam">native antispam</a> false positive</li>
|
||||
<li>Added <a href="/method/messages.setDefaultHistoryTTL">messages.setDefaultHistoryTTL</a> - </li>
|
||||
<li>Added <a href="/method/messages.getDefaultHistoryTTL">messages.getDefaultHistoryTTL</a> - </li>
|
||||
<li>Added <a href="/method/messages.setDefaultHistoryTTL">messages.setDefaultHistoryTTL</a> - Changes the default value of the Time-To-Live setting, applied to all new chats.</li>
|
||||
<li>Added <a href="/method/messages.getDefaultHistoryTTL">messages.getDefaultHistoryTTL</a> - Gets the default value of the Time-To-Live setting, applied to all new chats.</li>
|
||||
<li>Added <a href="/method/contacts.exportContactToken">contacts.exportContactToken</a> - Generates a <a href="/api/links#temporary-profile-links">temporary profile link</a> for the currently logged-in user.</li>
|
||||
<li>Added <a href="/method/contacts.importContactToken">contacts.importContactToken</a> - Obtain user info from a <a href="/api/links#temporary-profile-links">temporary profile link</a>.</li>
|
||||
</ul>
|
||||
|
@ -336,7 +336,7 @@
|
|||
</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/defaultHistoryTTL">defaultHistoryTTL</a> - </li>
|
||||
<li>Added <a href="/constructor/defaultHistoryTTL">defaultHistoryTTL</a> - Contains info about the default value of the Time-To-Live setting, applied to all new chats.</li>
|
||||
<li>Added <a href="/constructor/auth.codeTypeFragmentSms">auth.codeTypeFragmentSms</a> - </li>
|
||||
<li>Added <a href="/constructor/auth.sentCodeTypeFragmentSms">auth.sentCodeTypeFragmentSms</a> - </li>
|
||||
<li>Added <a href="/constructor/exportedContactToken">exportedContactToken</a> - Describes a <a href="/api/links#temporary-profile-links">temporary profile link</a>.</li>
|
||||
|
@ -402,10 +402,10 @@
|
|||
<li>Added <a href="/method/channels.toggleUsername">channels.toggleUsername</a> - Associate or dissociate a purchased <a href="https://fragment.com">fragment.com</a> username to a <a href="/api/channel">supergroup or channel</a>.</li>
|
||||
<li>Added <a href="/method/channels.deactivateAllUsernames">channels.deactivateAllUsernames</a> - Disable all purchased usernames of a supergroup or channel</li>
|
||||
<li>Added <a href="/method/channels.toggleForum">channels.toggleForum</a> - Enable or disable <a href="/api/forum">forum functionality</a> in a supergroup.</li>
|
||||
<li>Added <a href="/method/channels.createForumTopic">channels.createForumTopic</a> - Create a <a href="/api/forum">forum topic</a>.</li>
|
||||
<li>Added <a href="/method/channels.createForumTopic">channels.createForumTopic</a> - Create a <a href="/api/forum">forum topic</a>; requires <a href="/api/rights"><code>manage_topics</code> rights</a>.</li>
|
||||
<li>Added <a href="/method/channels.getForumTopics">channels.getForumTopics</a> - Get <a href="/api/forum">topics of a forum</a></li>
|
||||
<li>Added <a href="/method/channels.getForumTopicsByID">channels.getForumTopicsByID</a> - Get forum topics by their ID</li>
|
||||
<li>Added <a href="/method/channels.editForumTopic">channels.editForumTopic</a> - Edit <a href="/api/forum">forum topic</a></li>
|
||||
<li>Added <a href="/method/channels.editForumTopic">channels.editForumTopic</a> - Edit <a href="/api/forum">forum topic</a>; requires <a href="/api/rights"><code>manage_topics</code> rights</a>.</li>
|
||||
<li>Added <a href="/method/channels.updatePinnedForumTopic">channels.updatePinnedForumTopic</a> - Pin or unpin <a href="/api/forum">forum topics</a></li>
|
||||
<li>Added <a href="/method/channels.deleteTopicHistory">channels.deleteTopicHistory</a> - Delete message history of a <a href="/api/forum">forum topic</a></li>
|
||||
</ul>
|
||||
|
@ -437,7 +437,7 @@
|
|||
<li>Added <a href="/constructor/channelAdminLogEventActionDeleteTopic">channelAdminLogEventActionDeleteTopic</a> - </li>
|
||||
<li>Added <a href="/constructor/channelAdminLogEventActionPinTopic">channelAdminLogEventActionPinTopic</a> - </li>
|
||||
<li>Added <a href="/constructor/forumTopicDeleted">forumTopicDeleted</a> - </li>
|
||||
<li>Added <a href="/constructor/forumTopic">forumTopic</a> - </li>
|
||||
<li>Added <a href="/constructor/forumTopic">forumTopic</a> - Represents a <a href="/api/forum#forum-topics">forum topic</a>.</li>
|
||||
<li>Added <a href="/constructor/messages.forumTopics">messages.forumTopics</a> - </li>
|
||||
<li>Added <a href="/constructor/messageActionTopicCreate">messageActionTopicCreate</a> - </li>
|
||||
<li>Added <a href="/constructor/messageActionTopicEdit">messageActionTopicEdit</a> - </li>
|
||||
|
@ -1283,7 +1283,7 @@ Also, discussion group admins can now <a href="/api/discussion#requiring-users-t
|
|||
<a href="/method/messages.getAvailableReactions">messages.getAvailableReactions</a>#18dea0ac hash:<a href="/type/int">int</a> = <a href="/type/messages.AvailableReactions">messages.AvailableReactions</a>;
|
||||
<a href="/method/messages.setDefaultReaction">messages.setDefaultReaction</a>#d960c4d4 reaction:<a href="/type/string">string</a> = <a href="/type/Bool">Bool</a>;<br></code></pre></div>
|
||||
<h3><a class="anchor" href="#layer-135" id="layer-135" name="layer-135"><i class="anchor-icon"></i></a><a href="/schema?layer=135">Layer 135</a></h3>
|
||||
<p><a href="https://telegram.org/blog/protected-content-delete-by-date-and-more#anonymous-posting-in-public-groups">Anonymous posting in public groups</a>, <a href="https://telegram.org/blog/protected-content-delete-by-date-and-more#protected-content-in-groups-and-channels">protected content</a>, <a href="https://telegram.org/blog/protected-content-delete-by-date-and-more#manage-connected-devices">device management</a>, <a href="https://telegram.org/blog/protected-content-delete-by-date-and-more#new-ways-to-log-in-via-call">login via missed call</a>, <a href="/constructor/inputKeyboardButtonUserProfile">mention users in inline buttons even if they don't have a username</a>, <a href="/api/auth#logout-tokens">logout tokens</a>, improvements to join requests and stickers.</p>
|
||||
<p><a href="https://telegram.org/blog/protected-content-delete-by-date-and-more#anonymous-posting-in-public-groups">Anonymous posting in public groups</a>, <a href="https://telegram.org/blog/protected-content-delete-by-date-and-more#protected-content-in-groups-and-channels">protected content</a>, <a href="https://telegram.org/blog/protected-content-delete-by-date-and-more#manage-connected-devices">device management</a>, <a href="https://telegram.org/blog/protected-content-delete-by-date-and-more#new-ways-to-log-in-via-call">login via missed call</a>, <a href="/constructor/inputKeyboardButtonUserProfile">mention users in inline buttons even if they don't have a username</a>, <a href="/api/auth#future-auth-tokens">future auth tokens</a>, improvements to join requests and stickers.</p>
|
||||
<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>
|
||||
|
@ -1324,7 +1324,7 @@ Also, discussion group admins can now <a href="/api/discussion#requiring-users-t
|
|||
<li>Added <a href="/constructor/channelAdminLogEventActionSendMessage">channelAdminLogEventActionSendMessage</a> - A message was posted in a channel</li>
|
||||
<li>Added <a href="/constructor/auth.codeTypeMissedCall">auth.codeTypeMissedCall</a> - The next time, the authentication code will be delivered via an immediately canceled incoming call, handled manually by the user.</li>
|
||||
<li>Added <a href="/constructor/auth.sentCodeTypeMissedCall">auth.sentCodeTypeMissedCall</a> - The code will be sent via a flash phone call, that will be closed immediately. The last digits of the phone number that calls are the code that must be entered manually by the user.</li>
|
||||
<li>Added <a href="/constructor/auth.loggedOut">auth.loggedOut</a> - <a href="/api/auth#logout-tokens">Logout token »</a> to be used on subsequent authorizations</li>
|
||||
<li>Added <a href="/constructor/auth.loggedOut">auth.loggedOut</a> - <a href="/api/auth#future-auth-tokens">Future auth token »</a> to be used on subsequent authorizations</li>
|
||||
</ul>
|
||||
<h5><a class="anchor" href="#changed-constructors" id="changed-constructors" name="changed-constructors"><i class="anchor-icon"></i></a>Changed Constructors</h5>
|
||||
<ul>
|
||||
|
|
|
@ -830,18 +830,8 @@ tg://resolve?domain=<bot_username>&startgroup&admin=<permission
|
|||
</table>
|
||||
<h3><a class="anchor" href="#bot-web-app-links" id="bot-web-app-links" name="bot-web-app-links"><i class="anchor-icon"></i></a>Bot web app links</h3>
|
||||
<p>Used to share <a href="/api/bots/webapps">bot web apps</a>. </p>
|
||||
<p>These links should be handled as follows: </p>
|
||||
<ul>
|
||||
<li>Check if <code>bot_username</code> is indeed a bot username, if so then</li>
|
||||
<li>Invoke <a href="/method/messages.getBotApp">messages.getBotApp</a>, passing an <a href="/constructor/inputBotAppShortName">inputBotAppShortName</a> with the <code>short_name</code> contained in the <code>appname</code> query string parameter.</li>
|
||||
<li>If a <a href="/constructor/messages.botApp">messages.botApp</a> constructor is returned, open the web app by invoking <a href="/method/messages.requestAppWebView">messages.requestAppWebView</a>.<ul>
|
||||
<li>If the client has clicked on the link in a Telegram chat, pass the chat's peer information into <code>peer</code>; otherwise pass the bot's peer information, instead.</li>
|
||||
<li>If the <a href="/constructor/messages.botApp">messages.botApp</a>.<code>inactive</code> flag is set, ask confirmation from the user before opening the web app.</li>
|
||||
<li>If the <code>startapp</code> query string parameter is present, pass it to <code>start_param</code> when invoking <a href="/method/messages.requestAppWebView">messages.requestAppWebView</a>.</li>
|
||||
<li>If the <a href="/constructor/messages.botApp">messages.botApp</a>.<code>request_write_access</code> flag is set, the bot is asking permission to send messages to the user: if the user agrees, set the <code>write_allowed</code> flag when invoking <a href="/method/messages.requestAppWebView">messages.requestAppWebView</a>.</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<p>These links are different from <a href="#bot-attachment-menu-links">bot attachment menu deep links</a>, because they don't require the user to install an attachment menu, and a single bot can offer multiple web apps, distinguished by their <code>short_name</code>. </p>
|
||||
<p>These links should be handled as specified in the <a href="/api/bots/webapps#bot-web-apps">bot web app documentation »</a>. </p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/<bot_username>/<short_name>?startapp=<start_parameter></code></pre>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
|
|
|
@ -4,26 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>appWebViewResultUrl</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
url
|
||||
string
|
||||
|
||||
Type
|
||||
AppWebViewResult">
|
||||
<meta property="description" content="Contains the link that must be used to open a bot web app.">
|
||||
<meta property="og:title" content="appWebViewResultUrl">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
url
|
||||
string
|
||||
|
||||
Type
|
||||
AppWebViewResult">
|
||||
<meta property="og:description" content="Contains the link that must be used to open a bot web app.">
|
||||
<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">
|
||||
|
@ -58,7 +42,8 @@ AppWebViewResult">
|
|||
<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/appWebViewResultUrl" >appWebViewResultUrl</a></li></ul></div>
|
||||
<h1 id="dev_page_title">appWebViewResultUrl</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Contains the link that must be used to open a <a href="/api/bots/webapps#bot-web-apps">bot web app</a>.</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>
|
||||
|
@ -84,12 +69,15 @@ AppWebViewResult">
|
|||
<tr>
|
||||
<td><strong>url</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td> </td>
|
||||
<td>The URL to open</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/AppWebViewResult">AppWebViewResult</a></p></div>
|
||||
<p><a href="/type/AppWebViewResult">AppWebViewResult</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="#bot-web-apps" id="bot-web-apps" name="bot-web-apps"><i class="anchor-icon"></i></a><a href="/api/bots/webapps">Bot web apps</a></h4>
|
||||
<p>Bots can offer users interactive HTML5 web apps to completely replace any website.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
<tr>
|
||||
<td><strong>request_write_access</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.2?<a href="/constructor/true">true</a></td>
|
||||
<td> </td>
|
||||
<td>Whether the bot would like to send messages to the user.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>bot_id</strong></td>
|
||||
|
|
|
@ -89,7 +89,7 @@
|
|||
<tr>
|
||||
<td><strong>future_auth_token</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.2?<a href="/type/bytes">bytes</a></td>
|
||||
<td> </td>
|
||||
<td>A <a href="/api/auth#future-auth-tokens">future auth token</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>user</strong></td>
|
||||
|
@ -101,7 +101,9 @@
|
|||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/auth.Authorization">auth.Authorization</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="#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="#user-authorization" id="user-authorization" name="user-authorization"><i class="anchor-icon"></i></a><a href="/api/auth">User Authorization</a></h4>
|
||||
<p>How to register a user's phone to start using the API.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>auth.loggedOut</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Logout token » to be used on subsequent authorizations">
|
||||
<meta property="description" content="Future auth token » to be used on subsequent authorizations">
|
||||
<meta property="og:title" content="auth.loggedOut">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Logout token » to be used on subsequent authorizations">
|
||||
<meta property="og:description" content="Future auth token » to be used on subsequent authorizations">
|
||||
<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">
|
||||
|
@ -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/auth.loggedOut" >auth.loggedOut</a></li></ul></div>
|
||||
<h1 id="dev_page_title">auth.loggedOut</h1>
|
||||
|
||||
<div id="dev_page_content"><p><a href="/api/auth#logout-tokens">Logout token »</a> to be used on subsequent authorizations</p>
|
||||
<div id="dev_page_content"><p><a href="/api/auth#future-auth-tokens">Future auth token »</a> to be used on subsequent authorizations</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -74,7 +74,7 @@
|
|||
<tr>
|
||||
<td><strong>future_auth_token</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.0?<a href="/type/bytes">bytes</a></td>
|
||||
<td><a href="/api/auth#logout-tokens">Logout token »</a> to be used on subsequent authorizations</td>
|
||||
<td><a href="/api/auth#future-auth-tokens">Future auth token »</a> to be used on subsequent authorizations</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -4,38 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>botApp</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
|
||||
id
|
||||
long
|
||||
|
||||
access_hash
|
||||
long
|
||||
|
||||
short_name
|
||||
string…">
|
||||
<meta property="description" content="Contains information about a bot web app.">
|
||||
<meta property="og:title" content="botApp">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
flags
|
||||
#
|
||||
Flags, see TL conditional fields
|
||||
id
|
||||
long
|
||||
|
||||
access_hash
|
||||
long
|
||||
|
||||
short_name
|
||||
string…">
|
||||
<meta property="og:description" content="Contains information about a bot web app.">
|
||||
<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">
|
||||
|
@ -70,7 +42,8 @@ string…">
|
|||
<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/botApp" >botApp</a></li></ul></div>
|
||||
<h1 id="dev_page_title">botApp</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Contains information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a>.</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>
|
||||
|
@ -101,47 +74,54 @@ string…">
|
|||
<tr>
|
||||
<td><strong>id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td> </td>
|
||||
<td>Bot web app ID</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>access_hash</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td> </td>
|
||||
<td>Bot web app access hash</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>short_name</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td> </td>
|
||||
<td>Bot web app short name, used to generate <a href="/api/links#bot-web-app-links">bot web app deep links</a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>title</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td> </td>
|
||||
<td>Bot web app title.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>description</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td> </td>
|
||||
<td>Bot web app description.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>photo</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/Photo">Photo</a></td>
|
||||
<td> </td>
|
||||
<td>Bot web app photo.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>document</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.0?<a href="/type/Document">Document</a></td>
|
||||
<td> </td>
|
||||
<td>Bot web app animation.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>hash</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td> </td>
|
||||
<td>Hash to pass to <a href="/method/messages.getBotApp">messages.getBotApp</a>, to avoid refetching bot app info if it hasn't changed.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/BotApp">BotApp</a></p></div>
|
||||
<p><a href="/type/BotApp">BotApp</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="#deep-links" id="deep-links" name="deep-links"><i class="anchor-icon"></i></a><a href="/api/links">Deep links</a></h4>
|
||||
<p>Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.</p>
|
||||
<h4><a class="anchor" href="#messagesgetbotapp" id="messagesgetbotapp" name="messagesgetbotapp"><i class="anchor-icon"></i></a><a href="/method/messages.getBotApp">messages.getBotApp</a></h4>
|
||||
<p>Obtain information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a></p>
|
||||
<h4><a class="anchor" href="#bot-web-apps" id="bot-web-apps" name="bot-web-apps"><i class="anchor-icon"></i></a><a href="/api/bots/webapps">Bot web apps</a></h4>
|
||||
<p>Bots can offer users interactive HTML5 web apps to completely replace any website.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -4,16 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>botAppNotModified</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Parameters
|
||||
This constructor does not require any parameters.
|
||||
Type
|
||||
BotApp">
|
||||
<meta property="description" content="Bot app info hasn't changed.">
|
||||
<meta property="og:title" content="botAppNotModified">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Parameters
|
||||
This constructor does not require any parameters.
|
||||
Type
|
||||
BotApp">
|
||||
<meta property="og:description" content="Bot app info hasn't changed.">
|
||||
<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">
|
||||
|
@ -48,7 +42,8 @@ BotApp">
|
|||
<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/botAppNotModified" >botAppNotModified</a></li></ul></div>
|
||||
<h1 id="dev_page_title">botAppNotModified</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Bot app info hasn't changed.</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>
|
||||
|
|
|
@ -4,26 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>defaultHistoryTTL</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
period
|
||||
int
|
||||
|
||||
Type
|
||||
DefaultHistoryTTL">
|
||||
<meta property="description" content="Contains info about the default value of the Time-To-Live setting, applied to all new chats.">
|
||||
<meta property="og:title" content="defaultHistoryTTL">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
period
|
||||
int
|
||||
|
||||
Type
|
||||
DefaultHistoryTTL">
|
||||
<meta property="og:description" content="Contains info about the default value of the Time-To-Live setting, applied to all new chats.">
|
||||
<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">
|
||||
|
@ -58,7 +42,8 @@ DefaultHistoryTTL">
|
|||
<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/defaultHistoryTTL" >defaultHistoryTTL</a></li></ul></div>
|
||||
<h1 id="dev_page_title">defaultHistoryTTL</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Contains info about the default value of the Time-To-Live setting, applied to all new chats.</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>
|
||||
|
@ -84,7 +69,7 @@ DefaultHistoryTTL">
|
|||
<tr>
|
||||
<td><strong>period</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td> </td>
|
||||
<td>Time-To-Live setting applied to all new chats.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -150,6 +150,8 @@
|
|||
<p>Telegram allows mentioning other users in case of urgent duckling matters, and quickly navigating to those mentions in order to read them as swiftly as possible.</p>
|
||||
<h4><a class="anchor" href="#working-with-updates" id="working-with-updates" name="working-with-updates"><i class="anchor-icon"></i></a><a href="/api/updates">Working with Updates</a></h4>
|
||||
<p>How to subscribe to updates and handle them properly.</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>
|
||||
<h4><a class="anchor" href="#folders" id="folders" name="folders"><i class="anchor-icon"></i></a><a href="/api/folders">Folders</a></h4>
|
||||
<p>Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.</p></div>
|
||||
|
||||
|
|
|
@ -4,30 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>forumTopic</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Represents a forum topic.
|
||||
Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
flags
|
||||
#
|
||||
Flags, see TL conditional fields
|
||||
my
|
||||
flags.1?true
|
||||
Whether…">
|
||||
<meta property="description" content="Represents a forum topic.">
|
||||
<meta property="og:title" content="forumTopic">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Represents a forum topic.
|
||||
Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
flags
|
||||
#
|
||||
Flags, see TL conditional fields
|
||||
my
|
||||
flags.1?true
|
||||
Whether…">
|
||||
<meta property="og:description" content="Represents a forum topic.">
|
||||
<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">
|
||||
|
@ -183,7 +163,7 @@ Whether…">
|
|||
</tr>
|
||||
<tr>
|
||||
<td><strong>draft</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.1?<a href="/type/DraftMessage">DraftMessage</a></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.4?<a href="/type/DraftMessage">DraftMessage</a></td>
|
||||
<td>Message <a href="/api/drafts">draft</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -191,8 +171,14 @@ Whether…">
|
|||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/ForumTopic">ForumTopic</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="#custom-emojis" id="custom-emojis" name="custom-emojis"><i class="anchor-icon"></i></a><a href="/api/custom-emoji">Custom emojis</a></h4>
|
||||
<p>Telegram allows including animated and static custom emojis inside of messages.</p></div>
|
||||
<p>Telegram allows including animated and static custom emojis inside of messages.</p>
|
||||
<h4><a class="anchor" href="#mentions" id="mentions" name="mentions"><i class="anchor-icon"></i></a><a href="/api/mentions">Mentions</a></h4>
|
||||
<p>Telegram allows mentioning other users in case of urgent duckling matters, and quickly navigating to those mentions in order to read them as swiftly as possible.</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>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@
|
|||
<tr>
|
||||
<td>400</td>
|
||||
<td>ORDER_INVALID</td>
|
||||
<td> </td>
|
||||
<td>The specified username order is invalid.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
|
|
|
@ -172,7 +172,8 @@
|
|||
<p>Import chat history from a foreign chat app into a specific Telegram chat, <a href="/api/import">click here for more info about imported chats »</a>.</p>
|
||||
<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="#messagessetdefaulthistoryttl" id="messagessetdefaulthistoryttl" name="messagessetdefaulthistoryttl"><i class="anchor-icon"></i></a><a href="/method/messages.setDefaultHistoryTTL">messages.setDefaultHistoryTTL</a></h4></div>
|
||||
<h4><a class="anchor" href="#messagessetdefaulthistoryttl" id="messagessetdefaulthistoryttl" name="messagessetdefaulthistoryttl"><i class="anchor-icon"></i></a><a href="/method/messages.setDefaultHistoryTTL">messages.setDefaultHistoryTTL</a></h4>
|
||||
<p>Changes the default value of the Time-To-Live setting, applied to all new chats.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>channels.createForumTopic</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Create a forum topic.">
|
||||
<meta property="description" content="Create a forum topic; requires manage_topics rights.">
|
||||
<meta property="og:title" content="channels.createForumTopic">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Create a forum topic.">
|
||||
<meta property="og:description" content="Create a forum topic; requires manage_topics rights.">
|
||||
<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">
|
||||
|
@ -137,7 +137,9 @@
|
|||
<h4><a class="anchor" href="#custom-emojis" id="custom-emojis" name="custom-emojis"><i class="anchor-icon"></i></a><a href="/api/custom-emoji">Custom emojis</a></h4>
|
||||
<p>Telegram allows including animated and static custom emojis inside of messages.</p>
|
||||
<h4><a class="anchor" href="#telegram-premium" id="telegram-premium" name="telegram-premium"><i class="anchor-icon"></i></a><a href="/api/premium">Telegram Premium</a></h4>
|
||||
<h4><a class="anchor" href="#inputstickersetemojidefaulttopicicons" id="inputstickersetemojidefaulttopicicons" name="inputstickersetemojidefaulttopicicons"><i class="anchor-icon"></i></a><a href="/constructor/inputStickerSetEmojiDefaultTopicIcons">inputStickerSetEmojiDefaultTopicIcons</a></h4></div>
|
||||
<h4><a class="anchor" href="#inputstickersetemojidefaulttopicicons" id="inputstickersetemojidefaulttopicicons" name="inputstickersetemojidefaulttopicicons"><i class="anchor-icon"></i></a><a href="/constructor/inputStickerSetEmojiDefaultTopicIcons">inputStickerSetEmojiDefaultTopicIcons</a></h4>
|
||||
<h4><a class="anchor" href="#admin-banned-default-rights" id="admin-banned-default-rights" name="admin-banned-default-rights"><i class="anchor-icon"></i></a><a href="/api/rights">Admin, banned, default rights</a></h4>
|
||||
<p>How to handle admin permissions, granular bans and global permissions in channels, groups and supergroups.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>channels.editForumTopic</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Edit forum topic">
|
||||
<meta property="description" content="Edit forum topic; requires manage_topics rights.">
|
||||
<meta property="og:title" content="channels.editForumTopic">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Edit forum topic">
|
||||
<meta property="og:description" content="Edit forum topic; requires manage_topics rights.">
|
||||
<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">
|
||||
|
@ -113,6 +113,28 @@
|
|||
</table>
|
||||
<h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3>
|
||||
<p><a href="/type/Updates">Updates</a></p>
|
||||
<h3><a class="anchor" href="#possible-errors" id="possible-errors" name="possible-errors"><i class="anchor-icon"></i></a>Possible errors</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Code</th>
|
||||
<th>Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>400</td>
|
||||
<td>TOPIC_ID_INVALID</td>
|
||||
<td>The specified topic ID is invalid.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>400</td>
|
||||
<td>TOPIC_NOT_MODIFIED</td>
|
||||
<td>The updated topic info is equal to the current topic info, nothing was changed.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</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="#custom-emojis" id="custom-emojis" name="custom-emojis"><i class="anchor-icon"></i></a><a href="/api/custom-emoji">Custom emojis</a></h4>
|
||||
|
@ -120,7 +142,9 @@
|
|||
<h4><a class="anchor" href="#telegram-premium" id="telegram-premium" name="telegram-premium"><i class="anchor-icon"></i></a><a href="/api/premium">Telegram Premium</a></h4>
|
||||
<h4><a class="anchor" href="#inputstickersetemojidefaulttopicicons" id="inputstickersetemojidefaulttopicicons" name="inputstickersetemojidefaulttopicicons"><i class="anchor-icon"></i></a><a href="/constructor/inputStickerSetEmojiDefaultTopicIcons">inputStickerSetEmojiDefaultTopicIcons</a></h4>
|
||||
<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></div>
|
||||
<p>Telegram allows creating forums with multiple distinct topics.</p>
|
||||
<h4><a class="anchor" href="#admin-banned-default-rights" id="admin-banned-default-rights" name="admin-banned-default-rights"><i class="anchor-icon"></i></a><a href="/api/rights">Admin, banned, default rights</a></h4>
|
||||
<p>How to handle admin permissions, granular bans and global permissions in channels, groups and supergroups.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -141,7 +141,8 @@
|
|||
</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="#messagessetdefaulthistoryttl" id="messagessetdefaulthistoryttl" name="messagessetdefaulthistoryttl"><i class="anchor-icon"></i></a><a href="/method/messages.setDefaultHistoryTTL">messages.setDefaultHistoryTTL</a></h4></div>
|
||||
<h4><a class="anchor" href="#messagessetdefaulthistoryttl" id="messagessetdefaulthistoryttl" name="messagessetdefaulthistoryttl"><i class="anchor-icon"></i></a><a href="/method/messages.setDefaultHistoryTTL">messages.setDefaultHistoryTTL</a></h4>
|
||||
<p>Changes the default value of the Time-To-Live setting, applied to all new chats.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -4,40 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>messages.getBotApp</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
app
|
||||
InputBotApp
|
||||
|
||||
hash
|
||||
long
|
||||
|
||||
Result
|
||||
messages.BotApp
|
||||
Possible errors
|
||||
Code
|
||||
Type
|
||||
Description…">
|
||||
<meta property="description" content="Obtain information about a bot web app">
|
||||
<meta property="og:title" content="messages.getBotApp">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
app
|
||||
InputBotApp
|
||||
|
||||
hash
|
||||
long
|
||||
|
||||
Result
|
||||
messages.BotApp
|
||||
Possible errors
|
||||
Code
|
||||
Type
|
||||
Description…">
|
||||
<meta property="og:description" content="Obtain information about a bot web app">
|
||||
<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">
|
||||
|
@ -72,7 +42,8 @@ Description…">
|
|||
<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/messages.getBotApp" >messages.getBotApp</a></li></ul></div>
|
||||
<h1 id="dev_page_title">messages.getBotApp</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Obtain information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a></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>
|
||||
|
@ -100,12 +71,12 @@ Description…">
|
|||
<tr>
|
||||
<td><strong>app</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/InputBotApp">InputBotApp</a></td>
|
||||
<td> </td>
|
||||
<td>Bot app information obtained from a <a href="/api/links#bot-web-app-links">bot web app deep link »</a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>hash</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td> </td>
|
||||
<td><a href="/api/offsets#hash-generation">Hash for pagination, for more info click here</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -128,7 +99,14 @@ Description…">
|
|||
</tr>
|
||||
</tbody>
|
||||
</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></div>
|
||||
<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="#deep-links" id="deep-links" name="deep-links"><i class="anchor-icon"></i></a><a href="/api/links">Deep links</a></h4>
|
||||
<p>Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.</p>
|
||||
<h4><a class="anchor" href="#pagination-in-the-api" id="pagination-in-the-api" name="pagination-in-the-api"><i class="anchor-icon"></i></a><a href="/api/offsets">Pagination in the API</a></h4>
|
||||
<p>How to fetch results from large lists of objects.</p>
|
||||
<h4><a class="anchor" href="#bot-web-apps" id="bot-web-apps" name="bot-web-apps"><i class="anchor-icon"></i></a><a href="/api/bots/webapps">Bot web apps</a></h4>
|
||||
<p>Bots can offer users interactive HTML5 web apps to completely replace any website.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -113,6 +113,7 @@
|
|||
<h4><a class="anchor" href="#deep-links" id="deep-links" name="deep-links"><i class="anchor-icon"></i></a><a href="/api/links">Deep links</a></h4>
|
||||
<p>Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.</p>
|
||||
<h4><a class="anchor" href="#messagesgetbotapp" id="messagesgetbotapp" name="messagesgetbotapp"><i class="anchor-icon"></i></a><a href="/method/messages.getBotApp">messages.getBotApp</a></h4>
|
||||
<p>Obtain information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a></p>
|
||||
<h4><a class="anchor" href="#bot-web-apps" id="bot-web-apps" name="bot-web-apps"><i class="anchor-icon"></i></a><a href="/api/bots/webapps">Bot web apps</a></h4>
|
||||
<p>Bots can offer users interactive HTML5 web apps to completely replace any website.</p>
|
||||
<h4><a class="anchor" href="#web-apps-for-bots" id="web-apps-for-bots" name="web-apps-for-bots"><i class="anchor-icon"></i></a><a href="/bots/webapps">Web Apps for Bots</a></h4>
|
||||
|
|
|
@ -4,28 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>messages.setDefaultHistoryTTL</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
period
|
||||
int
|
||||
|
||||
Result
|
||||
Bool
|
||||
Bots can use this method">
|
||||
<meta property="description" content="Changes the default value of the Time-To-Live setting, applied to all new chats.">
|
||||
<meta property="og:title" content="messages.setDefaultHistoryTTL">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
period
|
||||
int
|
||||
|
||||
Result
|
||||
Bool
|
||||
Bots can use this method">
|
||||
<meta property="og:description" content="Changes the default value of the Time-To-Live setting, applied to all new chats.">
|
||||
<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">
|
||||
|
@ -60,7 +42,8 @@ Bots can use this method">
|
|||
<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/messages.setDefaultHistoryTTL" >messages.setDefaultHistoryTTL</a></li></ul></div>
|
||||
<h1 id="dev_page_title">messages.setDefaultHistoryTTL</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Changes the default value of the Time-To-Live setting, applied to all new chats.</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>
|
||||
|
@ -89,7 +72,7 @@ Bots can use this method">
|
|||
<tr>
|
||||
<td><strong>period</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td> </td>
|
||||
<td>The new default Time-To-Live of all messages sent in new chats.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
<tr>
|
||||
<td><strong>write_allowed</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.0?<a href="/constructor/true">true</a></td>
|
||||
<td> </td>
|
||||
<td>Whether the user authorizes the bot to write messages to them, if requested by <a href="/constructor/attachMenuBot">attachMenuBot</a>.<code>request_write_access</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>bot</strong></td>
|
||||
|
@ -94,6 +94,8 @@
|
|||
<h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3>
|
||||
<p><a href="/type/Bool">Bool</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="#attachmenubot" id="attachmenubot" name="attachmenubot"><i class="anchor-icon"></i></a><a href="/constructor/attachMenuBot">attachMenuBot</a></h4>
|
||||
<p>Represents a <a href="/api/bots/attach">bot web app that can be launched from the attachment menu »</a></p>
|
||||
<h4><a class="anchor" href="#bot-attachment-menu-entries" id="bot-attachment-menu-entries" name="bot-attachment-menu-entries"><i class="anchor-icon"></i></a><a href="/api/bots/attach">Bot attachment menu entries</a></h4>
|
||||
<p>Bots can install attachment menu entries, offering conveniently accessible, versatile web apps.</p></div>
|
||||
|
||||
|
|
|
@ -4,28 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>AppWebViewResult</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
appWebViewResultUrl
|
||||
|
||||
Methods
|
||||
Method
|
||||
Description
|
||||
messages.requestAppWebView
|
||||
Open a…">
|
||||
<meta property="description" content="Contains the link that must be used to open a bot web app.">
|
||||
<meta property="og:title" content="AppWebViewResult">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
appWebViewResultUrl
|
||||
|
||||
Methods
|
||||
Method
|
||||
Description
|
||||
messages.requestAppWebView
|
||||
Open a…">
|
||||
<meta property="og:description" content="Contains the link that must be used to open a bot web app.">
|
||||
<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">
|
||||
|
@ -60,7 +42,8 @@ Open a…">
|
|||
<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="/type/AppWebViewResult" >AppWebViewResult</a></li></ul></div>
|
||||
<h1 id="dev_page_title">AppWebViewResult</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Contains the link that must be used to open a <a href="/api/bots/webapps#bot-web-apps">bot web app</a>.</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>
|
||||
|
@ -88,7 +71,7 @@ Open a…">
|
|||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/constructor/appWebViewResultUrl">appWebViewResultUrl</a></td>
|
||||
<td> </td>
|
||||
<td>Contains the link that must be used to open a <a href="/api/bots/webapps#bot-web-apps">bot web app</a>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -106,7 +89,10 @@ Open a…">
|
|||
<td>Open a <a href="/bots/webapps">bot web app</a> from a <a href="/api/links#bot-web-app-links">bot web app deep link</a>, sending over user information after user confirmation.<br><br>After calling this method, until the user closes the webview, <a href="/method/messages.prolongWebView">messages.prolongWebView</a> must be called every 60 seconds.</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="#bot-web-apps" id="bot-web-apps" name="bot-web-apps"><i class="anchor-icon"></i></a><a href="/api/bots/webapps">Bot web apps</a></h4>
|
||||
<p>Bots can offer users interactive HTML5 web apps to completely replace any website.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -748,7 +748,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/messages.setDefaultHistoryTTL">messages.setDefaultHistoryTTL</a></td>
|
||||
<td> </td>
|
||||
<td>Changes the default value of the Time-To-Live setting, applied to all new chats.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/auth.requestFirebaseSms">auth.requestFirebaseSms</a></td>
|
||||
|
|
|
@ -4,22 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>BotApp</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
botAppNotModified
|
||||
|
||||
botApp
|
||||
">
|
||||
<meta property="description" content="Contains information about a bot web app.">
|
||||
<meta property="og:title" content="BotApp">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
botAppNotModified
|
||||
|
||||
botApp
|
||||
">
|
||||
<meta property="og:description" content="Contains information about a bot web app.">
|
||||
<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">
|
||||
|
@ -54,7 +42,8 @@ botApp
|
|||
<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="/type/BotApp" >BotApp</a></li></ul></div>
|
||||
<h1 id="dev_page_title">BotApp</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Contains information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a>.</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>
|
||||
|
@ -79,14 +68,17 @@ botApp
|
|||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/constructor/botAppNotModified">botAppNotModified</a></td>
|
||||
<td> </td>
|
||||
<td>Bot app info hasn't changed.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/constructor/botApp">botApp</a></td>
|
||||
<td> </td>
|
||||
<td>Contains information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a>.</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="#bot-web-apps" id="bot-web-apps" name="bot-web-apps"><i class="anchor-icon"></i></a><a href="/api/bots/webapps">Bot web apps</a></h4>
|
||||
<p>Bots can offer users interactive HTML5 web apps to completely replace any website.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -4,28 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>DefaultHistoryTTL</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
defaultHistoryTTL
|
||||
|
||||
Methods
|
||||
Method
|
||||
Description
|
||||
messages.getDefaultHistoryTTL
|
||||
">
|
||||
<meta property="description" content="Contains info about the default value of the Time-To-Live setting, applied to all new chats.">
|
||||
<meta property="og:title" content="DefaultHistoryTTL">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
defaultHistoryTTL
|
||||
|
||||
Methods
|
||||
Method
|
||||
Description
|
||||
messages.getDefaultHistoryTTL
|
||||
">
|
||||
<meta property="og:description" content="Contains info about the default value of the Time-To-Live setting, applied to all new chats.">
|
||||
<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">
|
||||
|
@ -60,7 +42,8 @@ messages.getDefaultHistoryTTL
|
|||
<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="/type/DefaultHistoryTTL" >DefaultHistoryTTL</a></li></ul></div>
|
||||
<h1 id="dev_page_title">DefaultHistoryTTL</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Contains info about the default value of the Time-To-Live setting, applied to all new chats.</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>
|
||||
|
@ -88,7 +71,7 @@ messages.getDefaultHistoryTTL
|
|||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/constructor/defaultHistoryTTL">defaultHistoryTTL</a></td>
|
||||
<td> </td>
|
||||
<td>Contains info about the default value of the Time-To-Live setting, applied to all new chats.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -103,7 +86,7 @@ messages.getDefaultHistoryTTL
|
|||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/method/messages.getDefaultHistoryTTL">messages.getDefaultHistoryTTL</a></td>
|
||||
<td> </td>
|
||||
<td>Gets the default value of the Time-To-Live setting, applied to all new chats.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
|
|
|
@ -4,22 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>ForumTopic</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
forumTopicDeleted
|
||||
|
||||
forumTopic
|
||||
">
|
||||
<meta property="description" content="Contains information about a forum topic">
|
||||
<meta property="og:title" content="ForumTopic">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
forumTopicDeleted
|
||||
|
||||
forumTopic
|
||||
">
|
||||
<meta property="og:description" content="Contains information about a forum topic">
|
||||
<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">
|
||||
|
@ -54,7 +42,8 @@ forumTopic
|
|||
<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="/type/ForumTopic" >ForumTopic</a></li></ul></div>
|
||||
<h1 id="dev_page_title">ForumTopic</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Contains information about a <a href="/api/forum#forum-topics">forum topic</a></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>
|
||||
|
@ -83,10 +72,13 @@ forumTopic
|
|||
</tr>
|
||||
<tr>
|
||||
<td><a href="/constructor/forumTopic">forumTopic</a></td>
|
||||
<td> </td>
|
||||
<td>Represents a <a href="/api/forum#forum-topics">forum topic</a>.</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="#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></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -4,18 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>ReadParticipantDate</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
readParticipantDate
|
||||
">
|
||||
<meta property="description" content="Contains info about when a certain participant has read a message">
|
||||
<meta property="og:title" content="ReadParticipantDate">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
readParticipantDate
|
||||
">
|
||||
<meta property="og:description" content="Contains info about when a certain participant has read a message">
|
||||
<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">
|
||||
|
@ -50,7 +42,8 @@ readParticipantDate
|
|||
<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="/type/ReadParticipantDate" >ReadParticipantDate</a></li></ul></div>
|
||||
<h1 id="dev_page_title">ReadParticipantDate</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Contains info about when a certain participant has read a message</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>
|
||||
|
|
|
@ -4,26 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>RequestPeerType</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
requestPeerTypeUser
|
||||
|
||||
requestPeerTypeChat
|
||||
|
||||
requestPeerTypeBroadcast
|
||||
">
|
||||
<meta property="description" content="Type of requested peer">
|
||||
<meta property="og:title" content="RequestPeerType">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
requestPeerTypeUser
|
||||
|
||||
requestPeerTypeChat
|
||||
|
||||
requestPeerTypeBroadcast
|
||||
">
|
||||
<meta property="og:description" content="Type of requested peer">
|
||||
<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">
|
||||
|
@ -58,7 +42,8 @@ requestPeerTypeBroadcast
|
|||
<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="/type/RequestPeerType" >RequestPeerType</a></li></ul></div>
|
||||
<h1 id="dev_page_title">RequestPeerType</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Type of requested peer</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>
|
||||
|
|
|
@ -4,18 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>StickerKeyword</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
stickerKeyword
|
||||
">
|
||||
<meta property="description" content="Keywords for a certain sticker">
|
||||
<meta property="og:title" content="StickerKeyword">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
stickerKeyword
|
||||
">
|
||||
<meta property="og:description" content="Keywords for a certain sticker">
|
||||
<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">
|
||||
|
@ -50,7 +42,8 @@ stickerKeyword
|
|||
<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="/type/StickerKeyword" >StickerKeyword</a></li></ul></div>
|
||||
<h1 id="dev_page_title">StickerKeyword</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Keywords for a certain sticker</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>
|
||||
|
|
|
@ -4,18 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>TextWithEntities</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
textWithEntities
|
||||
">
|
||||
<meta property="description" content="Styled text with message entities">
|
||||
<meta property="og:title" content="TextWithEntities">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
textWithEntities
|
||||
">
|
||||
<meta property="og:description" content="Styled text with message entities">
|
||||
<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">
|
||||
|
@ -50,7 +42,8 @@ textWithEntities
|
|||
<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="/type/TextWithEntities" >TextWithEntities</a></li></ul></div>
|
||||
<h1 id="dev_page_title">TextWithEntities</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Styled text with <a href="/api/entities">message entities</a></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>
|
||||
|
@ -77,7 +70,10 @@ textWithEntities
|
|||
<td> </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="#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></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -513,11 +513,11 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/channels.createForumTopic">channels.createForumTopic</a></td>
|
||||
<td>Create a <a href="/api/forum">forum topic</a>.</td>
|
||||
<td>Create a <a href="/api/forum">forum topic</a>; requires <a href="/api/rights"><code>manage_topics</code> rights</a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/channels.editForumTopic">channels.editForumTopic</a></td>
|
||||
<td>Edit <a href="/api/forum">forum topic</a></td>
|
||||
<td>Edit <a href="/api/forum">forum topic</a>; requires <a href="/api/rights"><code>manage_topics</code> rights</a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/channels.updatePinnedForumTopic">channels.updatePinnedForumTopic</a></td>
|
||||
|
|
|
@ -4,18 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>Username</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
username
|
||||
">
|
||||
<meta property="description" content="Contains information about a username">
|
||||
<meta property="og:title" content="Username">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
username
|
||||
">
|
||||
<meta property="og:description" content="Contains information about a username">
|
||||
<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">
|
||||
|
@ -50,7 +42,8 @@ username
|
|||
<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="/type/Username" >Username</a></li></ul></div>
|
||||
<h1 id="dev_page_title">Username</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Contains information about a username</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>
|
||||
|
|
|
@ -4,26 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>account.AutoSaveSettings</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
account.autoSaveSettings
|
||||
|
||||
Methods
|
||||
Method
|
||||
Description
|
||||
account.getAutoSaveSettings…">
|
||||
<meta property="description" content="Contains media autosave settings">
|
||||
<meta property="og:title" content="account.AutoSaveSettings">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
account.autoSaveSettings
|
||||
|
||||
Methods
|
||||
Method
|
||||
Description
|
||||
account.getAutoSaveSettings…">
|
||||
<meta property="og:description" content="Contains media autosave settings">
|
||||
<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">
|
||||
|
@ -58,7 +42,8 @@ account.getAutoSaveSettings…">
|
|||
<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="/type/account.AutoSaveSettings" >account.AutoSaveSettings</a></li></ul></div>
|
||||
<h1 id="dev_page_title">account.AutoSaveSettings</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Contains media autosave settings</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>
|
||||
|
@ -86,7 +71,7 @@ account.getAutoSaveSettings…">
|
|||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/constructor/account.autoSaveSettings">account.autoSaveSettings</a></td>
|
||||
<td> </td>
|
||||
<td>Contains media autosave settings</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -4,30 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>help.AppConfig</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
help.appConfigNotModified
|
||||
|
||||
help.appConfig
|
||||
|
||||
Methods
|
||||
Method
|
||||
Description
|
||||
help.getAppConfig…">
|
||||
<meta property="description" content="Contains various client configuration parameters">
|
||||
<meta property="og:title" content="help.AppConfig">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
help.appConfigNotModified
|
||||
|
||||
help.appConfig
|
||||
|
||||
Methods
|
||||
Method
|
||||
Description
|
||||
help.getAppConfig…">
|
||||
<meta property="og:description" content="Contains various client configuration parameters">
|
||||
<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">
|
||||
|
@ -62,7 +42,8 @@ help.getAppConfig…">
|
|||
<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="/type/help.AppConfig" >help.AppConfig</a></li></ul></div>
|
||||
<h1 id="dev_page_title">help.AppConfig</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Contains various <a href="/api/config#client-configuration">client configuration parameters</a></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>
|
||||
|
@ -113,7 +94,10 @@ help.getAppConfig…">
|
|||
<td>Get app-specific configuration, see <a href="/api/config#client-configuration">client configuration</a> for more info on the result.</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>
|
||||
|
||||
|
|
|
@ -4,28 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>messages.BotApp</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
messages.botApp
|
||||
|
||||
Methods
|
||||
Method
|
||||
Description
|
||||
messages.getBotApp
|
||||
">
|
||||
<meta property="description" content="Contains information about a bot web app">
|
||||
<meta property="og:title" content="messages.BotApp">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
messages.botApp
|
||||
|
||||
Methods
|
||||
Method
|
||||
Description
|
||||
messages.getBotApp
|
||||
">
|
||||
<meta property="og:description" content="Contains information about a bot web app">
|
||||
<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">
|
||||
|
@ -60,7 +42,8 @@ messages.getBotApp
|
|||
<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="/type/messages.BotApp" >messages.BotApp</a></li></ul></div>
|
||||
<h1 id="dev_page_title">messages.BotApp</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Contains information about a <a href="/api/bots/webapps#bot-web-app">bot web app</a></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>
|
||||
|
@ -103,10 +86,13 @@ messages.getBotApp
|
|||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/method/messages.getBotApp">messages.getBotApp</a></td>
|
||||
<td> </td>
|
||||
<td>Obtain information about a <a href="/api/bots/webapps#bot-web-apps">bot web app</a></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="#bot-web-apps" id="bot-web-apps" name="bot-web-apps"><i class="anchor-icon"></i></a><a href="/api/bots/webapps">Bot web apps</a></h4>
|
||||
<p>Bots can offer users interactive HTML5 web apps to completely replace any website.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -4,28 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>messages.ForumTopics</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
messages.forumTopics
|
||||
|
||||
Methods
|
||||
Method
|
||||
Description
|
||||
channels.getForumTopics
|
||||
Get topics…">
|
||||
<meta property="description" content="Contains information about multiple forum topics">
|
||||
<meta property="og:title" content="messages.ForumTopics">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Constructors
|
||||
Constructor
|
||||
Description
|
||||
messages.forumTopics
|
||||
|
||||
Methods
|
||||
Method
|
||||
Description
|
||||
channels.getForumTopics
|
||||
Get topics…">
|
||||
<meta property="og:description" content="Contains information about multiple forum topics">
|
||||
<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">
|
||||
|
@ -60,7 +42,8 @@ Get topics…">
|
|||
<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="/type/messages.ForumTopics" >messages.ForumTopics</a></li></ul></div>
|
||||
<h1 id="dev_page_title">messages.ForumTopics</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Contains information about multiple <a href="/api/forum#forum-topics">forum topics</a></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>
|
||||
|
@ -111,7 +94,10 @@ Get topics…">
|
|||
<td>Get forum topics by their ID</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="#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></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue