Update content of files

This commit is contained in:
GitHub Action 2023-12-06 17:09:56 +00:00
parent a6a445b783
commit 3974364139
12 changed files with 81 additions and 47 deletions

View file

@ -49,22 +49,39 @@
<p>To view all the changes since the last update, start reading the changelog @ <a href="#layer-159">Layer 159</a>.</p> <p>To view all the changes since the last update, start reading the changelog @ <a href="#layer-159">Layer 159</a>.</p>
<p>Most importantly, the following detailed articles were added:</p> <p>Most importantly, the following detailed articles were added:</p>
<ul> <ul>
<li><a href="/api/action-bar">Working with action bar</a></li> <li><a href="/api/stories">Working with stories »</a></li>
<li><a href="/api/contacts">Working with contacts</a></li> <li><a href="/api/action-bar">Working with action bar »</a></li>
<li><a href="/api/block">Working with the blocklist</a></li> <li><a href="/api/contacts">Working with contacts »</a></li>
<li><a href="/api/nearby">Working with geochats</a></li> <li><a href="/api/block">Working with the blocklist »</a></li>
<li><a href="/api/privacy">Working with privacy settings</a></li> <li><a href="/api/nearby">Working with geochats »</a></li>
<li><a href="/api/takeout">Working with the takeout API</a></li> <li><a href="/api/privacy">Working with privacy settings »</a></li>
<li><a href="/api/takeout">Working with the takeout API »</a></li>
</ul> </ul>
<p>Also added documentation for <a href="/api/files#streamed-uploads">streamed uploads</a> and improved the <a href="/api/invoking#sequential-requests">method queue</a> documentation.</p> <p>Also added documentation for <a href="/api/files#streamed-uploads">streamed uploads</a> and improved the <a href="/api/invoking#sequential-requests">method queue</a> documentation.</p>
<p>The following new deep links were added:</p> <p>The following new deep links were added:</p>
<ul> <ul>
<li><a href="/api/links#story-links">Story links</a></li> <li><a href="/api/links#story-links">Story links »</a></li>
<li><a href="/api/links#boost-links">Boost links</a></li> <li><a href="/api/links#boost-links">Boost links »</a></li>
<li><a href="/api/links#mini-app-links">Direct mini app links</a></li> <li><a href="/api/links#mini-app-links">Direct mini app links »</a></li>
</ul> </ul>
<p>And now, here are the changes that were made in this layer.</p> <p>And now, here are the changes that were made in this layer.</p>
<p>Introducing <a href="/api/stories">Telegram Stories</a>, <a href="/api/boost">channel boosts</a>, <a href="/api/auth#confirming-login">session confirmation</a>, <a href="/api/bots/webapps#side-menu-mini-apps">side menu Mini Apps</a>, <a href="/api/bots/webapps#direct-link-mini-apps">direct link Mini Apps</a>, custom methods and multiple new events for <a href="/api/bots/webapps">Mini Apps</a> and a <a href="/api/privacy">close friends list</a>.</p> <p>Introducing <a href="/api/stories">Telegram Stories</a>, <a href="/api/boost">channel boosts</a>, <a href="/api/auth#confirming-login">session confirmation</a>, <a href="/api/bots/webapps#side-menu-mini-apps">side menu Mini Apps</a>, <a href="/api/bots/webapps#direct-link-mini-apps">direct link Mini Apps</a>, custom methods and multiple new events for <a href="/api/bots/webapps">Mini Apps</a> and a <a href="/api/privacy">close friends list</a>.</p>
<p>A new <code>story</code> <a href="/api/premium">premium feature identifier</a> was added.</p>
<p>The following new <a href="/api/web-events">web events</a> were also added to provide more functionality to <a href="/api/bots/webapps">mini apps</a>:</p>
<ul>
<li><a href="/api/web-events#web-app-request-write-access">web_app_request_write_access »</a></li>
<li><a href="/api/web-events#web-app-request-phone">web_app_request_phone »</a></li>
<li><a href="/api/web-events#web-app-invoke-custom-method">web_app_invoke_custom_method »</a></li>
<li><a href="/api/web-events#web-app-read-text-from-clipboard">web_app_read_text_from_clipboard »</a></li>
<li><a href="/api/web-events#web-app-open-scan-qr-popup">web_app_open_scan_qr_popup »</a></li>
<li><a href="/api/web-events#web-app-close-scan-qr-popup">web_app_close_scan_qr_popup »</a></li>
<li><a href="/api/web-events#web-app-setup-settings-button">web_app_setup_settings_button »</a></li>
</ul>
<p>Also, the following changes were made to existing <a href="/api/web-events">web events</a>:</p>
<ul>
<li><a href="/api/web-events#web-app-open-link">web_app_open_link »</a> events have now a 1-second inactivity TTL instead of 10 seconds, see <a href="/api/web-events#web-app-open-link">here »</a> for more info.</li>
<li><a href="/api/web-events#web-app-open-link">web_app_open_link</a> now has an optional <code>try_instant_view</code> field that if set, equal to <code>true</code> and if the scheme of the passed <code>url</code> is either <code>http</code> or <code>https</code>, indicates the link should be opened in <a href="/methods#working-with-instant-view-pages">Instant View mode</a> if possible.</li>
</ul>
<h4><a class="anchor" href="#schema-changes" id="schema-changes" name="schema-changes"><i class="anchor-icon"></i></a>Schema changes</h4> <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> <h5><a class="anchor" href="#new-methods" id="new-methods" name="new-methods"><i class="anchor-icon"></i></a>New Methods</h5>
<ul> <ul>
@ -90,7 +107,7 @@
<li>Added <a href="/method/stories.sendReaction">stories.sendReaction</a> - React to a story.</li> <li>Added <a href="/method/stories.sendReaction">stories.sendReaction</a> - React to a story.</li>
<li>Added <a href="/method/bots.canSendMessage">bots.canSendMessage</a> - Check whether the specified bot can send us messages</li> <li>Added <a href="/method/bots.canSendMessage">bots.canSendMessage</a> - Check whether the specified bot can send us messages</li>
<li>Added <a href="/method/bots.allowSendMessage">bots.allowSendMessage</a> - Allow the specified bot to send us messages</li> <li>Added <a href="/method/bots.allowSendMessage">bots.allowSendMessage</a> - Allow the specified bot to send us messages</li>
<li>Added <a href="/method/bots.invokeWebViewCustomMethod">bots.invokeWebViewCustomMethod</a> - Send a custom request from a <a href="/api/bots/webapps">mini bot app</a></li> <li>Added <a href="/method/bots.invokeWebViewCustomMethod">bots.invokeWebViewCustomMethod</a> - Send a custom request from a <a href="/api/bots/webapps">mini bot app</a>, triggered by a <a href="/api/web-events#web-app-invoke-custom-method">web_app_invoke_custom_method event »</a>.</li>
<li>Added <a href="/method/stories.getPeerStories">stories.getPeerStories</a> - Fetch the full active <a href="/api/stories#watching-stories">story list</a> of a specific peer.</li> <li>Added <a href="/method/stories.getPeerStories">stories.getPeerStories</a> - Fetch the full active <a href="/api/stories#watching-stories">story list</a> of a specific peer.</li>
<li>Added <a href="/method/stories.getAllReadPeerStories">stories.getAllReadPeerStories</a> - Obtain the latest read story ID for all peers when first logging in, returned as a list of <a href="/constructor/updateReadStories">updateReadStories</a> updates, see <a href="/api/stories#watching-stories">here »</a> for more info.</li> <li>Added <a href="/method/stories.getAllReadPeerStories">stories.getAllReadPeerStories</a> - Obtain the latest read story ID for all peers when first logging in, returned as a list of <a href="/constructor/updateReadStories">updateReadStories</a> updates, see <a href="/api/stories#watching-stories">here »</a> for more info.</li>
<li>Added <a href="/method/stories.getPeerMaxIDs">stories.getPeerMaxIDs</a> - </li> <li>Added <a href="/method/stories.getPeerMaxIDs">stories.getPeerMaxIDs</a> - </li>

View file

@ -76,7 +76,7 @@ Note that in order to obtain permission to post stories as a channel, it must be
</li> </li>
<li>If we're trying to send a story as the current user:<ul> <li>If we're trying to send a story as the current user:<ul>
<li>The user can post stories according to the <a href="/api/config#stories-posting"><code>stories_posting</code> client configuration parameter</a>; otherwise, a <code>PREMIUM_ACCOUNT_REQUIRED</code> error is returned.</li> <li>The user can post stories according to the <a href="/api/config#stories-posting"><code>stories_posting</code> client configuration parameter</a>; otherwise, a <code>PREMIUM_ACCOUNT_REQUIRED</code> error is returned.</li>
<li>AND The user hasn't hit the maximum active stories limit specified by the <a href="/api/config#stories-sent-weekly-limit-default"><code>story_expiring_limit_*</code> client configuration parameters</a>; otherwise a <code>STORIES_TOO_MUCH</code> error is returned, indicating that the user should buy a <a href="/api/premium">Premium</a> subscription, delete an active story, or wait for the oldest story to expire.</li> <li>AND The user hasn't hit the maximum active stories limit specified by the <a href="/api/config#story-expiring-limit-default"><code>story_expiring_limit_*</code> client configuration parameters</a>; otherwise a <code>STORIES_TOO_MUCH</code> error is returned, indicating that the user should buy a <a href="/api/premium">Premium</a> subscription, delete an active story, or wait for the oldest story to expire.</li>
<li>AND The user hasn't hit the weekly story limit specified by the <a href="/api/config#stories-sent-weekly-limit-default"><code>stories_sent_weekly_limit_*</code> client configuration parameters</a>; otherwise, a <code>STORY_SEND_FLOOD_WEEKLY_%d</code> error is returned, indicating the number of seconds to wait before posting a new story.</li> <li>AND The user hasn't hit the weekly story limit specified by the <a href="/api/config#stories-sent-weekly-limit-default"><code>stories_sent_weekly_limit_*</code> client configuration parameters</a>; otherwise, a <code>STORY_SEND_FLOOD_WEEKLY_%d</code> error is returned, indicating the number of seconds to wait before posting a new story.</li>
<li>AND The user hasn't hit the monthly story limit specified by the <a href="/api/config#stories-sent-monthly-limit-default"><code>stories_sent_monthly_limit_*</code> client configuration parameters</a>; otherwise, a <code>STORY_SEND_FLOOD_MONTHLY_%d</code> error is returned, indicating the number of seconds to wait before posting a new story.</li> <li>AND The user hasn't hit the monthly story limit specified by the <a href="/api/config#stories-sent-monthly-limit-default"><code>stories_sent_monthly_limit_*</code> client configuration parameters</a>; otherwise, a <code>STORY_SEND_FLOOD_MONTHLY_%d</code> error is returned, indicating the number of seconds to wait before posting a new story.</li>
</ul> </ul>
@ -92,6 +92,7 @@ Note that if any of the conditions changes in the period between the call to <a
<li><code>privacy_rules</code>: A set of <a href="/api/privacy#privacy-rules">privacy rules »</a> for the story as an array of <a href="/type/InputPrivacyRule">InputPrivacyRule</a> constructors, indicating who can or can't view the story.</li> <li><code>privacy_rules</code>: A set of <a href="/api/privacy#privacy-rules">privacy rules »</a> for the story as an array of <a href="/type/InputPrivacyRule">InputPrivacyRule</a> constructors, indicating who can or can't view the story.</li>
<li><code>expire</code>: Period after which the story is moved to <a href="#pinned-or-archived-stories">archive</a> (and <a href="#pinned-or-archived-stories">to the profile</a> if <code>pinned</code> is set), in seconds; must be one of <code>6 * 3600</code>, <code>12 * 3600</code>, <code>86400</code>, or <code>2 * 86400</code> for Telegram Premium users, and <code>86400</code> otherwise.</li> <li><code>expire</code>: Period after which the story is moved to <a href="#pinned-or-archived-stories">archive</a> (and <a href="#pinned-or-archived-stories">to the profile</a> if <code>pinned</code> is set), in seconds; must be one of <code>6 * 3600</code>, <code>12 * 3600</code>, <code>86400</code>, or <code>2 * 86400</code> for Telegram Premium users, and <code>86400</code> otherwise.</li>
<li><code>pinned</code>: Whether to also <a href="#pinned-or-archived-stories">add the story to the profile</a> automatically upon expiration. If not set, the story will only be added to the <a href="#pinned-or-archived-stories">archive</a>. </li> <li><code>pinned</code>: Whether to also <a href="#pinned-or-archived-stories">add the story to the profile</a> automatically upon expiration. If not set, the story will only be added to the <a href="#pinned-or-archived-stories">archive</a>. </li>
<li><code>caption</code> and <code>entities</code>: The story caption, and related <a href="/api/entities">styled text entities</a>; note that the story caption length is limited by the <a href="/api/config#story-caption-length-limit-default"><code>story_caption_length_limit_*</code> »</a> config keys, and story entities should only be sent and displayed according to the value of the <a href="/api/config#stories-entities">stories_entities »</a> config key.</li>
</ul> </ul>
<p>Once a story is successfully uploaded, an <a href="/constructor/updateStoryID">updateStoryID</a> will be returned, indicating the story ID (<code>id</code>) that was attributed to the story (like for messages, <code>random_id</code> indicates the <code>random_id</code> that was passed to <a href="/method/stories.sendStory">stories.sendStory</a>: this way, you can tell which story was assigned a specific <code>id</code> by checking which <a href="/method/stories.sendStory">stories.sendStory</a> call has the returned <code>random_id</code>). </p> <p>Once a story is successfully uploaded, an <a href="/constructor/updateStoryID">updateStoryID</a> will be returned, indicating the story ID (<code>id</code>) that was attributed to the story (like for messages, <code>random_id</code> indicates the <code>random_id</code> that was passed to <a href="/method/stories.sendStory">stories.sendStory</a>: this way, you can tell which story was assigned a specific <code>id</code> by checking which <a href="/method/stories.sendStory">stories.sendStory</a> call has the returned <code>random_id</code>). </p>
<p>Also, posting a story will emit an <a href="/constructor/updateStory">updateStory</a> both for us, and for our subscribers/contacts (even if they have <a href="#hiding-stories-of-other-users">hidden</a> our stories). </p> <p>Also, posting a story will emit an <a href="/constructor/updateStory">updateStory</a> both for us, and for our subscribers/contacts (even if they have <a href="#hiding-stories-of-other-users">hidden</a> our stories). </p>
@ -200,7 +201,7 @@ When the stories of a user are marked as hidden, the <code>stories_hidden</code>
<a href='/method/stories.getStoryViewsList'>stories.getStoryViewsList</a>#7ed23c57 flags:<a href='/type/%23'>#</a> just_contacts:flags.0?<a href='/constructor/true'>true</a> reactions_first:flags.2?<a href='/constructor/true'>true</a> peer:<a href='/type/InputPeer'>InputPeer</a> q:flags.1?<a href='/type/string'>string</a> id:<a href='/type/int'>int</a> offset:<a href='/type/string'>string</a> limit:<a href='/type/int'>int</a> = <a href='/type/stories.StoryViewsList'>stories.StoryViewsList</a>; <a href='/method/stories.getStoryViewsList'>stories.getStoryViewsList</a>#7ed23c57 flags:<a href='/type/%23'>#</a> just_contacts:flags.0?<a href='/constructor/true'>true</a> reactions_first:flags.2?<a href='/constructor/true'>true</a> peer:<a href='/type/InputPeer'>InputPeer</a> q:flags.1?<a href='/type/string'>string</a> id:<a href='/type/int'>int</a> offset:<a href='/type/string'>string</a> limit:<a href='/type/int'>int</a> = <a href='/type/stories.StoryViewsList'>stories.StoryViewsList</a>;
<a href='/method/stories.getStoriesViews'>stories.getStoriesViews</a>#28e16cc8 peer:<a href='/type/InputPeer'>InputPeer</a> id:<a href='/type/Vector%20t'>Vector</a>&lt;<a href='/type/int'>int</a>&gt; = <a href='/type/stories.StoryViews'>stories.StoryViews</a>;</code></pre> <a href='/method/stories.getStoriesViews'>stories.getStoriesViews</a>#28e16cc8 peer:<a href='/type/InputPeer'>InputPeer</a> id:<a href='/type/Vector%20t'>Vector</a>&lt;<a href='/type/int'>int</a>&gt; = <a href='/type/stories.StoryViews'>stories.StoryViews</a>;</code></pre>
<p>Use <a href="/method/stories.getStoryViewsList">stories.getStoryViewsList</a> to obtain the full list of users that have viewed a specific story we posted, returned as a list of <a href="/constructor/storyView">storyView</a> constructors; pass the returned <code>next_offset</code> (if present) to <code>offset</code> to paginate through the results. </p> <p>Use <a href="/method/stories.getStoryViewsList">stories.getStoryViewsList</a> to obtain the full list of users that have viewed a specific story we posted, returned as a list of <a href="/constructor/storyView">storyView</a> constructors; pass the returned <code>next_offset</code> (if present) to <code>offset</code> to paginate through the results; the full list is available at all times only to <a href="/api/premium">Premium</a> users, and will be hidden to non-<a href="/api/premium">Premium</a> users <a href="/api/config#story-viewers-expire-period">story_viewers_expire_period »</a> seconds after the story expires. </p>
<p>Use <a href="/method/stories.getStoriesViews">stories.getStoriesViews</a> to obtain info about the view count, forward count, reactions and recent viewers list of one or more stories, using a single, unpaginated method call, obviously potentially returning less info than <a href="/method/stories.getStoryViewsList">stories.getStoryViewsList</a>. </p> <p>Use <a href="/method/stories.getStoriesViews">stories.getStoriesViews</a> to obtain info about the view count, forward count, reactions and recent viewers list of one or more stories, using a single, unpaginated method call, obviously potentially returning less info than <a href="/method/stories.getStoryViewsList">stories.getStoryViewsList</a>. </p>
<h3><a class="anchor" href="#replying-to-stories" id="replying-to-stories" name="replying-to-stories"><i class="anchor-icon"></i></a>Replying to stories</h3> <h3><a class="anchor" href="#replying-to-stories" id="replying-to-stories" name="replying-to-stories"><i class="anchor-icon"></i></a>Replying to stories</h3>
<pre><code><a href='/constructor/inputReplyToStory'>inputReplyToStory</a>#15b0f283 user_id:<a href='/type/InputUser'>InputUser</a> story_id:<a href='/type/int'>int</a> = <a href='/type/InputReplyTo'>InputReplyTo</a>; <pre><code><a href='/constructor/inputReplyToStory'>inputReplyToStory</a>#15b0f283 user_id:<a href='/type/InputUser'>InputUser</a> story_id:<a href='/type/int'>int</a> = <a href='/type/InputReplyTo'>InputReplyTo</a>;

View file

@ -4,10 +4,10 @@
<meta charset="utf-8"> <meta charset="utf-8">
<title>account.finishTakeoutSession</title> <title>account.finishTakeoutSession</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="description" content="Finish account takeout session"> <meta property="description" content="Terminate a takeout session, see here » for more info.">
<meta property="og:title" content="account.finishTakeoutSession"> <meta property="og:title" content="account.finishTakeoutSession">
<meta property="og:image" content=""> <meta property="og:image" content="">
<meta property="og:description" content="Finish account takeout session"> <meta property="og:description" content="Terminate a takeout session, see here » for more info.">
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4"> <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="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.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="/methods" >All Methods</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/method/account.finishTakeoutSession" >account.finishTakeoutSession</a></li></ul></div> <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/account.finishTakeoutSession" >account.finishTakeoutSession</a></li></ul></div>
<h1 id="dev_page_title">account.finishTakeoutSession</h1> <h1 id="dev_page_title">account.finishTakeoutSession</h1>
<div id="dev_page_content"><p>Finish account takeout session</p> <div id="dev_page_content"><p>Terminate a <a href="/api/takeout">takeout session, see here » for more info</a>.</p>
<p><div class="clearfix"> <p><div class="clearfix">
<ul class="dev_layer_select slightly-pull-right nav nav-pills"> <ul class="dev_layer_select slightly-pull-right nav nav-pills">
<li class="dropdown"> <li class="dropdown">
@ -96,10 +96,13 @@
<tr> <tr>
<td>403</td> <td>403</td>
<td>TAKEOUT_REQUIRED</td> <td>TAKEOUT_REQUIRED</td>
<td>A takeout session has to be initialized, first.</td> <td>A <a href="/api/takeout">takeout</a> session needs to be initialized first, <a href="/api/takeout">see here » for more info</a>.</td>
</tr> </tr>
</tbody> </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="#takeout-api" id="takeout-api" name="takeout-api"><i class="anchor-icon"></i></a><a href="/api/takeout">Takeout API</a></h4>
<p>Telegram's API allows users to export all of their information through the takeout API.</p></div>
</div> </div>

View file

@ -4,10 +4,10 @@
<meta charset="utf-8"> <meta charset="utf-8">
<title>account.initTakeoutSession</title> <title>account.initTakeoutSession</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="description" content="Initialize account takeout session"> <meta property="description" content="Initialize a takeout session, see here » for more info.">
<meta property="og:title" content="account.initTakeoutSession"> <meta property="og:title" content="account.initTakeoutSession">
<meta property="og:image" content=""> <meta property="og:image" content="">
<meta property="og:description" content="Initialize account takeout session"> <meta property="og:description" content="Initialize a takeout session, see here » for more info.">
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4"> <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="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.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="/methods" >All Methods</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/method/account.initTakeoutSession" >account.initTakeoutSession</a></li></ul></div> <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/account.initTakeoutSession" >account.initTakeoutSession</a></li></ul></div>
<h1 id="dev_page_title">account.initTakeoutSession</h1> <h1 id="dev_page_title">account.initTakeoutSession</h1>
<div id="dev_page_content"><p>Initialize account takeout session</p> <div id="dev_page_content"><p>Initialize a <a href="/api/takeout">takeout session, see here » for more info</a>.</p>
<p><div class="clearfix"> <p><div class="clearfix">
<ul class="dev_layer_select slightly-pull-right nav nav-pills"> <ul class="dev_layer_select slightly-pull-right nav nav-pills">
<li class="dropdown"> <li class="dropdown">
@ -131,7 +131,9 @@
</table> </table>
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3> <h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
<h4><a class="anchor" href="#channels-supergroups-gigagroups-and-basic-groups" id="channels-supergroups-gigagroups-and-basic-groups" name="channels-supergroups-gigagroups-and-basic-groups"><i class="anchor-icon"></i></a><a href="/api/channel">Channels, supergroups, gigagroups and basic groups</a></h4> <h4><a class="anchor" href="#channels-supergroups-gigagroups-and-basic-groups" id="channels-supergroups-gigagroups-and-basic-groups" name="channels-supergroups-gigagroups-and-basic-groups"><i class="anchor-icon"></i></a><a href="/api/channel">Channels, supergroups, gigagroups and basic groups</a></h4>
<p>How to handle channels, supergroups, gigagroups, basic groups, and what's the difference between them.</p></div> <p>How to handle channels, supergroups, gigagroups, basic groups, and what's the difference between them.</p>
<h4><a class="anchor" href="#takeout-api" id="takeout-api" name="takeout-api"><i class="anchor-icon"></i></a><a href="/api/takeout">Takeout API</a></h4>
<p>Telegram's API allows users to export all of their information through the takeout API.</p></div>
</div> </div>

View file

@ -4,10 +4,10 @@
<meta charset="utf-8"> <meta charset="utf-8">
<title>bots.invokeWebViewCustomMethod</title> <title>bots.invokeWebViewCustomMethod</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="description" content="Send a custom request from a mini bot app"> <meta property="description" content="Send a custom request from a mini bot app, triggered by a web_app_invoke_custom_method event ». The response should be sent using a custom_method_invoked event, see here » for more info on the flow.">
<meta property="og:title" content="bots.invokeWebViewCustomMethod"> <meta property="og:title" content="bots.invokeWebViewCustomMethod">
<meta property="og:image" content=""> <meta property="og:image" content="">
<meta property="og:description" content="Send a custom request from a mini bot app"> <meta property="og:description" content="Send a custom request from a mini bot app, triggered by a web_app_invoke_custom_method event ». The response should be sent using a custom_method_invoked event, see here » for more info on the flow.">
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4"> <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="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
@ -42,7 +42,8 @@
<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/bots.invokeWebViewCustomMethod" >bots.invokeWebViewCustomMethod</a></li></ul></div> <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/bots.invokeWebViewCustomMethod" >bots.invokeWebViewCustomMethod</a></li></ul></div>
<h1 id="dev_page_title">bots.invokeWebViewCustomMethod</h1> <h1 id="dev_page_title">bots.invokeWebViewCustomMethod</h1>
<div id="dev_page_content"><p>Send a custom request from a <a href="/api/bots/webapps">mini bot app</a></p> <div id="dev_page_content"><p>Send a custom request from a <a href="/api/bots/webapps">mini bot app</a>, triggered by a <a href="/api/web-events#web-app-invoke-custom-method">web_app_invoke_custom_method event »</a>.</p>
<p>The response should be sent using a <a href="/api/bots/webapps#custom-method-invoked">custom_method_invoked</a> event, <a href="/api/web-events#web-app-invoke-custom-method">see here »</a> for more info on the flow.</p>
<p><div class="clearfix"> <p><div class="clearfix">
<ul class="dev_layer_select slightly-pull-right nav nav-pills"> <ul class="dev_layer_select slightly-pull-right nav nav-pills">
<li class="dropdown"> <li class="dropdown">
@ -106,7 +107,9 @@
</table> </table>
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</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="#mini-apps-on-telegram" id="mini-apps-on-telegram" name="mini-apps-on-telegram"><i class="anchor-icon"></i></a><a href="/api/bots/webapps">Mini Apps on Telegram</a></h4> <h4><a class="anchor" href="#mini-apps-on-telegram" id="mini-apps-on-telegram" name="mini-apps-on-telegram"><i class="anchor-icon"></i></a><a href="/api/bots/webapps">Mini Apps on Telegram</a></h4>
<p>Bots can offer users interactive HTML5 web apps to completely replace any website.</p></div> <p>Bots can offer users interactive HTML5 web apps to completely replace any website.</p>
<h4><a class="anchor" href="#web-events" id="web-events" name="web-events"><i class="anchor-icon"></i></a><a href="/api/web-events">Web events</a></h4>
<p>How telegram apps interact with webpages</p></div>
</div> </div>

View file

@ -4,10 +4,10 @@
<meta charset="utf-8"> <meta charset="utf-8">
<title>channels.getLeftChannels</title> <title>channels.getLeftChannels</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="description" content="Get a list of channels/supergroups we left"> <meta property="description" content="Get a list of channels/supergroups we left, requires a takeout session, see here » for more info.">
<meta property="og:title" content="channels.getLeftChannels"> <meta property="og:title" content="channels.getLeftChannels">
<meta property="og:image" content=""> <meta property="og:image" content="">
<meta property="og:description" content="Get a list of channels/supergroups we left"> <meta property="og:description" content="Get a list of channels/supergroups we left, requires a takeout session, see here » for more info.">
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4"> <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="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.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="/methods" >All Methods</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/method/channels.getLeftChannels" >channels.getLeftChannels</a></li></ul></div> <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/channels.getLeftChannels" >channels.getLeftChannels</a></li></ul></div>
<h1 id="dev_page_title">channels.getLeftChannels</h1> <h1 id="dev_page_title">channels.getLeftChannels</h1>
<div id="dev_page_content"><p>Get a list of <a href="/api/channel">channels/supergroups</a> we left</p> <div id="dev_page_content"><p>Get a list of <a href="/api/channel">channels/supergroups</a> we left, requires a <a href="/api/takeout">takeout session, see here » for more info</a>.</p>
<p><div class="clearfix"> <p><div class="clearfix">
<ul class="dev_layer_select slightly-pull-right nav nav-pills"> <ul class="dev_layer_select slightly-pull-right nav nav-pills">
<li class="dropdown"> <li class="dropdown">
@ -91,7 +91,7 @@
<tr> <tr>
<td>403</td> <td>403</td>
<td>TAKEOUT_REQUIRED</td> <td>TAKEOUT_REQUIRED</td>
<td>A takeout session has to be initialized, first.</td> <td>A <a href="/api/takeout">takeout</a> session needs to be initialized first, <a href="/api/takeout">see here » for more info</a>.</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@ -99,7 +99,9 @@
<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> <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> <p>How to fetch results from large lists of objects.</p>
<h4><a class="anchor" href="#channels-supergroups-gigagroups-and-basic-groups" id="channels-supergroups-gigagroups-and-basic-groups" name="channels-supergroups-gigagroups-and-basic-groups"><i class="anchor-icon"></i></a><a href="/api/channel">Channels, supergroups, gigagroups and basic groups</a></h4> <h4><a class="anchor" href="#channels-supergroups-gigagroups-and-basic-groups" id="channels-supergroups-gigagroups-and-basic-groups" name="channels-supergroups-gigagroups-and-basic-groups"><i class="anchor-icon"></i></a><a href="/api/channel">Channels, supergroups, gigagroups and basic groups</a></h4>
<p>How to handle channels, supergroups, gigagroups, basic groups, and what's the difference between them.</p></div> <p>How to handle channels, supergroups, gigagroups, basic groups, and what's the difference between them.</p>
<h4><a class="anchor" href="#takeout-api" id="takeout-api" name="takeout-api"><i class="anchor-icon"></i></a><a href="/api/takeout">Takeout API</a></h4>
<p>Telegram's API allows users to export all of their information through the takeout API.</p></div>
</div> </div>

View file

@ -4,10 +4,10 @@
<meta charset="utf-8"> <meta charset="utf-8">
<title>contacts.getSaved</title> <title>contacts.getSaved</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="description" content="Get all contacts"> <meta property="description" content="Get all contacts, requires a takeout session, see here » for more info.">
<meta property="og:title" content="contacts.getSaved"> <meta property="og:title" content="contacts.getSaved">
<meta property="og:image" content=""> <meta property="og:image" content="">
<meta property="og:description" content="Get all contacts"> <meta property="og:description" content="Get all contacts, requires a takeout session, see here » for more info.">
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4"> <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="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.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="/methods" >All Methods</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/method/contacts.getSaved" >contacts.getSaved</a></li></ul></div> <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/contacts.getSaved" >contacts.getSaved</a></li></ul></div>
<h1 id="dev_page_title">contacts.getSaved</h1> <h1 id="dev_page_title">contacts.getSaved</h1>
<div id="dev_page_content"><p>Get all contacts</p> <div id="dev_page_content"><p>Get all contacts, requires a <a href="/api/takeout">takeout session, see here » for more info</a>.</p>
<p><div class="clearfix"> <p><div class="clearfix">
<ul class="dev_layer_select slightly-pull-right nav nav-pills"> <ul class="dev_layer_select slightly-pull-right nav nav-pills">
<li class="dropdown"> <li class="dropdown">
@ -74,10 +74,13 @@
<tr> <tr>
<td>403</td> <td>403</td>
<td>TAKEOUT_REQUIRED</td> <td>TAKEOUT_REQUIRED</td>
<td>A takeout session has to be initialized, first.</td> <td>A <a href="/api/takeout">takeout</a> session needs to be initialized first, <a href="/api/takeout">see here » for more info</a>.</td>
</tr> </tr>
</tbody> </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="#takeout-api" id="takeout-api" name="takeout-api"><i class="anchor-icon"></i></a><a href="/api/takeout">Takeout API</a></h4>
<p>Telegram's API allows users to export all of their information through the takeout API.</p></div>
</div> </div>

View file

@ -4,10 +4,10 @@
<meta charset="utf-8"> <meta charset="utf-8">
<title>invokeWithTakeout</title> <title>invokeWithTakeout</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="description" content="Invoke a method within a takeout session"> <meta property="description" content="Invoke a method within a takeout session, see here » for more info.">
<meta property="og:title" content="invokeWithTakeout"> <meta property="og:title" content="invokeWithTakeout">
<meta property="og:image" content=""> <meta property="og:image" content="">
<meta property="og:description" content="Invoke a method within a takeout session"> <meta property="og:description" content="Invoke a method within a takeout session, see here » for more info.">
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4"> <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="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.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="/methods" >All Methods</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/method/invokeWithTakeout" >invokeWithTakeout</a></li></ul></div> <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/invokeWithTakeout" >invokeWithTakeout</a></li></ul></div>
<h1 id="dev_page_title">invokeWithTakeout</h1> <h1 id="dev_page_title">invokeWithTakeout</h1>
<div id="dev_page_content"><p>Invoke a method within a takeout session</p> <div id="dev_page_content"><p>Invoke a method within a <a href="/api/takeout">takeout session, see here » for more info</a>.</p>
<p><div class="clearfix"> <p><div class="clearfix">
<ul class="dev_layer_select slightly-pull-right nav nav-pills"> <ul class="dev_layer_select slightly-pull-right nav nav-pills">
<li class="dropdown"> <li class="dropdown">
@ -70,7 +70,7 @@
<tr> <tr>
<td><strong>takeout_id</strong></td> <td><strong>takeout_id</strong></td>
<td style="text-align: center;"><a href="/type/long">long</a></td> <td style="text-align: center;"><a href="/type/long">long</a></td>
<td>Takeout session ID</td> <td><a href="/api/takeout">Takeout session ID »</a></td>
</tr> </tr>
<tr> <tr>
<td><strong>query</strong></td> <td><strong>query</strong></td>
@ -81,7 +81,10 @@
</table> </table>
<h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3> <h3><a class="anchor" href="#result" id="result" name="result"><i class="anchor-icon"></i></a>Result</h3>
<p>The type returned by the invoked method.</p> <p>The type returned by the invoked method.</p>
<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="#takeout-api" id="takeout-api" name="takeout-api"><i class="anchor-icon"></i></a><a href="/api/takeout">Takeout API</a></h4>
<p>Telegram's API allows users to export all of their information through the takeout API.</p></div>
</div> </div>

View file

@ -111,7 +111,7 @@
<tr> <tr>
<td>400</td> <td>400</td>
<td>STORIES_TOO_MUCH</td> <td>STORIES_TOO_MUCH</td>
<td>You have hit the maximum active stories limit as specified by the <a href="/api/config#stories-sent-weekly-limit-default"><code>story_expiring_limit_*</code> client configuration parameters</a>: you should buy a <a href="/api/premium">Premium</a> subscription, delete an active story, or wait for the oldest story to expire.</td> <td>You have hit the maximum active stories limit as specified by the <a href="/api/config#story-expiring-limit-default"><code>story_expiring_limit_*</code> client configuration parameters</a>: you should buy a <a href="/api/premium">Premium</a> subscription, delete an active story, or wait for the oldest story to expire.</td>
</tr> </tr>
<tr> <tr>
<td>400</td> <td>400</td>

View file

@ -89,6 +89,11 @@
<tbody> <tbody>
<tr> <tr>
<td>400</td> <td>400</td>
<td>CHANNEL_INVALID</td>
<td>The provided channel is invalid.</td>
</tr>
<tr>
<td>400</td>
<td>CHANNEL_PRIVATE</td> <td>CHANNEL_PRIVATE</td>
<td>You haven't joined this channel/supergroup.</td> <td>You haven't joined this channel/supergroup.</td>
</tr> </tr>

View file

@ -181,7 +181,7 @@
<tr> <tr>
<td>400</td> <td>400</td>
<td>STORIES_TOO_MUCH</td> <td>STORIES_TOO_MUCH</td>
<td>You have hit the maximum active stories limit as specified by the <a href="/api/config#stories-sent-weekly-limit-default"><code>story_expiring_limit_*</code> client configuration parameters</a>: you should buy a <a href="/api/premium">Premium</a> subscription, delete an active story, or wait for the oldest story to expire.</td> <td>You have hit the maximum active stories limit as specified by the <a href="/api/config#story-expiring-limit-default"><code>story_expiring_limit_*</code> client configuration parameters</a>: you should buy a <a href="/api/premium">Premium</a> subscription, delete an active story, or wait for the oldest story to expire.</td>
</tr> </tr>
<tr> <tr>
<td>400</td> <td>400</td>

View file

@ -93,11 +93,6 @@
<tbody> <tbody>
<tr> <tr>
<td>400</td> <td>400</td>
<td>AES_DECRYPT_FAILED</td>
<td> </td>
</tr>
<tr>
<td>400</td>
<td>CDN_METHOD_INVALID</td> <td>CDN_METHOD_INVALID</td>
<td>You can't call this method in a CDN DC.</td> <td>You can't call this method in a CDN DC.</td>
</tr> </tr>