mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-01-16 22:53:12 +01:00
Update content of files
This commit is contained in:
parent
5566284d16
commit
254d546d69
37 changed files with 758 additions and 392 deletions
|
@ -213,6 +213,8 @@ This allows the server to filter messages based on a text query, and even on the
|
|||
<p>Admins of supergroups with a certain number of members can choose to unleash the full proactive power of Telegram's own antispam algorithms – turning on the new Aggressive mode for the automated spam filters.</p>
|
||||
<h4><a class="anchor" href="#collectible-usernames" id="collectible-usernames" name="collectible-usernames"><i class="anchor-icon"></i></a><a href="/api/fragment">Collectible usernames</a></h4>
|
||||
<p>Telegram users can make it easy for others to contact them or find their public groups and channels via <a href="https://telegram.org/faq#usernames-and-t-me">usernames</a>: clients can also assign multiple <strong>collectible usernames</strong> to accounts, supergroups and channels they own. </p>
|
||||
<h4><a class="anchor" href="#channel-boosts" id="channel-boosts" name="channel-boosts"><i class="anchor-icon"></i></a><a href="/api/premium">Channel boosts</a></h4>
|
||||
<p><a href="/api/premium">Telegram Premium</a> users can grant their favorite channels additional features like the ability to post <a href="/api/stories">stories</a> by giving them <strong>boosts</strong>. </p>
|
||||
<h4><a class="anchor" href="#action-bar" id="action-bar" name="action-bar"><i class="anchor-icon"></i></a><a href="/api/action-bar">Action bar</a></h4>
|
||||
<p>Sometimes, when interacting with Telegram users via private or secret chats, an action bar must be shown on top of the chat, offering convenient action buttons or notices regarding the user.</p>
|
||||
<h3><a class="anchor" href="#contacts" id="contacts" name="contacts"><i class="anchor-icon"></i></a><a href="/api/contacts">Contacts</a></h3>
|
||||
|
|
|
@ -213,6 +213,8 @@ This allows the server to filter messages based on a text query, and even on the
|
|||
<p>Admins of supergroups with a certain number of members can choose to unleash the full proactive power of Telegram's own antispam algorithms – turning on the new Aggressive mode for the automated spam filters.</p>
|
||||
<h4><a class="anchor" href="#collectible-usernames" id="collectible-usernames" name="collectible-usernames"><i class="anchor-icon"></i></a><a href="/api/fragment">Collectible usernames</a></h4>
|
||||
<p>Telegram users can make it easy for others to contact them or find their public groups and channels via <a href="https://telegram.org/faq#usernames-and-t-me">usernames</a>: clients can also assign multiple <strong>collectible usernames</strong> to accounts, supergroups and channels they own. </p>
|
||||
<h4><a class="anchor" href="#channel-boosts" id="channel-boosts" name="channel-boosts"><i class="anchor-icon"></i></a><a href="/api/premium">Channel boosts</a></h4>
|
||||
<p><a href="/api/premium">Telegram Premium</a> users can grant their favorite channels additional features like the ability to post <a href="/api/stories">stories</a> by giving them <strong>boosts</strong>. </p>
|
||||
<h4><a class="anchor" href="#action-bar" id="action-bar" name="action-bar"><i class="anchor-icon"></i></a><a href="/api/action-bar">Action bar</a></h4>
|
||||
<p>Sometimes, when interacting with Telegram users via private or secret chats, an action bar must be shown on top of the chat, offering convenient action buttons or notices regarding the user.</p>
|
||||
<h3><a class="anchor" href="#contacts" id="contacts" name="contacts"><i class="anchor-icon"></i></a><a href="/api/contacts">Contacts</a></h3>
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
|
||||
<p>Admins of supergroups with a certain number of members can choose to unleash the full proactive power of Telegram's own antispam algorithms – turning on the new Aggressive mode for the automated spam filters.</p>
|
||||
<p>Schema:</p>
|
||||
<pre><code><a href='/constructor/channelFull'>channelFull</a>#723027bd flags:<a href='/type/%23'>#</a> can_view_participants:flags.3?<a href='/constructor/true'>true</a> can_set_username:flags.6?<a href='/constructor/true'>true</a> can_set_stickers:flags.7?<a href='/constructor/true'>true</a> hidden_prehistory:flags.10?<a href='/constructor/true'>true</a> can_set_location:flags.16?<a href='/constructor/true'>true</a> has_scheduled:flags.19?<a href='/constructor/true'>true</a> can_view_stats:flags.20?<a href='/constructor/true'>true</a> blocked:flags.22?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> can_delete_channel:flags2.0?<a href='/constructor/true'>true</a> antispam:flags2.1?<a href='/constructor/true'>true</a> participants_hidden:flags2.2?<a href='/constructor/true'>true</a> translations_disabled:flags2.3?<a href='/constructor/true'>true</a> stories_pinned_available:flags2.5?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants_count:flags.0?<a href='/type/int'>int</a> admins_count:flags.1?<a href='/type/int'>int</a> kicked_count:flags.2?<a href='/type/int'>int</a> banned_count:flags.2?<a href='/type/int'>int</a> online_count:flags.13?<a href='/type/int'>int</a> read_inbox_max_id:<a href='/type/int'>int</a> read_outbox_max_id:<a href='/type/int'>int</a> unread_count:<a href='/type/int'>int</a> chat_photo:<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.23?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> migrated_from_chat_id:flags.4?<a href='/type/long'>long</a> migrated_from_max_id:flags.4?<a href='/type/int'>int</a> pinned_msg_id:flags.5?<a href='/type/int'>int</a> stickerset:flags.8?<a href='/type/StickerSet'>StickerSet</a> available_min_id:flags.9?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> linked_chat_id:flags.14?<a href='/type/long'>long</a> location:flags.15?<a href='/type/ChannelLocation'>ChannelLocation</a> slowmode_seconds:flags.17?<a href='/type/int'>int</a> slowmode_next_send_date:flags.18?<a href='/type/int'>int</a> stats_dc:flags.12?<a href='/type/int'>int</a> pts:<a href='/type/int'>int</a> call:flags.21?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.24?<a href='/type/int'>int</a> pending_suggestions:flags.25?<a href='/type/Vector%20t'>Vector</a><<a href='/type/string'>string</a>> groupcall_default_join_as:flags.26?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.27?<a href='/type/string'>string</a> requests_pending:flags.28?<a href='/type/int'>int</a> recent_requesters:flags.28?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> default_send_as:flags.29?<a href='/type/Peer'>Peer</a> available_reactions:flags.30?<a href='/type/ChatReactions'>ChatReactions</a> stories:flags2.4?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
<pre><code><a href='/constructor/channelFull'>channelFull</a>#723027bd flags:<a href='/type/%23'>#</a> can_view_participants:flags.3?<a href='/constructor/true'>true</a> can_set_username:flags.6?<a href='/constructor/true'>true</a> can_set_stickers:flags.7?<a href='/constructor/true'>true</a> hidden_prehistory:flags.10?<a href='/constructor/true'>true</a> can_set_location:flags.16?<a href='/constructor/true'>true</a> has_scheduled:flags.19?<a href='/constructor/true'>true</a> can_view_stats:flags.20?<a href='/constructor/true'>true</a> blocked:flags.22?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> can_delete_channel:flags2.0?<a href='/constructor/true'>true</a> antispam:flags2.1?<a href='/constructor/true'>true</a> participants_hidden:flags2.2?<a href='/constructor/true'>true</a> translations_disabled:flags2.3?<a href='/constructor/true'>true</a> stories_pinned_available:flags2.5?<a href='/constructor/true'>true</a> view_forum_as_messages:flags2.6?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants_count:flags.0?<a href='/type/int'>int</a> admins_count:flags.1?<a href='/type/int'>int</a> kicked_count:flags.2?<a href='/type/int'>int</a> banned_count:flags.2?<a href='/type/int'>int</a> online_count:flags.13?<a href='/type/int'>int</a> read_inbox_max_id:<a href='/type/int'>int</a> read_outbox_max_id:<a href='/type/int'>int</a> unread_count:<a href='/type/int'>int</a> chat_photo:<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.23?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> migrated_from_chat_id:flags.4?<a href='/type/long'>long</a> migrated_from_max_id:flags.4?<a href='/type/int'>int</a> pinned_msg_id:flags.5?<a href='/type/int'>int</a> stickerset:flags.8?<a href='/type/StickerSet'>StickerSet</a> available_min_id:flags.9?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> linked_chat_id:flags.14?<a href='/type/long'>long</a> location:flags.15?<a href='/type/ChannelLocation'>ChannelLocation</a> slowmode_seconds:flags.17?<a href='/type/int'>int</a> slowmode_next_send_date:flags.18?<a href='/type/int'>int</a> stats_dc:flags.12?<a href='/type/int'>int</a> pts:<a href='/type/int'>int</a> call:flags.21?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.24?<a href='/type/int'>int</a> pending_suggestions:flags.25?<a href='/type/Vector%20t'>Vector</a><<a href='/type/string'>string</a>> groupcall_default_join_as:flags.26?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.27?<a href='/type/string'>string</a> requests_pending:flags.28?<a href='/type/int'>int</a> recent_requesters:flags.28?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> default_send_as:flags.29?<a href='/type/Peer'>Peer</a> available_reactions:flags.30?<a href='/type/ChatReactions'>ChatReactions</a> stories:flags2.4?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
|
||||
<a href='/constructor/channelAdminLogEventActionToggleAntiSpam'>channelAdminLogEventActionToggleAntiSpam</a>#64f36dfc new_value:<a href='/type/Bool'>Bool</a> = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;
|
||||
<a href='/constructor/channelAdminLogEventActionDeleteMessage'>channelAdminLogEventActionDeleteMessage</a>#42e047bb message:<a href='/type/Message'>Message</a> = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;
|
||||
|
|
166
data/web/corefork.telegram.org/api/boost.html
Normal file
166
data/web/corefork.telegram.org/api/boost.html
Normal file
|
@ -0,0 +1,166 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Channel boosts</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Telegram Premium users can grant their favorite channels additional features like the ability to post stories by giving them boosts.">
|
||||
<meta property="og:title" content="Channel boosts">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Telegram Premium users can grant their favorite channels additional features like the ability to post stories by giving them boosts.">
|
||||
<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">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png">
|
||||
<link rel="alternate icon" href="/img/favicon.ico" type="image/x-icon" />
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?236" rel="stylesheet" media="screen">
|
||||
<style>
|
||||
</style>
|
||||
</head>
|
||||
<body class="preload">
|
||||
<div class="dev_page_wrap">
|
||||
<div class="dev_page_head navbar navbar-static-top navbar-tg">
|
||||
<div class="navbar-inner">
|
||||
<div class="container clearfix">
|
||||
<ul class="nav navbar-nav navbar-right hidden-xs"><li class="navbar-twitter"><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)"><i class="icon icon-twitter"></i><span> Twitter</span></a></li></ul>
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a href="//telegram.org/">Home</a></li>
|
||||
<li class="hidden-xs"><a href="//telegram.org/faq">FAQ</a></li>
|
||||
<li class="hidden-xs"><a href="//telegram.org/apps">Apps</a></li>
|
||||
<li class="active"><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class=""><a href="/schema">Schema</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container clearfix">
|
||||
<div class="dev_page">
|
||||
<div id="dev_page_content_wrap" class=" ">
|
||||
<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="/api/boost" >Channel boosts</a></li></ul></div>
|
||||
<h1 id="dev_page_title">Channel boosts</h1>
|
||||
|
||||
<div id="dev_page_content"><!-- scroll_nav -->
|
||||
|
||||
<p><a href="/api/premium">Telegram Premium</a> users can grant their favorite channels additional features like the ability to post <a href="/api/stories">stories</a> by giving them <strong>boosts</strong>. </p>
|
||||
<p>Channels level up as they gain more boosts – and for each level, they gain additional features. </p>
|
||||
<p>Schema:</p>
|
||||
<pre><code><a href='/constructor/stories.canApplyBoostOk'>stories.canApplyBoostOk</a>#c3173587 = <a href='/type/stories.CanApplyBoostResult'>stories.CanApplyBoostResult</a>;
|
||||
<a href='/constructor/stories.canApplyBoostReplace'>stories.canApplyBoostReplace</a>#712c4655 current_boost:<a href='/type/Peer'>Peer</a> chats:<a href='/type/Vector%20t'>Vector</a><<a href='/type/Chat'>Chat</a>> = <a href='/type/stories.CanApplyBoostResult'>stories.CanApplyBoostResult</a>;
|
||||
|
||||
<a href='/constructor/statsPercentValue'>statsPercentValue</a>#cbce2fe0 part:<a href='/type/double'>double</a> total:<a href='/type/double'>double</a> = <a href='/type/StatsPercentValue'>StatsPercentValue</a>;
|
||||
<a href='/constructor/stories.boostsStatus'>stories.boostsStatus</a>#66ea1fef flags:<a href='/type/%23'>#</a> my_boost:flags.2?<a href='/constructor/true'>true</a> level:<a href='/type/int'>int</a> current_level_boosts:<a href='/type/int'>int</a> boosts:<a href='/type/int'>int</a> next_level_boosts:flags.0?<a href='/type/int'>int</a> premium_audience:flags.1?<a href='/type/StatsPercentValue'>StatsPercentValue</a> = <a href='/type/stories.BoostsStatus'>stories.BoostsStatus</a>;
|
||||
|
||||
<a href='/constructor/booster'>booster</a>#e9e6380 user_id:<a href='/type/long'>long</a> expires:<a href='/type/int'>int</a> = <a href='/type/Booster'>Booster</a>;
|
||||
|
||||
<a href='/constructor/stories.boostersList'>stories.boostersList</a>#f3dd3d1d flags:<a href='/type/%23'>#</a> count:<a href='/type/int'>int</a> boosters:<a href='/type/Vector%20t'>Vector</a><<a href='/type/Booster'>Booster</a>> next_offset:flags.0?<a href='/type/string'>string</a> users:<a href='/type/Vector%20t'>Vector</a><<a href='/type/User'>User</a>> = <a href='/type/stories.BoostersList'>stories.BoostersList</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
<a href='/method/stories.canApplyBoost'>stories.canApplyBoost</a>#db05c1bd peer:<a href='/type/InputPeer'>InputPeer</a> = <a href='/type/stories.CanApplyBoostResult'>stories.CanApplyBoostResult</a>;
|
||||
<a href='/method/stories.applyBoost'>stories.applyBoost</a>#f29d7c2b peer:<a href='/type/InputPeer'>InputPeer</a> = <a href='/type/Bool'>Bool</a>;
|
||||
|
||||
<a href='/method/stories.getBoostsStatus'>stories.getBoostsStatus</a>#4c449472 peer:<a href='/type/InputPeer'>InputPeer</a> = <a href='/type/stories.BoostsStatus'>stories.BoostsStatus</a>;
|
||||
|
||||
<a href='/method/stories.getBoostersList'>stories.getBoostersList</a>#337ef980 peer:<a href='/type/InputPeer'>InputPeer</a> offset:<a href='/type/string'>string</a> limit:<a href='/type/int'>int</a> = <a href='/type/stories.BoostersList'>stories.BoostersList</a>;</code></pre>
|
||||
<p>Use <a href="/method/stories.applyBoost">stories.applyBoost</a> to boost a channel: before invoking this method, however, make sure to invoke <a href="/method/stories.canApplyBoost">stories.canApplyBoost</a> to check if a given channel can be boosted. </p>
|
||||
<p>A <code>PREMIUM_ACCOUNT_REQUIRED</code> error will be returned when calling any of the two methods if the current account does not have a <a href="/api/premium">Telegram Premium</a> subscription.<br>
|
||||
A <code>BOOST_NOT_MODIFIED</code> RPC error will be returned when calling any of the two methods if the user is already boosting the specified channel. </p>
|
||||
<p>Furthermore, the result of <a href="/method/stories.canApplyBoost">stories.canApplyBoost</a> can be:</p>
|
||||
<ul>
|
||||
<li><a href="/constructor/stories.canApplyBoostOk">stories.canApplyBoostOk</a> if the current user isn't boosting any channel, and can boost the specified channel. </li>
|
||||
<li><a href="/constructor/stories.canApplyBoostReplace">stories.canApplyBoostReplace</a> if the user is already boosting another channel, containing the channel that the user is currently boosting. </li>
|
||||
</ul>
|
||||
<p>After boosting a channel, the user may not change their boosted channel for a certain cooldown period: if the cooldown period isn't over yet, calls to any of the two methods will return a 420 <code>FLOOD_WAIT_X</code> error, indicating the number of seconds left before a different channel can be boosted. </p>
|
||||
<p>Users may also invoke <a href="/method/stories.getBoostsStatus">stories.getBoostsStatus</a>, to get the current boost status of a channel as a <a href="/constructor/stories.boostsStatus">stories.boostsStatus</a> constructor, check out the <a href="/constructor/stories.boostsStatus">constructor page</a> for more info.</p>
|
||||
<p>Channel administrators may invoke <a href="/method/stories.getBoostersList">stories.getBoostersList</a> to fetch the list of users currently boosting the channel.</p>
|
||||
<h3><a class="anchor" href="#features" id="features" name="features"><i class="anchor-icon"></i></a>Features</h3>
|
||||
<h4><a class="anchor" href="#posting-stories-as-a-channel" id="posting-stories-as-a-channel" name="posting-stories-as-a-channel"><i class="anchor-icon"></i></a>Posting stories as a channel</h4>
|
||||
<p>With each boost, channels can post 1 additional story per day to their subscribers' story feeds.</p>
|
||||
<pre><code><a href='/constructor/inputPeerChannel'>inputPeerChannel</a>#27bcbbfc channel_id:<a href='/type/long'>long</a> access_hash:<a href='/type/long'>long</a> = <a href='/type/InputPeer'>InputPeer</a>;
|
||||
|
||||
<a href='/constructor/messages.chats'>messages.chats</a>#64ff9fd5 chats:<a href='/type/Vector%20t'>Vector</a><<a href='/type/Chat'>Chat</a>> = <a href='/type/messages.Chats'>messages.Chats</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
<a href='/method/stories.getChatsToSend'>stories.getChatsToSend</a>#a56a8b60 = <a href='/type/messages.Chats'>messages.Chats</a>;</code></pre>
|
||||
<p>Everything works exactly the same as when <a href="#posting-stories">posting stories as a user</a>, with the only difference that clients should pass the appropriate <a href="/constructor/inputPeerChannel">inputPeerChannel</a> instead of <a href="/constructor/inputPeerSelf">inputPeerSelf</a> to <a href="/method/stories.canSendStory">stories.canSendStory</a>, <a href="/method/stories.sendStory">stories.sendStory</a> and all the other story methods, see the <a href="/api/stories#posting-stories">main documentation »</a> for more info. </p>
|
||||
<p>Use <a href="/method/stories.getChatsToSend">stories.getChatsToSend</a> to obtain a list of channels where the user can post stories; <a href="/method/stories.canSendStory">stories.canSendStory</a> must still be used before uploading a story to make sure no other limit was reached, as described in the <a href="/api/stories#posting-stories">main documentation »</a>.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer_wrap">
|
||||
<div class="footer_columns_wrap footer_desktop">
|
||||
<div class="footer_column footer_column_telegram">
|
||||
<h5>Telegram</h5>
|
||||
<div class="footer_telegram_description"></div>
|
||||
Telegram is a cloud-based mobile and desktop messaging app with a focus on security and speed.
|
||||
</div>
|
||||
|
||||
<div class="footer_column">
|
||||
<h5><a href="//telegram.org/faq">About</a></h5>
|
||||
<ul>
|
||||
<li><a href="//telegram.org/faq">FAQ</a></li>
|
||||
<li><a href="//telegram.org/privacy">Privacy</a></li>
|
||||
<li><a href="//telegram.org/press">Press</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//telegram.org/apps#mobile-apps">Mobile Apps</a></h5>
|
||||
<ul>
|
||||
<li><a href="//telegram.org/dl/ios">iPhone/iPad</a></li>
|
||||
<li><a href="//telegram.org/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/web">Mobile Web</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//telegram.org/apps#desktop-apps">Desktop Apps</a></h5>
|
||||
<ul>
|
||||
<li><a href="//desktop.telegram.org/">PC/Mac/Linux</a></li>
|
||||
<li><a href="//macos.telegram.org/">macOS</a></li>
|
||||
<li><a href="//telegram.org/dl/web">Web-browser</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column footer_column_platform">
|
||||
<h5><a href="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/api">API</a></li>
|
||||
<li><a href="//translations.telegram.org/">Translations</a></li>
|
||||
<li><a href="//instantview.telegram.org/">Instant View</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer_columns_wrap footer_mobile">
|
||||
<div class="footer_column">
|
||||
<h5><a href="//telegram.org/faq">About</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//telegram.org/blog">Blog</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//telegram.org/apps">Apps</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//telegram.org/press">Press</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?47"></script>
|
||||
<script src="/js/jquery.min.js?1"></script>
|
||||
<script src="/js/bootstrap.min.js?1"></script>
|
||||
|
||||
<script>window.initDevPageNav&&initDevPageNav();
|
||||
backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
|
||||
<a href='/constructor/botInfo'>botInfo</a>#8f300b57 flags:<a href='/type/%23'>#</a> user_id:flags.0?<a href='/type/long'>long</a> description:flags.1?<a href='/type/string'>string</a> description_photo:flags.4?<a href='/type/Photo'>Photo</a> description_document:flags.5?<a href='/type/Document'>Document</a> commands:flags.2?<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotCommand'>BotCommand</a>> menu_button:flags.3?<a href='/type/BotMenuButton'>BotMenuButton</a> = <a href='/type/BotInfo'>BotInfo</a>;
|
||||
|
||||
<a href='/constructor/channelFull'>channelFull</a>#723027bd flags:<a href='/type/%23'>#</a> can_view_participants:flags.3?<a href='/constructor/true'>true</a> can_set_username:flags.6?<a href='/constructor/true'>true</a> can_set_stickers:flags.7?<a href='/constructor/true'>true</a> hidden_prehistory:flags.10?<a href='/constructor/true'>true</a> can_set_location:flags.16?<a href='/constructor/true'>true</a> has_scheduled:flags.19?<a href='/constructor/true'>true</a> can_view_stats:flags.20?<a href='/constructor/true'>true</a> blocked:flags.22?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> can_delete_channel:flags2.0?<a href='/constructor/true'>true</a> antispam:flags2.1?<a href='/constructor/true'>true</a> participants_hidden:flags2.2?<a href='/constructor/true'>true</a> translations_disabled:flags2.3?<a href='/constructor/true'>true</a> stories_pinned_available:flags2.5?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants_count:flags.0?<a href='/type/int'>int</a> admins_count:flags.1?<a href='/type/int'>int</a> kicked_count:flags.2?<a href='/type/int'>int</a> banned_count:flags.2?<a href='/type/int'>int</a> online_count:flags.13?<a href='/type/int'>int</a> read_inbox_max_id:<a href='/type/int'>int</a> read_outbox_max_id:<a href='/type/int'>int</a> unread_count:<a href='/type/int'>int</a> chat_photo:<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.23?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> migrated_from_chat_id:flags.4?<a href='/type/long'>long</a> migrated_from_max_id:flags.4?<a href='/type/int'>int</a> pinned_msg_id:flags.5?<a href='/type/int'>int</a> stickerset:flags.8?<a href='/type/StickerSet'>StickerSet</a> available_min_id:flags.9?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> linked_chat_id:flags.14?<a href='/type/long'>long</a> location:flags.15?<a href='/type/ChannelLocation'>ChannelLocation</a> slowmode_seconds:flags.17?<a href='/type/int'>int</a> slowmode_next_send_date:flags.18?<a href='/type/int'>int</a> stats_dc:flags.12?<a href='/type/int'>int</a> pts:<a href='/type/int'>int</a> call:flags.21?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.24?<a href='/type/int'>int</a> pending_suggestions:flags.25?<a href='/type/Vector%20t'>Vector</a><<a href='/type/string'>string</a>> groupcall_default_join_as:flags.26?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.27?<a href='/type/string'>string</a> requests_pending:flags.28?<a href='/type/int'>int</a> recent_requesters:flags.28?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> default_send_as:flags.29?<a href='/type/Peer'>Peer</a> available_reactions:flags.30?<a href='/type/ChatReactions'>ChatReactions</a> stories:flags2.4?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
<a href='/constructor/channelFull'>channelFull</a>#723027bd flags:<a href='/type/%23'>#</a> can_view_participants:flags.3?<a href='/constructor/true'>true</a> can_set_username:flags.6?<a href='/constructor/true'>true</a> can_set_stickers:flags.7?<a href='/constructor/true'>true</a> hidden_prehistory:flags.10?<a href='/constructor/true'>true</a> can_set_location:flags.16?<a href='/constructor/true'>true</a> has_scheduled:flags.19?<a href='/constructor/true'>true</a> can_view_stats:flags.20?<a href='/constructor/true'>true</a> blocked:flags.22?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> can_delete_channel:flags2.0?<a href='/constructor/true'>true</a> antispam:flags2.1?<a href='/constructor/true'>true</a> participants_hidden:flags2.2?<a href='/constructor/true'>true</a> translations_disabled:flags2.3?<a href='/constructor/true'>true</a> stories_pinned_available:flags2.5?<a href='/constructor/true'>true</a> view_forum_as_messages:flags2.6?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants_count:flags.0?<a href='/type/int'>int</a> admins_count:flags.1?<a href='/type/int'>int</a> kicked_count:flags.2?<a href='/type/int'>int</a> banned_count:flags.2?<a href='/type/int'>int</a> online_count:flags.13?<a href='/type/int'>int</a> read_inbox_max_id:<a href='/type/int'>int</a> read_outbox_max_id:<a href='/type/int'>int</a> unread_count:<a href='/type/int'>int</a> chat_photo:<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.23?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> migrated_from_chat_id:flags.4?<a href='/type/long'>long</a> migrated_from_max_id:flags.4?<a href='/type/int'>int</a> pinned_msg_id:flags.5?<a href='/type/int'>int</a> stickerset:flags.8?<a href='/type/StickerSet'>StickerSet</a> available_min_id:flags.9?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> linked_chat_id:flags.14?<a href='/type/long'>long</a> location:flags.15?<a href='/type/ChannelLocation'>ChannelLocation</a> slowmode_seconds:flags.17?<a href='/type/int'>int</a> slowmode_next_send_date:flags.18?<a href='/type/int'>int</a> stats_dc:flags.12?<a href='/type/int'>int</a> pts:<a href='/type/int'>int</a> call:flags.21?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.24?<a href='/type/int'>int</a> pending_suggestions:flags.25?<a href='/type/Vector%20t'>Vector</a><<a href='/type/string'>string</a>> groupcall_default_join_as:flags.26?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.27?<a href='/type/string'>string</a> requests_pending:flags.28?<a href='/type/int'>int</a> recent_requesters:flags.28?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> default_send_as:flags.29?<a href='/type/Peer'>Peer</a> available_reactions:flags.30?<a href='/type/ChatReactions'>ChatReactions</a> stories:flags2.4?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
<a href='/constructor/userFull'>userFull</a>#b9b12c6c flags:<a href='/type/%23'>#</a> blocked:flags.0?<a href='/constructor/true'>true</a> phone_calls_available:flags.4?<a href='/constructor/true'>true</a> phone_calls_private:flags.5?<a href='/constructor/true'>true</a> can_pin_message:flags.7?<a href='/constructor/true'>true</a> has_scheduled:flags.12?<a href='/constructor/true'>true</a> video_calls_available:flags.13?<a href='/constructor/true'>true</a> voice_messages_forbidden:flags.20?<a href='/constructor/true'>true</a> translations_disabled:flags.23?<a href='/constructor/true'>true</a> stories_pinned_available:flags.26?<a href='/constructor/true'>true</a> blocked_my_stories_from:flags.27?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:flags.1?<a href='/type/string'>string</a> settings:<a href='/type/PeerSettings'>PeerSettings</a> personal_photo:flags.21?<a href='/type/Photo'>Photo</a> profile_photo:flags.2?<a href='/type/Photo'>Photo</a> fallback_photo:flags.22?<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> bot_info:flags.3?<a href='/type/BotInfo'>BotInfo</a> pinned_msg_id:flags.6?<a href='/type/int'>int</a> common_chats_count:<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> ttl_period:flags.14?<a href='/type/int'>int</a> theme_emoticon:flags.15?<a href='/type/string'>string</a> private_forward_name:flags.16?<a href='/type/string'>string</a> bot_group_admin_rights:flags.17?<a href='/type/ChatAdminRights'>ChatAdminRights</a> bot_broadcast_admin_rights:flags.18?<a href='/type/ChatAdminRights'>ChatAdminRights</a> premium_gifts:flags.19?<a href='/type/Vector%20t'>Vector</a><<a href='/type/PremiumGiftOption'>PremiumGiftOption</a>> wallpaper:flags.24?<a href='/type/WallPaper'>WallPaper</a> stories:flags.25?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/UserFull'>UserFull</a>;
|
||||
|
||||
<a href='/constructor/user'>user</a>#abb5f120 flags:<a href='/type/%23'>#</a> self:flags.10?<a href='/constructor/true'>true</a> contact:flags.11?<a href='/constructor/true'>true</a> mutual_contact:flags.12?<a href='/constructor/true'>true</a> deleted:flags.13?<a href='/constructor/true'>true</a> bot:flags.14?<a href='/constructor/true'>true</a> bot_chat_history:flags.15?<a href='/constructor/true'>true</a> bot_nochats:flags.16?<a href='/constructor/true'>true</a> verified:flags.17?<a href='/constructor/true'>true</a> restricted:flags.18?<a href='/constructor/true'>true</a> min:flags.20?<a href='/constructor/true'>true</a> bot_inline_geo:flags.21?<a href='/constructor/true'>true</a> support:flags.23?<a href='/constructor/true'>true</a> scam:flags.24?<a href='/constructor/true'>true</a> apply_min_photo:flags.25?<a href='/constructor/true'>true</a> fake:flags.26?<a href='/constructor/true'>true</a> bot_attach_menu:flags.27?<a href='/constructor/true'>true</a> premium:flags.28?<a href='/constructor/true'>true</a> attach_menu_enabled:flags.29?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> bot_can_edit:flags2.1?<a href='/constructor/true'>true</a> close_friend:flags2.2?<a href='/constructor/true'>true</a> stories_hidden:flags2.3?<a href='/constructor/true'>true</a> stories_unavailable:flags2.4?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> access_hash:flags.0?<a href='/type/long'>long</a> first_name:flags.1?<a href='/type/string'>string</a> last_name:flags.2?<a href='/type/string'>string</a> username:flags.3?<a href='/type/string'>string</a> phone:flags.4?<a href='/type/string'>string</a> photo:flags.5?<a href='/type/UserProfilePhoto'>UserProfilePhoto</a> status:flags.6?<a href='/type/UserStatus'>UserStatus</a> bot_info_version:flags.14?<a href='/type/int'>int</a> restriction_reason:flags.18?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> bot_inline_placeholder:flags.19?<a href='/type/string'>string</a> lang_code:flags.22?<a href='/type/string'>string</a> emoji_status:flags.30?<a href='/type/EmojiStatus'>EmojiStatus</a> usernames:flags2.0?<a href='/type/Vector%20t'>Vector</a><<a href='/type/Username'>Username</a>> stories_max_id:flags2.5?<a href='/type/int'>int</a> = <a href='/type/User'>User</a>;</code></pre>
|
||||
|
|
|
@ -530,7 +530,7 @@ A full list of these parameters can be seen in the <a href="#client-configuratio
|
|||
<h4><a class="anchor" href="#channel-suggestions" id="channel-suggestions" name="channel-suggestions"><i class="anchor-icon"></i></a>Channel suggestions</h4>
|
||||
<pre><code><a href='/constructor/messages.chatFull'>messages.chatFull</a>#e5d7d19c full_chat:<a href='/type/ChatFull'>ChatFull</a> chats:<a href='/type/Vector%20t'>Vector</a><<a href='/type/Chat'>Chat</a>> users:<a href='/type/Vector%20t'>Vector</a><<a href='/type/User'>User</a>> = <a href='/type/messages.ChatFull'>messages.ChatFull</a>;
|
||||
|
||||
<a href='/constructor/channelFull'>channelFull</a>#723027bd flags:<a href='/type/%23'>#</a> can_view_participants:flags.3?<a href='/constructor/true'>true</a> can_set_username:flags.6?<a href='/constructor/true'>true</a> can_set_stickers:flags.7?<a href='/constructor/true'>true</a> hidden_prehistory:flags.10?<a href='/constructor/true'>true</a> can_set_location:flags.16?<a href='/constructor/true'>true</a> has_scheduled:flags.19?<a href='/constructor/true'>true</a> can_view_stats:flags.20?<a href='/constructor/true'>true</a> blocked:flags.22?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> can_delete_channel:flags2.0?<a href='/constructor/true'>true</a> antispam:flags2.1?<a href='/constructor/true'>true</a> participants_hidden:flags2.2?<a href='/constructor/true'>true</a> translations_disabled:flags2.3?<a href='/constructor/true'>true</a> stories_pinned_available:flags2.5?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants_count:flags.0?<a href='/type/int'>int</a> admins_count:flags.1?<a href='/type/int'>int</a> kicked_count:flags.2?<a href='/type/int'>int</a> banned_count:flags.2?<a href='/type/int'>int</a> online_count:flags.13?<a href='/type/int'>int</a> read_inbox_max_id:<a href='/type/int'>int</a> read_outbox_max_id:<a href='/type/int'>int</a> unread_count:<a href='/type/int'>int</a> chat_photo:<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.23?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> migrated_from_chat_id:flags.4?<a href='/type/long'>long</a> migrated_from_max_id:flags.4?<a href='/type/int'>int</a> pinned_msg_id:flags.5?<a href='/type/int'>int</a> stickerset:flags.8?<a href='/type/StickerSet'>StickerSet</a> available_min_id:flags.9?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> linked_chat_id:flags.14?<a href='/type/long'>long</a> location:flags.15?<a href='/type/ChannelLocation'>ChannelLocation</a> slowmode_seconds:flags.17?<a href='/type/int'>int</a> slowmode_next_send_date:flags.18?<a href='/type/int'>int</a> stats_dc:flags.12?<a href='/type/int'>int</a> pts:<a href='/type/int'>int</a> call:flags.21?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.24?<a href='/type/int'>int</a> pending_suggestions:flags.25?<a href='/type/Vector%20t'>Vector</a><<a href='/type/string'>string</a>> groupcall_default_join_as:flags.26?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.27?<a href='/type/string'>string</a> requests_pending:flags.28?<a href='/type/int'>int</a> recent_requesters:flags.28?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> default_send_as:flags.29?<a href='/type/Peer'>Peer</a> available_reactions:flags.30?<a href='/type/ChatReactions'>ChatReactions</a> stories:flags2.4?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
<a href='/constructor/channelFull'>channelFull</a>#723027bd flags:<a href='/type/%23'>#</a> can_view_participants:flags.3?<a href='/constructor/true'>true</a> can_set_username:flags.6?<a href='/constructor/true'>true</a> can_set_stickers:flags.7?<a href='/constructor/true'>true</a> hidden_prehistory:flags.10?<a href='/constructor/true'>true</a> can_set_location:flags.16?<a href='/constructor/true'>true</a> has_scheduled:flags.19?<a href='/constructor/true'>true</a> can_view_stats:flags.20?<a href='/constructor/true'>true</a> blocked:flags.22?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> can_delete_channel:flags2.0?<a href='/constructor/true'>true</a> antispam:flags2.1?<a href='/constructor/true'>true</a> participants_hidden:flags2.2?<a href='/constructor/true'>true</a> translations_disabled:flags2.3?<a href='/constructor/true'>true</a> stories_pinned_available:flags2.5?<a href='/constructor/true'>true</a> view_forum_as_messages:flags2.6?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants_count:flags.0?<a href='/type/int'>int</a> admins_count:flags.1?<a href='/type/int'>int</a> kicked_count:flags.2?<a href='/type/int'>int</a> banned_count:flags.2?<a href='/type/int'>int</a> online_count:flags.13?<a href='/type/int'>int</a> read_inbox_max_id:<a href='/type/int'>int</a> read_outbox_max_id:<a href='/type/int'>int</a> unread_count:<a href='/type/int'>int</a> chat_photo:<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.23?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> migrated_from_chat_id:flags.4?<a href='/type/long'>long</a> migrated_from_max_id:flags.4?<a href='/type/int'>int</a> pinned_msg_id:flags.5?<a href='/type/int'>int</a> stickerset:flags.8?<a href='/type/StickerSet'>StickerSet</a> available_min_id:flags.9?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> linked_chat_id:flags.14?<a href='/type/long'>long</a> location:flags.15?<a href='/type/ChannelLocation'>ChannelLocation</a> slowmode_seconds:flags.17?<a href='/type/int'>int</a> slowmode_next_send_date:flags.18?<a href='/type/int'>int</a> stats_dc:flags.12?<a href='/type/int'>int</a> pts:<a href='/type/int'>int</a> call:flags.21?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.24?<a href='/type/int'>int</a> pending_suggestions:flags.25?<a href='/type/Vector%20t'>Vector</a><<a href='/type/string'>string</a>> groupcall_default_join_as:flags.26?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.27?<a href='/type/string'>string</a> requests_pending:flags.28?<a href='/type/int'>int</a> recent_requesters:flags.28?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> default_send_as:flags.29?<a href='/type/Peer'>Peer</a> available_reactions:flags.30?<a href='/type/ChatReactions'>ChatReactions</a> stories:flags2.4?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
<pre><code><a href='/constructor/boolFalse'>boolFalse</a>#bc799737 = <a href='/type/Bool'>Bool</a>;
|
||||
<a href='/constructor/boolTrue'>boolTrue</a>#997275b5 = <a href='/type/Bool'>Bool</a>;
|
||||
|
||||
<a href='/constructor/channelFull'>channelFull</a>#723027bd flags:<a href='/type/%23'>#</a> can_view_participants:flags.3?<a href='/constructor/true'>true</a> can_set_username:flags.6?<a href='/constructor/true'>true</a> can_set_stickers:flags.7?<a href='/constructor/true'>true</a> hidden_prehistory:flags.10?<a href='/constructor/true'>true</a> can_set_location:flags.16?<a href='/constructor/true'>true</a> has_scheduled:flags.19?<a href='/constructor/true'>true</a> can_view_stats:flags.20?<a href='/constructor/true'>true</a> blocked:flags.22?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> can_delete_channel:flags2.0?<a href='/constructor/true'>true</a> antispam:flags2.1?<a href='/constructor/true'>true</a> participants_hidden:flags2.2?<a href='/constructor/true'>true</a> translations_disabled:flags2.3?<a href='/constructor/true'>true</a> stories_pinned_available:flags2.5?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants_count:flags.0?<a href='/type/int'>int</a> admins_count:flags.1?<a href='/type/int'>int</a> kicked_count:flags.2?<a href='/type/int'>int</a> banned_count:flags.2?<a href='/type/int'>int</a> online_count:flags.13?<a href='/type/int'>int</a> read_inbox_max_id:<a href='/type/int'>int</a> read_outbox_max_id:<a href='/type/int'>int</a> unread_count:<a href='/type/int'>int</a> chat_photo:<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.23?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> migrated_from_chat_id:flags.4?<a href='/type/long'>long</a> migrated_from_max_id:flags.4?<a href='/type/int'>int</a> pinned_msg_id:flags.5?<a href='/type/int'>int</a> stickerset:flags.8?<a href='/type/StickerSet'>StickerSet</a> available_min_id:flags.9?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> linked_chat_id:flags.14?<a href='/type/long'>long</a> location:flags.15?<a href='/type/ChannelLocation'>ChannelLocation</a> slowmode_seconds:flags.17?<a href='/type/int'>int</a> slowmode_next_send_date:flags.18?<a href='/type/int'>int</a> stats_dc:flags.12?<a href='/type/int'>int</a> pts:<a href='/type/int'>int</a> call:flags.21?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.24?<a href='/type/int'>int</a> pending_suggestions:flags.25?<a href='/type/Vector%20t'>Vector</a><<a href='/type/string'>string</a>> groupcall_default_join_as:flags.26?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.27?<a href='/type/string'>string</a> requests_pending:flags.28?<a href='/type/int'>int</a> recent_requesters:flags.28?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> default_send_as:flags.29?<a href='/type/Peer'>Peer</a> available_reactions:flags.30?<a href='/type/ChatReactions'>ChatReactions</a> stories:flags2.4?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
<a href='/constructor/channelFull'>channelFull</a>#723027bd flags:<a href='/type/%23'>#</a> can_view_participants:flags.3?<a href='/constructor/true'>true</a> can_set_username:flags.6?<a href='/constructor/true'>true</a> can_set_stickers:flags.7?<a href='/constructor/true'>true</a> hidden_prehistory:flags.10?<a href='/constructor/true'>true</a> can_set_location:flags.16?<a href='/constructor/true'>true</a> has_scheduled:flags.19?<a href='/constructor/true'>true</a> can_view_stats:flags.20?<a href='/constructor/true'>true</a> blocked:flags.22?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> can_delete_channel:flags2.0?<a href='/constructor/true'>true</a> antispam:flags2.1?<a href='/constructor/true'>true</a> participants_hidden:flags2.2?<a href='/constructor/true'>true</a> translations_disabled:flags2.3?<a href='/constructor/true'>true</a> stories_pinned_available:flags2.5?<a href='/constructor/true'>true</a> view_forum_as_messages:flags2.6?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants_count:flags.0?<a href='/type/int'>int</a> admins_count:flags.1?<a href='/type/int'>int</a> kicked_count:flags.2?<a href='/type/int'>int</a> banned_count:flags.2?<a href='/type/int'>int</a> online_count:flags.13?<a href='/type/int'>int</a> read_inbox_max_id:<a href='/type/int'>int</a> read_outbox_max_id:<a href='/type/int'>int</a> unread_count:<a href='/type/int'>int</a> chat_photo:<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.23?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> migrated_from_chat_id:flags.4?<a href='/type/long'>long</a> migrated_from_max_id:flags.4?<a href='/type/int'>int</a> pinned_msg_id:flags.5?<a href='/type/int'>int</a> stickerset:flags.8?<a href='/type/StickerSet'>StickerSet</a> available_min_id:flags.9?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> linked_chat_id:flags.14?<a href='/type/long'>long</a> location:flags.15?<a href='/type/ChannelLocation'>ChannelLocation</a> slowmode_seconds:flags.17?<a href='/type/int'>int</a> slowmode_next_send_date:flags.18?<a href='/type/int'>int</a> stats_dc:flags.12?<a href='/type/int'>int</a> pts:<a href='/type/int'>int</a> call:flags.21?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.24?<a href='/type/int'>int</a> pending_suggestions:flags.25?<a href='/type/Vector%20t'>Vector</a><<a href='/type/string'>string</a>> groupcall_default_join_as:flags.26?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.27?<a href='/type/string'>string</a> requests_pending:flags.28?<a href='/type/int'>int</a> recent_requesters:flags.28?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> default_send_as:flags.29?<a href='/type/Peer'>Peer</a> available_reactions:flags.30?<a href='/type/ChatReactions'>ChatReactions</a> stories:flags2.4?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
|
||||
<a href='/constructor/messages.chats'>messages.chats</a>#64ff9fd5 chats:<a href='/type/Vector%20t'>Vector</a><<a href='/type/Chat'>Chat</a>> = <a href='/type/messages.Chats'>messages.Chats</a>;
|
||||
|
||||
|
|
|
@ -59,11 +59,11 @@
|
|||
<li>Added <a href="/method/stories.getAllReadPeerStories">stories.getAllReadPeerStories</a> - </li>
|
||||
<li>Added <a href="/method/stories.getPeerMaxIDs">stories.getPeerMaxIDs</a> - </li>
|
||||
<li>Added <a href="/method/stories.getChatsToSend">stories.getChatsToSend</a> - </li>
|
||||
<li>Added <a href="/method/stories.togglePeerStoriesHidden">stories.togglePeerStoriesHidden</a> - </li>
|
||||
<li>Added <a href="/method/stories.getBoostsStatus">stories.getBoostsStatus</a> - Get the current <a href="/api/stories#boosts">boost status</a> of a channel, see <a href="/api/stories#boosts">here »</a> for more info on boosts.</li>
|
||||
<li>Added <a href="/method/stories.getBoostersList">stories.getBoostersList</a> - Obtain info about the users currently <a href="/api/stories#boosts">boosting</a> a channel, see <a href="/api/stories#boosts">here »</a> for more info about boosts.</li>
|
||||
<li>Added <a href="/method/stories.canApplyBoost">stories.canApplyBoost</a> - Check whether a channel can be <a href="/api/stories#boosts">boosted, see here for more info »</a>.</li>
|
||||
<li>Added <a href="/method/stories.applyBoost">stories.applyBoost</a> - <a href="/api/stories#boosts">Boost »</a> a <a href="/api/channel">channel</a>, leveling it up and granting it permission to post <a href="/api/stories">stories »</a>.</li>
|
||||
<li>Added <a href="/method/stories.togglePeerStoriesHidden">stories.togglePeerStoriesHidden</a> - Hide the active stories of a user, preventing them from being displayed on the action bar on the homescreen, see <a href="/api/stories#hiding-stories-of-other-users">here »</a> for more info.</li>
|
||||
<li>Added <a href="/method/stories.getBoostsStatus">stories.getBoostsStatus</a> - Get the current <a href="/api/boost">boost status</a> of a channel, see <a href="/api/boost">here »</a> for more info on boosts.</li>
|
||||
<li>Added <a href="/method/stories.getBoostersList">stories.getBoostersList</a> - Obtain info about the users currently <a href="/api/boost">boosting</a> a channel, see <a href="/api/boost">here »</a> for more info about boosts.</li>
|
||||
<li>Added <a href="/method/stories.canApplyBoost">stories.canApplyBoost</a> - Check whether a channel can be <a href="/api/boost">boosted, see here for more info »</a>.</li>
|
||||
<li>Added <a href="/method/stories.applyBoost">stories.applyBoost</a> - <a href="/api/boost">Boost »</a> a <a href="/api/channel">channel</a>, leveling it up and granting it permission to post <a href="/api/stories">stories »</a>.</li>
|
||||
</ul>
|
||||
<h5><a class="anchor" href="#changed-methods" id="changed-methods" name="changed-methods"><i class="anchor-icon"></i></a>Changed Methods</h5>
|
||||
<ul>
|
||||
|
@ -103,23 +103,24 @@
|
|||
<li>Added <a href="/constructor/mediaAreaVenue">mediaAreaVenue</a> - Represents a location tag attached to a <a href="/api/stories">story</a>, with additional venue information.</li>
|
||||
<li>Added <a href="/constructor/inputMediaAreaVenue">inputMediaAreaVenue</a> - </li>
|
||||
<li>Added <a href="/constructor/mediaAreaGeoPoint">mediaAreaGeoPoint</a> - Represents a geolocation tag attached to a <a href="/api/stories">story</a>.</li>
|
||||
<li>Added <a href="/constructor/updateSentStoryReaction">updateSentStoryReaction</a> - </li>
|
||||
<li>Added <a href="/constructor/updateSentStoryReaction">updateSentStoryReaction</a> - Indicates we <a href="/api/stories#reactions">reacted to a story »</a>.</li>
|
||||
<li>Added <a href="/constructor/mediaAreaSuggestedReaction">mediaAreaSuggestedReaction</a> - Represents a reaction bubble.</li>
|
||||
<li>Added <a href="/constructor/peerStories">peerStories</a> - </li>
|
||||
<li>Added <a href="/constructor/stories.peerStories">stories.peerStories</a> - </li>
|
||||
<li>Added <a href="/constructor/stories.boostsStatus">stories.boostsStatus</a> - The current <a href="/api/stories#boosts">boost status »</a> of a channel.</li>
|
||||
<li>Added <a href="/constructor/stories.boostsStatus">stories.boostsStatus</a> - The current <a href="/api/boost">boost status »</a> of a channel.</li>
|
||||
<li>Added <a href="/constructor/stories.canApplyBoostOk">stories.canApplyBoostOk</a> - We're not boosting any channel, and we can freely boost the specified channel.</li>
|
||||
<li>Added <a href="/constructor/stories.canApplyBoostReplace">stories.canApplyBoostReplace</a> - We're boosting another channel, but we can freely boost the specified channel.</li>
|
||||
<li>Added <a href="/constructor/booster">booster</a> - Info about a <a href="/api/stories#boosts">boost</a> made by a specific user.</li>
|
||||
<li>Added <a href="/constructor/stories.boostersList">stories.boostersList</a> - Info about the users currently <a href="/api/stories#boosts">boosting</a> the channel.</li>
|
||||
<li>Added <a href="/constructor/booster">booster</a> - Info about a <a href="/api/boost">boost</a> made by a specific user.</li>
|
||||
<li>Added <a href="/constructor/stories.boostersList">stories.boostersList</a> - Info about the users currently <a href="/api/boost">boosting</a> the channel.</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>
|
||||
<li>Added <strong>view_forum_as_messages</strong> parameter in <a href="/constructor/dialog">dialog</a></li>
|
||||
<li>Added <strong>blocked_my_stories_from</strong> parameter, changed type of <strong>stories</strong> from <strong>flags.25?UserStories</strong> to <strong>flags.25?PeerStories</strong> in <a href="/constructor/userFull">userFull</a></li>
|
||||
<li>Added <strong>unconfirmed</strong> parameter in <a href="/constructor/authorization">authorization</a></li>
|
||||
<li>Added <strong>flags</strong>, <strong>date</strong> parameters in <a href="/constructor/updateReadMessagesContents">updateReadMessagesContents</a></li>
|
||||
<li>Added <strong>stories_hidden</strong>, <strong>stories_hidden_min</strong>, <strong>stories_unavailable</strong>, <strong>stories_max_id</strong> parameters in <a href="/constructor/channel">channel</a></li>
|
||||
<li>Added <strong>stories_pinned_available</strong>, <strong>stories</strong> parameters in <a href="/constructor/channelFull">channelFull</a></li>
|
||||
<li>Added <strong>stories_pinned_available</strong>, <strong>view_forum_as_messages</strong>, <strong>stories</strong> parameters in <a href="/constructor/channelFull">channelFull</a></li>
|
||||
<li>Added <strong>terms_url</strong> parameter, removed <strong>recurring_terms_url</strong> parameter in <a href="/constructor/invoice">invoice</a></li>
|
||||
<li>Added <strong>from_request</strong> parameter in <a href="/constructor/messageActionBotAllowed">messageActionBotAllowed</a></li>
|
||||
<li>Added <strong>post_stories</strong>, <strong>edit_stories</strong>, <strong>delete_stories</strong> parameters in <a href="/constructor/chatAdminRights">chatAdminRights</a></li>
|
||||
|
@ -146,12 +147,13 @@
|
|||
<li>Removed stories.userStories</li>
|
||||
</ul>
|
||||
<h4><a class="anchor" href="#schema" id="schema" name="schema"><i class="anchor-icon"></i></a>Schema</h4>
|
||||
<div><pre><code><a href="/constructor/userFull">userFull</a>#b9b12c6c flags:<a href="/type/%23">#</a> blocked:flags.0?<a href="/constructor/true">true</a> phone_calls_available:flags.4?<a href="/constructor/true">true</a> phone_calls_private:flags.5?<a href="/constructor/true">true</a> can_pin_message:flags.7?<a href="/constructor/true">true</a> has_scheduled:flags.12?<a href="/constructor/true">true</a> video_calls_available:flags.13?<a href="/constructor/true">true</a> voice_messages_forbidden:flags.20?<a href="/constructor/true">true</a> translations_disabled:flags.23?<a href="/constructor/true">true</a> stories_pinned_available:flags.26?<a href="/constructor/true">true</a> blocked_my_stories_from:flags.27?<a href="/constructor/true">true</a> id:<a href="/type/long">long</a> about:flags.1?<a href="/type/string">string</a> settings:<a href="/type/PeerSettings">PeerSettings</a> personal_photo:flags.21?<a href="/type/Photo">Photo</a> profile_photo:flags.2?<a href="/type/Photo">Photo</a> fallback_photo:flags.22?<a href="/type/Photo">Photo</a> notify_settings:<a href="/type/PeerNotifySettings">PeerNotifySettings</a> bot_info:flags.3?<a href="/type/BotInfo">BotInfo</a> pinned_msg_id:flags.6?<a href="/type/int">int</a> common_chats_count:<a href="/type/int">int</a> folder_id:flags.11?<a href="/type/int">int</a> ttl_period:flags.14?<a href="/type/int">int</a> theme_emoticon:flags.15?<a href="/type/string">string</a> private_forward_name:flags.16?<a href="/type/string">string</a> bot_group_admin_rights:flags.17?<a href="/type/ChatAdminRights">ChatAdminRights</a> bot_broadcast_admin_rights:flags.18?<a href="/type/ChatAdminRights">ChatAdminRights</a> premium_gifts:flags.19?<a href="/type/Vector%20t">Vector</a><<a href="/type/PremiumGiftOption">PremiumGiftOption</a>> wallpaper:flags.24?<a href="/type/WallPaper">WallPaper</a> stories:flags.25?<a href="/type/PeerStories">PeerStories</a> = <a href="/type/UserFull">UserFull</a>;
|
||||
<div><pre><code><a href="/constructor/dialog">dialog</a>#d58a08c6 flags:<a href="/type/%23">#</a> pinned:flags.2?<a href="/constructor/true">true</a> unread_mark:flags.3?<a href="/constructor/true">true</a> view_forum_as_messages:flags.6?<a href="/constructor/true">true</a> peer:<a href="/type/Peer">Peer</a> top_message:<a href="/type/int">int</a> read_inbox_max_id:<a href="/type/int">int</a> read_outbox_max_id:<a href="/type/int">int</a> unread_count:<a href="/type/int">int</a> unread_mentions_count:<a href="/type/int">int</a> unread_reactions_count:<a href="/type/int">int</a> notify_settings:<a href="/type/PeerNotifySettings">PeerNotifySettings</a> pts:flags.0?<a href="/type/int">int</a> draft:flags.1?<a href="/type/DraftMessage">DraftMessage</a> folder_id:flags.4?<a href="/type/int">int</a> ttl_period:flags.5?<a href="/type/int">int</a> = <a href="/type/Dialog">Dialog</a>;<br>
|
||||
<a href="/constructor/userFull">userFull</a>#b9b12c6c flags:<a href="/type/%23">#</a> blocked:flags.0?<a href="/constructor/true">true</a> phone_calls_available:flags.4?<a href="/constructor/true">true</a> phone_calls_private:flags.5?<a href="/constructor/true">true</a> can_pin_message:flags.7?<a href="/constructor/true">true</a> has_scheduled:flags.12?<a href="/constructor/true">true</a> video_calls_available:flags.13?<a href="/constructor/true">true</a> voice_messages_forbidden:flags.20?<a href="/constructor/true">true</a> translations_disabled:flags.23?<a href="/constructor/true">true</a> stories_pinned_available:flags.26?<a href="/constructor/true">true</a> blocked_my_stories_from:flags.27?<a href="/constructor/true">true</a> id:<a href="/type/long">long</a> about:flags.1?<a href="/type/string">string</a> settings:<a href="/type/PeerSettings">PeerSettings</a> personal_photo:flags.21?<a href="/type/Photo">Photo</a> profile_photo:flags.2?<a href="/type/Photo">Photo</a> fallback_photo:flags.22?<a href="/type/Photo">Photo</a> notify_settings:<a href="/type/PeerNotifySettings">PeerNotifySettings</a> bot_info:flags.3?<a href="/type/BotInfo">BotInfo</a> pinned_msg_id:flags.6?<a href="/type/int">int</a> common_chats_count:<a href="/type/int">int</a> folder_id:flags.11?<a href="/type/int">int</a> ttl_period:flags.14?<a href="/type/int">int</a> theme_emoticon:flags.15?<a href="/type/string">string</a> private_forward_name:flags.16?<a href="/type/string">string</a> bot_group_admin_rights:flags.17?<a href="/type/ChatAdminRights">ChatAdminRights</a> bot_broadcast_admin_rights:flags.18?<a href="/type/ChatAdminRights">ChatAdminRights</a> premium_gifts:flags.19?<a href="/type/Vector%20t">Vector</a><<a href="/type/PremiumGiftOption">PremiumGiftOption</a>> wallpaper:flags.24?<a href="/type/WallPaper">WallPaper</a> stories:flags.25?<a href="/type/PeerStories">PeerStories</a> = <a href="/type/UserFull">UserFull</a>;
|
||||
<a href="/constructor/updateNewAuthorization">updateNewAuthorization</a>#8951abef flags:<a href="/type/%23">#</a> unconfirmed:flags.0?<a href="/constructor/true">true</a> hash:<a href="/type/long">long</a> date:flags.0?<a href="/type/int">int</a> device:flags.0?<a href="/type/string">string</a> location:flags.0?<a href="/type/string">string</a> = <a href="/type/Update">Update</a>;<br>
|
||||
<a href="/constructor/authorization">authorization</a>#ad01d61d flags:<a href="/type/%23">#</a> current:flags.0?<a href="/constructor/true">true</a> official_app:flags.1?<a href="/constructor/true">true</a> password_pending:flags.2?<a href="/constructor/true">true</a> encrypted_requests_disabled:flags.3?<a href="/constructor/true">true</a> call_requests_disabled:flags.4?<a href="/constructor/true">true</a> unconfirmed:flags.5?<a href="/constructor/true">true</a> hash:<a href="/type/long">long</a> device_model:<a href="/type/string">string</a> platform:<a href="/type/string">string</a> system_version:<a href="/type/string">string</a> api_id:<a href="/type/int">int</a> app_name:<a href="/type/string">string</a> app_version:<a href="/type/string">string</a> date_created:<a href="/type/int">int</a> date_active:<a href="/type/int">int</a> ip:<a href="/type/string">string</a> country:<a href="/type/string">string</a> region:<a href="/type/string">string</a> = <a href="/type/Authorization">Authorization</a>;<br>
|
||||
<a href="/constructor/updateReadMessagesContents">updateReadMessagesContents</a>#f8227181 flags:<a href="/type/%23">#</a> messages:<a href="/type/Vector%20t">Vector</a><<a href="/type/int">int</a>> pts:<a href="/type/int">int</a> pts_count:<a href="/type/int">int</a> date:flags.0?<a href="/type/int">int</a> = <a href="/type/Update">Update</a>;<br>
|
||||
<a href="/constructor/channel">channel</a>#94f592db flags:<a href="/type/%23">#</a> creator:flags.0?<a href="/constructor/true">true</a> left:flags.2?<a href="/constructor/true">true</a> broadcast:flags.5?<a href="/constructor/true">true</a> verified:flags.7?<a href="/constructor/true">true</a> megagroup:flags.8?<a href="/constructor/true">true</a> restricted:flags.9?<a href="/constructor/true">true</a> signatures:flags.11?<a href="/constructor/true">true</a> min:flags.12?<a href="/constructor/true">true</a> scam:flags.19?<a href="/constructor/true">true</a> has_link:flags.20?<a href="/constructor/true">true</a> has_geo:flags.21?<a href="/constructor/true">true</a> slowmode_enabled:flags.22?<a href="/constructor/true">true</a> call_active:flags.23?<a href="/constructor/true">true</a> call_not_empty:flags.24?<a href="/constructor/true">true</a> fake:flags.25?<a href="/constructor/true">true</a> gigagroup:flags.26?<a href="/constructor/true">true</a> noforwards:flags.27?<a href="/constructor/true">true</a> join_to_send:flags.28?<a href="/constructor/true">true</a> join_request:flags.29?<a href="/constructor/true">true</a> forum:flags.30?<a href="/constructor/true">true</a> flags2:<a href="/type/%23">#</a> stories_hidden:flags2.1?<a href="/constructor/true">true</a> stories_hidden_min:flags2.2?<a href="/constructor/true">true</a> stories_unavailable:flags2.3?<a href="/constructor/true">true</a> id:<a href="/type/long">long</a> access_hash:flags.13?<a href="/type/long">long</a> title:<a href="/type/string">string</a> username:flags.6?<a href="/type/string">string</a> photo:<a href="/type/ChatPhoto">ChatPhoto</a> date:<a href="/type/int">int</a> restriction_reason:flags.9?<a href="/type/Vector%20t">Vector</a><<a href="/type/RestrictionReason">RestrictionReason</a>> admin_rights:flags.14?<a href="/type/ChatAdminRights">ChatAdminRights</a> banned_rights:flags.15?<a href="/type/ChatBannedRights">ChatBannedRights</a> default_banned_rights:flags.18?<a href="/type/ChatBannedRights">ChatBannedRights</a> participants_count:flags.17?<a href="/type/int">int</a> usernames:flags2.0?<a href="/type/Vector%20t">Vector</a><<a href="/type/Username">Username</a>> stories_max_id:flags2.4?<a href="/type/int">int</a> = <a href="/type/Chat">Chat</a>;
|
||||
<a href="/constructor/channelFull">channelFull</a>#723027bd flags:<a href="/type/%23">#</a> can_view_participants:flags.3?<a href="/constructor/true">true</a> can_set_username:flags.6?<a href="/constructor/true">true</a> can_set_stickers:flags.7?<a href="/constructor/true">true</a> hidden_prehistory:flags.10?<a href="/constructor/true">true</a> can_set_location:flags.16?<a href="/constructor/true">true</a> has_scheduled:flags.19?<a href="/constructor/true">true</a> can_view_stats:flags.20?<a href="/constructor/true">true</a> blocked:flags.22?<a href="/constructor/true">true</a> flags2:<a href="/type/%23">#</a> can_delete_channel:flags2.0?<a href="/constructor/true">true</a> antispam:flags2.1?<a href="/constructor/true">true</a> participants_hidden:flags2.2?<a href="/constructor/true">true</a> translations_disabled:flags2.3?<a href="/constructor/true">true</a> stories_pinned_available:flags2.5?<a href="/constructor/true">true</a> id:<a href="/type/long">long</a> about:<a href="/type/string">string</a> participants_count:flags.0?<a href="/type/int">int</a> admins_count:flags.1?<a href="/type/int">int</a> kicked_count:flags.2?<a href="/type/int">int</a> banned_count:flags.2?<a href="/type/int">int</a> online_count:flags.13?<a href="/type/int">int</a> read_inbox_max_id:<a href="/type/int">int</a> read_outbox_max_id:<a href="/type/int">int</a> unread_count:<a href="/type/int">int</a> chat_photo:<a href="/type/Photo">Photo</a> notify_settings:<a href="/type/PeerNotifySettings">PeerNotifySettings</a> exported_invite:flags.23?<a href="/type/ExportedChatInvite">ExportedChatInvite</a> bot_info:<a href="/type/Vector%20t">Vector</a><<a href="/type/BotInfo">BotInfo</a>> migrated_from_chat_id:flags.4?<a href="/type/long">long</a> migrated_from_max_id:flags.4?<a href="/type/int">int</a> pinned_msg_id:flags.5?<a href="/type/int">int</a> stickerset:flags.8?<a href="/type/StickerSet">StickerSet</a> available_min_id:flags.9?<a href="/type/int">int</a> folder_id:flags.11?<a href="/type/int">int</a> linked_chat_id:flags.14?<a href="/type/long">long</a> location:flags.15?<a href="/type/ChannelLocation">ChannelLocation</a> slowmode_seconds:flags.17?<a href="/type/int">int</a> slowmode_next_send_date:flags.18?<a href="/type/int">int</a> stats_dc:flags.12?<a href="/type/int">int</a> pts:<a href="/type/int">int</a> call:flags.21?<a href="/type/InputGroupCall">InputGroupCall</a> ttl_period:flags.24?<a href="/type/int">int</a> pending_suggestions:flags.25?<a href="/type/Vector%20t">Vector</a><<a href="/type/string">string</a>> groupcall_default_join_as:flags.26?<a href="/type/Peer">Peer</a> theme_emoticon:flags.27?<a href="/type/string">string</a> requests_pending:flags.28?<a href="/type/int">int</a> recent_requesters:flags.28?<a href="/type/Vector%20t">Vector</a><<a href="/type/long">long</a>> default_send_as:flags.29?<a href="/type/Peer">Peer</a> available_reactions:flags.30?<a href="/type/ChatReactions">ChatReactions</a> stories:flags2.4?<a href="/type/PeerStories">PeerStories</a> = <a href="/type/ChatFull">ChatFull</a>;<br>
|
||||
<a href="/constructor/channelFull">channelFull</a>#723027bd flags:<a href="/type/%23">#</a> can_view_participants:flags.3?<a href="/constructor/true">true</a> can_set_username:flags.6?<a href="/constructor/true">true</a> can_set_stickers:flags.7?<a href="/constructor/true">true</a> hidden_prehistory:flags.10?<a href="/constructor/true">true</a> can_set_location:flags.16?<a href="/constructor/true">true</a> has_scheduled:flags.19?<a href="/constructor/true">true</a> can_view_stats:flags.20?<a href="/constructor/true">true</a> blocked:flags.22?<a href="/constructor/true">true</a> flags2:<a href="/type/%23">#</a> can_delete_channel:flags2.0?<a href="/constructor/true">true</a> antispam:flags2.1?<a href="/constructor/true">true</a> participants_hidden:flags2.2?<a href="/constructor/true">true</a> translations_disabled:flags2.3?<a href="/constructor/true">true</a> stories_pinned_available:flags2.5?<a href="/constructor/true">true</a> view_forum_as_messages:flags2.6?<a href="/constructor/true">true</a> id:<a href="/type/long">long</a> about:<a href="/type/string">string</a> participants_count:flags.0?<a href="/type/int">int</a> admins_count:flags.1?<a href="/type/int">int</a> kicked_count:flags.2?<a href="/type/int">int</a> banned_count:flags.2?<a href="/type/int">int</a> online_count:flags.13?<a href="/type/int">int</a> read_inbox_max_id:<a href="/type/int">int</a> read_outbox_max_id:<a href="/type/int">int</a> unread_count:<a href="/type/int">int</a> chat_photo:<a href="/type/Photo">Photo</a> notify_settings:<a href="/type/PeerNotifySettings">PeerNotifySettings</a> exported_invite:flags.23?<a href="/type/ExportedChatInvite">ExportedChatInvite</a> bot_info:<a href="/type/Vector%20t">Vector</a><<a href="/type/BotInfo">BotInfo</a>> migrated_from_chat_id:flags.4?<a href="/type/long">long</a> migrated_from_max_id:flags.4?<a href="/type/int">int</a> pinned_msg_id:flags.5?<a href="/type/int">int</a> stickerset:flags.8?<a href="/type/StickerSet">StickerSet</a> available_min_id:flags.9?<a href="/type/int">int</a> folder_id:flags.11?<a href="/type/int">int</a> linked_chat_id:flags.14?<a href="/type/long">long</a> location:flags.15?<a href="/type/ChannelLocation">ChannelLocation</a> slowmode_seconds:flags.17?<a href="/type/int">int</a> slowmode_next_send_date:flags.18?<a href="/type/int">int</a> stats_dc:flags.12?<a href="/type/int">int</a> pts:<a href="/type/int">int</a> call:flags.21?<a href="/type/InputGroupCall">InputGroupCall</a> ttl_period:flags.24?<a href="/type/int">int</a> pending_suggestions:flags.25?<a href="/type/Vector%20t">Vector</a><<a href="/type/string">string</a>> groupcall_default_join_as:flags.26?<a href="/type/Peer">Peer</a> theme_emoticon:flags.27?<a href="/type/string">string</a> requests_pending:flags.28?<a href="/type/int">int</a> recent_requesters:flags.28?<a href="/type/Vector%20t">Vector</a><<a href="/type/long">long</a>> default_send_as:flags.29?<a href="/type/Peer">Peer</a> available_reactions:flags.30?<a href="/type/ChatReactions">ChatReactions</a> stories:flags2.4?<a href="/type/PeerStories">PeerStories</a> = <a href="/type/ChatFull">ChatFull</a>;<br>
|
||||
<a href="/constructor/invoice">invoice</a>#5db95a15 flags:<a href="/type/%23">#</a> test:flags.0?<a href="/constructor/true">true</a> name_requested:flags.1?<a href="/constructor/true">true</a> phone_requested:flags.2?<a href="/constructor/true">true</a> email_requested:flags.3?<a href="/constructor/true">true</a> shipping_address_requested:flags.4?<a href="/constructor/true">true</a> flexible:flags.5?<a href="/constructor/true">true</a> phone_to_provider:flags.6?<a href="/constructor/true">true</a> email_to_provider:flags.7?<a href="/constructor/true">true</a> recurring:flags.9?<a href="/constructor/true">true</a> currency:<a href="/type/string">string</a> prices:<a href="/type/Vector%20t">Vector</a><<a href="/type/LabeledPrice">LabeledPrice</a>> max_tip_amount:flags.8?<a href="/type/long">long</a> suggested_tip_amounts:flags.8?<a href="/type/Vector%20t">Vector</a><<a href="/type/long">long</a>> terms_url:flags.10?<a href="/type/string">string</a> = <a href="/type/Invoice">Invoice</a>;<br>
|
||||
<a href="/constructor/messageActionBotAllowed">messageActionBotAllowed</a>#c516d679 flags:<a href="/type/%23">#</a> attach_menu:flags.1?<a href="/constructor/true">true</a> from_request:flags.3?<a href="/constructor/true">true</a> domain:flags.0?<a href="/type/string">string</a> app:flags.2?<a href="/type/BotApp">BotApp</a> = <a href="/type/MessageAction">MessageAction</a>;<br>
|
||||
<a href="/constructor/chatAdminRights">chatAdminRights</a>#5fb224d5 flags:<a href="/type/%23">#</a> change_info:flags.0?<a href="/constructor/true">true</a> post_messages:flags.1?<a href="/constructor/true">true</a> edit_messages:flags.2?<a href="/constructor/true">true</a> delete_messages:flags.3?<a href="/constructor/true">true</a> ban_users:flags.4?<a href="/constructor/true">true</a> invite_users:flags.5?<a href="/constructor/true">true</a> pin_messages:flags.7?<a href="/constructor/true">true</a> add_admins:flags.9?<a href="/constructor/true">true</a> anonymous:flags.10?<a href="/constructor/true">true</a> manage_call:flags.11?<a href="/constructor/true">true</a> other:flags.12?<a href="/constructor/true">true</a> manage_topics:flags.13?<a href="/constructor/true">true</a> post_stories:flags.14?<a href="/constructor/true">true</a> edit_stories:flags.15?<a href="/constructor/true">true</a> delete_stories:flags.16?<a href="/constructor/true">true</a> = <a href="/type/ChatAdminRights">ChatAdminRights</a>;<br>
|
||||
|
@ -264,7 +266,7 @@
|
|||
<li>Added <a href="/constructor/storyItemSkipped">storyItemSkipped</a> - </li>
|
||||
<li>Added <a href="/constructor/storyItem">storyItem</a> - Represents a <a href="/api/stories">story</a>.</li>
|
||||
<li>Added <a href="/constructor/userStories">userStories</a></li>
|
||||
<li>Added <a href="/constructor/updateStory">updateStory</a> - </li>
|
||||
<li>Added <a href="/constructor/updateStory">updateStory</a> - A new story was posted.</li>
|
||||
<li>Added <a href="/constructor/updateReadStories">updateReadStories</a> - </li>
|
||||
<li>Added <a href="/constructor/stories.allStoriesNotModified">stories.allStoriesNotModified</a> - </li>
|
||||
<li>Added <a href="/constructor/stories.allStories">stories.allStories</a> - </li>
|
||||
|
|
|
@ -365,8 +365,8 @@ tg://addemoji?set=<slug></code></pre>
|
|||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#boost-links" id="boost-links" name="boost-links"><i class="anchor-icon"></i></a>Boost links</h3>
|
||||
<p>Used by users to <a href="/api/stories#boosts">boost channels »</a>, granting them the ability to post stories.</p>
|
||||
<p>Use the channel information to boost the channel as described <a href="/api/stories#boosts">here »</a>. </p>
|
||||
<p>Used by users to <a href="/api/boost">boost channels »</a>, granting them the ability to post stories.</p>
|
||||
<p>Use the channel information to boost the channel as described <a href="/api/boost">here »</a>. </p>
|
||||
<p><code>t.me</code> syntax (public channels):</p>
|
||||
<pre><code>t.me/<username>?boost</code></pre>
|
||||
<p><code>t.me</code> syntax (private channels):</p>
|
||||
|
|
|
@ -65,7 +65,7 @@ The <code>unpin</code> flags specifies whether to unpin or pin the message, and
|
|||
<h3><a class="anchor" href="#getting-pinned-messages" id="getting-pinned-messages" name="getting-pinned-messages"><i class="anchor-icon"></i></a>Getting pinned messages</h3>
|
||||
<pre><code><a href='/constructor/userFull'>userFull</a>#b9b12c6c flags:<a href='/type/%23'>#</a> blocked:flags.0?<a href='/constructor/true'>true</a> phone_calls_available:flags.4?<a href='/constructor/true'>true</a> phone_calls_private:flags.5?<a href='/constructor/true'>true</a> can_pin_message:flags.7?<a href='/constructor/true'>true</a> has_scheduled:flags.12?<a href='/constructor/true'>true</a> video_calls_available:flags.13?<a href='/constructor/true'>true</a> voice_messages_forbidden:flags.20?<a href='/constructor/true'>true</a> translations_disabled:flags.23?<a href='/constructor/true'>true</a> stories_pinned_available:flags.26?<a href='/constructor/true'>true</a> blocked_my_stories_from:flags.27?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:flags.1?<a href='/type/string'>string</a> settings:<a href='/type/PeerSettings'>PeerSettings</a> personal_photo:flags.21?<a href='/type/Photo'>Photo</a> profile_photo:flags.2?<a href='/type/Photo'>Photo</a> fallback_photo:flags.22?<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> bot_info:flags.3?<a href='/type/BotInfo'>BotInfo</a> pinned_msg_id:flags.6?<a href='/type/int'>int</a> common_chats_count:<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> ttl_period:flags.14?<a href='/type/int'>int</a> theme_emoticon:flags.15?<a href='/type/string'>string</a> private_forward_name:flags.16?<a href='/type/string'>string</a> bot_group_admin_rights:flags.17?<a href='/type/ChatAdminRights'>ChatAdminRights</a> bot_broadcast_admin_rights:flags.18?<a href='/type/ChatAdminRights'>ChatAdminRights</a> premium_gifts:flags.19?<a href='/type/Vector%20t'>Vector</a><<a href='/type/PremiumGiftOption'>PremiumGiftOption</a>> wallpaper:flags.24?<a href='/type/WallPaper'>WallPaper</a> stories:flags.25?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/UserFull'>UserFull</a>;
|
||||
<a href='/constructor/chatFull'>chatFull</a>#c9d31138 flags:<a href='/type/%23'>#</a> can_set_username:flags.7?<a href='/constructor/true'>true</a> has_scheduled:flags.8?<a href='/constructor/true'>true</a> translations_disabled:flags.19?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants:<a href='/type/ChatParticipants'>ChatParticipants</a> chat_photo:flags.2?<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.13?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:flags.3?<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> pinned_msg_id:flags.6?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> call:flags.12?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.14?<a href='/type/int'>int</a> groupcall_default_join_as:flags.15?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.16?<a href='/type/string'>string</a> requests_pending:flags.17?<a href='/type/int'>int</a> recent_requesters:flags.17?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> available_reactions:flags.18?<a href='/type/ChatReactions'>ChatReactions</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
<a href='/constructor/channelFull'>channelFull</a>#723027bd flags:<a href='/type/%23'>#</a> can_view_participants:flags.3?<a href='/constructor/true'>true</a> can_set_username:flags.6?<a href='/constructor/true'>true</a> can_set_stickers:flags.7?<a href='/constructor/true'>true</a> hidden_prehistory:flags.10?<a href='/constructor/true'>true</a> can_set_location:flags.16?<a href='/constructor/true'>true</a> has_scheduled:flags.19?<a href='/constructor/true'>true</a> can_view_stats:flags.20?<a href='/constructor/true'>true</a> blocked:flags.22?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> can_delete_channel:flags2.0?<a href='/constructor/true'>true</a> antispam:flags2.1?<a href='/constructor/true'>true</a> participants_hidden:flags2.2?<a href='/constructor/true'>true</a> translations_disabled:flags2.3?<a href='/constructor/true'>true</a> stories_pinned_available:flags2.5?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants_count:flags.0?<a href='/type/int'>int</a> admins_count:flags.1?<a href='/type/int'>int</a> kicked_count:flags.2?<a href='/type/int'>int</a> banned_count:flags.2?<a href='/type/int'>int</a> online_count:flags.13?<a href='/type/int'>int</a> read_inbox_max_id:<a href='/type/int'>int</a> read_outbox_max_id:<a href='/type/int'>int</a> unread_count:<a href='/type/int'>int</a> chat_photo:<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.23?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> migrated_from_chat_id:flags.4?<a href='/type/long'>long</a> migrated_from_max_id:flags.4?<a href='/type/int'>int</a> pinned_msg_id:flags.5?<a href='/type/int'>int</a> stickerset:flags.8?<a href='/type/StickerSet'>StickerSet</a> available_min_id:flags.9?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> linked_chat_id:flags.14?<a href='/type/long'>long</a> location:flags.15?<a href='/type/ChannelLocation'>ChannelLocation</a> slowmode_seconds:flags.17?<a href='/type/int'>int</a> slowmode_next_send_date:flags.18?<a href='/type/int'>int</a> stats_dc:flags.12?<a href='/type/int'>int</a> pts:<a href='/type/int'>int</a> call:flags.21?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.24?<a href='/type/int'>int</a> pending_suggestions:flags.25?<a href='/type/Vector%20t'>Vector</a><<a href='/type/string'>string</a>> groupcall_default_join_as:flags.26?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.27?<a href='/type/string'>string</a> requests_pending:flags.28?<a href='/type/int'>int</a> recent_requesters:flags.28?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> default_send_as:flags.29?<a href='/type/Peer'>Peer</a> available_reactions:flags.30?<a href='/type/ChatReactions'>ChatReactions</a> stories:flags2.4?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
<a href='/constructor/channelFull'>channelFull</a>#723027bd flags:<a href='/type/%23'>#</a> can_view_participants:flags.3?<a href='/constructor/true'>true</a> can_set_username:flags.6?<a href='/constructor/true'>true</a> can_set_stickers:flags.7?<a href='/constructor/true'>true</a> hidden_prehistory:flags.10?<a href='/constructor/true'>true</a> can_set_location:flags.16?<a href='/constructor/true'>true</a> has_scheduled:flags.19?<a href='/constructor/true'>true</a> can_view_stats:flags.20?<a href='/constructor/true'>true</a> blocked:flags.22?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> can_delete_channel:flags2.0?<a href='/constructor/true'>true</a> antispam:flags2.1?<a href='/constructor/true'>true</a> participants_hidden:flags2.2?<a href='/constructor/true'>true</a> translations_disabled:flags2.3?<a href='/constructor/true'>true</a> stories_pinned_available:flags2.5?<a href='/constructor/true'>true</a> view_forum_as_messages:flags2.6?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants_count:flags.0?<a href='/type/int'>int</a> admins_count:flags.1?<a href='/type/int'>int</a> kicked_count:flags.2?<a href='/type/int'>int</a> banned_count:flags.2?<a href='/type/int'>int</a> online_count:flags.13?<a href='/type/int'>int</a> read_inbox_max_id:<a href='/type/int'>int</a> read_outbox_max_id:<a href='/type/int'>int</a> unread_count:<a href='/type/int'>int</a> chat_photo:<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.23?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> migrated_from_chat_id:flags.4?<a href='/type/long'>long</a> migrated_from_max_id:flags.4?<a href='/type/int'>int</a> pinned_msg_id:flags.5?<a href='/type/int'>int</a> stickerset:flags.8?<a href='/type/StickerSet'>StickerSet</a> available_min_id:flags.9?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> linked_chat_id:flags.14?<a href='/type/long'>long</a> location:flags.15?<a href='/type/ChannelLocation'>ChannelLocation</a> slowmode_seconds:flags.17?<a href='/type/int'>int</a> slowmode_next_send_date:flags.18?<a href='/type/int'>int</a> stats_dc:flags.12?<a href='/type/int'>int</a> pts:<a href='/type/int'>int</a> call:flags.21?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.24?<a href='/type/int'>int</a> pending_suggestions:flags.25?<a href='/type/Vector%20t'>Vector</a><<a href='/type/string'>string</a>> groupcall_default_join_as:flags.26?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.27?<a href='/type/string'>string</a> requests_pending:flags.28?<a href='/type/int'>int</a> recent_requesters:flags.28?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> default_send_as:flags.29?<a href='/type/Peer'>Peer</a> available_reactions:flags.30?<a href='/type/ChatReactions'>ChatReactions</a> stories:flags2.4?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
|
||||
<a href='/constructor/inputMessagesFilterPinned'>inputMessagesFilterPinned</a>#1bb00451 = <a href='/type/MessagesFilter'>MessagesFilter</a>;
|
||||
|
||||
|
|
|
@ -84,6 +84,8 @@ Apps should short-poll reactions for visible messages (that weren't sent by the
|
|||
In groups, <a href="/method/messages.reportReaction">messages.reportReaction</a> can be used to report a certain <a href="/api/custom-emoji">custom emoji</a> reaction, specifying the <code>peer</code>, the message <code>id</code> and the user that sent the reaction (<code>reaction_peer</code>). </p>
|
||||
<p><a href="/method/messages.getUnreadReactions">messages.getUnreadReactions</a> is used to fetch messages with unread reactions.<br>
|
||||
Use <a href="/method/messages.readReactions">messages.readReactions</a> to mark all reactions as read in a certain chat.</p>
|
||||
<h3><a class="anchor" href="#react-to-a-story" id="react-to-a-story" name="react-to-a-story"><i class="anchor-icon"></i></a>React to a <a href="/api/stories">story</a></h3>
|
||||
<p>See <a href="/api/stories#reactions">here »</a> for more info on how to react to a story.</p>
|
||||
<h3><a class="anchor" href="#animated-normal-emojis" id="animated-normal-emojis" name="animated-normal-emojis"><i class="anchor-icon"></i></a>Animated normal emojis</h3>
|
||||
<pre><code><a href='/constructor/reactionEmoji'>reactionEmoji</a>#1b2286b8 emoticon:<a href='/type/string'>string</a> = <a href='/type/Reaction'>Reaction</a>;
|
||||
|
||||
|
@ -110,7 +112,7 @@ For custom emojis, the <code>effect_animation</code> must be equal to the <code>
|
|||
<a href='/constructor/chatReactionsSome'>chatReactionsSome</a>#661d4037 reactions:<a href='/type/Vector%20t'>Vector</a><<a href='/type/Reaction'>Reaction</a>> = <a href='/type/ChatReactions'>ChatReactions</a>;
|
||||
|
||||
<a href='/constructor/chatFull'>chatFull</a>#c9d31138 flags:<a href='/type/%23'>#</a> can_set_username:flags.7?<a href='/constructor/true'>true</a> has_scheduled:flags.8?<a href='/constructor/true'>true</a> translations_disabled:flags.19?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants:<a href='/type/ChatParticipants'>ChatParticipants</a> chat_photo:flags.2?<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.13?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:flags.3?<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> pinned_msg_id:flags.6?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> call:flags.12?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.14?<a href='/type/int'>int</a> groupcall_default_join_as:flags.15?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.16?<a href='/type/string'>string</a> requests_pending:flags.17?<a href='/type/int'>int</a> recent_requesters:flags.17?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> available_reactions:flags.18?<a href='/type/ChatReactions'>ChatReactions</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
<a href='/constructor/channelFull'>channelFull</a>#723027bd flags:<a href='/type/%23'>#</a> can_view_participants:flags.3?<a href='/constructor/true'>true</a> can_set_username:flags.6?<a href='/constructor/true'>true</a> can_set_stickers:flags.7?<a href='/constructor/true'>true</a> hidden_prehistory:flags.10?<a href='/constructor/true'>true</a> can_set_location:flags.16?<a href='/constructor/true'>true</a> has_scheduled:flags.19?<a href='/constructor/true'>true</a> can_view_stats:flags.20?<a href='/constructor/true'>true</a> blocked:flags.22?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> can_delete_channel:flags2.0?<a href='/constructor/true'>true</a> antispam:flags2.1?<a href='/constructor/true'>true</a> participants_hidden:flags2.2?<a href='/constructor/true'>true</a> translations_disabled:flags2.3?<a href='/constructor/true'>true</a> stories_pinned_available:flags2.5?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants_count:flags.0?<a href='/type/int'>int</a> admins_count:flags.1?<a href='/type/int'>int</a> kicked_count:flags.2?<a href='/type/int'>int</a> banned_count:flags.2?<a href='/type/int'>int</a> online_count:flags.13?<a href='/type/int'>int</a> read_inbox_max_id:<a href='/type/int'>int</a> read_outbox_max_id:<a href='/type/int'>int</a> unread_count:<a href='/type/int'>int</a> chat_photo:<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.23?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> migrated_from_chat_id:flags.4?<a href='/type/long'>long</a> migrated_from_max_id:flags.4?<a href='/type/int'>int</a> pinned_msg_id:flags.5?<a href='/type/int'>int</a> stickerset:flags.8?<a href='/type/StickerSet'>StickerSet</a> available_min_id:flags.9?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> linked_chat_id:flags.14?<a href='/type/long'>long</a> location:flags.15?<a href='/type/ChannelLocation'>ChannelLocation</a> slowmode_seconds:flags.17?<a href='/type/int'>int</a> slowmode_next_send_date:flags.18?<a href='/type/int'>int</a> stats_dc:flags.12?<a href='/type/int'>int</a> pts:<a href='/type/int'>int</a> call:flags.21?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.24?<a href='/type/int'>int</a> pending_suggestions:flags.25?<a href='/type/Vector%20t'>Vector</a><<a href='/type/string'>string</a>> groupcall_default_join_as:flags.26?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.27?<a href='/type/string'>string</a> requests_pending:flags.28?<a href='/type/int'>int</a> recent_requesters:flags.28?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> default_send_as:flags.29?<a href='/type/Peer'>Peer</a> available_reactions:flags.30?<a href='/type/ChatReactions'>ChatReactions</a> stories:flags2.4?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
<a href='/constructor/channelFull'>channelFull</a>#723027bd flags:<a href='/type/%23'>#</a> can_view_participants:flags.3?<a href='/constructor/true'>true</a> can_set_username:flags.6?<a href='/constructor/true'>true</a> can_set_stickers:flags.7?<a href='/constructor/true'>true</a> hidden_prehistory:flags.10?<a href='/constructor/true'>true</a> can_set_location:flags.16?<a href='/constructor/true'>true</a> has_scheduled:flags.19?<a href='/constructor/true'>true</a> can_view_stats:flags.20?<a href='/constructor/true'>true</a> blocked:flags.22?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> can_delete_channel:flags2.0?<a href='/constructor/true'>true</a> antispam:flags2.1?<a href='/constructor/true'>true</a> participants_hidden:flags2.2?<a href='/constructor/true'>true</a> translations_disabled:flags2.3?<a href='/constructor/true'>true</a> stories_pinned_available:flags2.5?<a href='/constructor/true'>true</a> view_forum_as_messages:flags2.6?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants_count:flags.0?<a href='/type/int'>int</a> admins_count:flags.1?<a href='/type/int'>int</a> kicked_count:flags.2?<a href='/type/int'>int</a> banned_count:flags.2?<a href='/type/int'>int</a> online_count:flags.13?<a href='/type/int'>int</a> read_inbox_max_id:<a href='/type/int'>int</a> read_outbox_max_id:<a href='/type/int'>int</a> unread_count:<a href='/type/int'>int</a> chat_photo:<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.23?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> migrated_from_chat_id:flags.4?<a href='/type/long'>long</a> migrated_from_max_id:flags.4?<a href='/type/int'>int</a> pinned_msg_id:flags.5?<a href='/type/int'>int</a> stickerset:flags.8?<a href='/type/StickerSet'>StickerSet</a> available_min_id:flags.9?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> linked_chat_id:flags.14?<a href='/type/long'>long</a> location:flags.15?<a href='/type/ChannelLocation'>ChannelLocation</a> slowmode_seconds:flags.17?<a href='/type/int'>int</a> slowmode_next_send_date:flags.18?<a href='/type/int'>int</a> stats_dc:flags.12?<a href='/type/int'>int</a> pts:<a href='/type/int'>int</a> call:flags.21?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.24?<a href='/type/int'>int</a> pending_suggestions:flags.25?<a href='/type/Vector%20t'>Vector</a><<a href='/type/string'>string</a>> groupcall_default_join_as:flags.26?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.27?<a href='/type/string'>string</a> requests_pending:flags.28?<a href='/type/int'>int</a> recent_requesters:flags.28?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> default_send_as:flags.29?<a href='/type/Peer'>Peer</a> available_reactions:flags.30?<a href='/type/ChatReactions'>ChatReactions</a> stories:flags2.4?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
|
||||
<a href='/constructor/channelAdminLogEventActionChangeAvailableReactions'>channelAdminLogEventActionChangeAvailableReactions</a>#be4e0ef8 prev_value:<a href='/type/ChatReactions'>ChatReactions</a> new_value:<a href='/type/ChatReactions'>ChatReactions</a> = <a href='/type/ChannelAdminLogEventAction'>ChannelAdminLogEventAction</a>;
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
<a href='/constructor/stats.broadcastStats'>stats.broadcastStats</a>#bdf78394 period:<a href='/type/StatsDateRangeDays'>StatsDateRangeDays</a> followers:<a href='/type/StatsAbsValueAndPrev'>StatsAbsValueAndPrev</a> views_per_post:<a href='/type/StatsAbsValueAndPrev'>StatsAbsValueAndPrev</a> shares_per_post:<a href='/type/StatsAbsValueAndPrev'>StatsAbsValueAndPrev</a> enabled_notifications:<a href='/type/StatsPercentValue'>StatsPercentValue</a> growth_graph:<a href='/type/StatsGraph'>StatsGraph</a> followers_graph:<a href='/type/StatsGraph'>StatsGraph</a> mute_graph:<a href='/type/StatsGraph'>StatsGraph</a> top_hours_graph:<a href='/type/StatsGraph'>StatsGraph</a> interactions_graph:<a href='/type/StatsGraph'>StatsGraph</a> iv_interactions_graph:<a href='/type/StatsGraph'>StatsGraph</a> views_by_source_graph:<a href='/type/StatsGraph'>StatsGraph</a> new_followers_by_source_graph:<a href='/type/StatsGraph'>StatsGraph</a> languages_graph:<a href='/type/StatsGraph'>StatsGraph</a> recent_message_interactions:<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageInteractionCounters'>MessageInteractionCounters</a>> = <a href='/type/stats.BroadcastStats'>stats.BroadcastStats</a>;
|
||||
|
||||
<a href='/constructor/messages.chatFull'>messages.chatFull</a>#e5d7d19c full_chat:<a href='/type/ChatFull'>ChatFull</a> chats:<a href='/type/Vector%20t'>Vector</a><<a href='/type/Chat'>Chat</a>> users:<a href='/type/Vector%20t'>Vector</a><<a href='/type/User'>User</a>> = <a href='/type/messages.ChatFull'>messages.ChatFull</a>;
|
||||
<a href='/constructor/channelFull'>channelFull</a>#723027bd flags:<a href='/type/%23'>#</a> can_view_participants:flags.3?<a href='/constructor/true'>true</a> can_set_username:flags.6?<a href='/constructor/true'>true</a> can_set_stickers:flags.7?<a href='/constructor/true'>true</a> hidden_prehistory:flags.10?<a href='/constructor/true'>true</a> can_set_location:flags.16?<a href='/constructor/true'>true</a> has_scheduled:flags.19?<a href='/constructor/true'>true</a> can_view_stats:flags.20?<a href='/constructor/true'>true</a> blocked:flags.22?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> can_delete_channel:flags2.0?<a href='/constructor/true'>true</a> antispam:flags2.1?<a href='/constructor/true'>true</a> participants_hidden:flags2.2?<a href='/constructor/true'>true</a> translations_disabled:flags2.3?<a href='/constructor/true'>true</a> stories_pinned_available:flags2.5?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants_count:flags.0?<a href='/type/int'>int</a> admins_count:flags.1?<a href='/type/int'>int</a> kicked_count:flags.2?<a href='/type/int'>int</a> banned_count:flags.2?<a href='/type/int'>int</a> online_count:flags.13?<a href='/type/int'>int</a> read_inbox_max_id:<a href='/type/int'>int</a> read_outbox_max_id:<a href='/type/int'>int</a> unread_count:<a href='/type/int'>int</a> chat_photo:<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.23?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> migrated_from_chat_id:flags.4?<a href='/type/long'>long</a> migrated_from_max_id:flags.4?<a href='/type/int'>int</a> pinned_msg_id:flags.5?<a href='/type/int'>int</a> stickerset:flags.8?<a href='/type/StickerSet'>StickerSet</a> available_min_id:flags.9?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> linked_chat_id:flags.14?<a href='/type/long'>long</a> location:flags.15?<a href='/type/ChannelLocation'>ChannelLocation</a> slowmode_seconds:flags.17?<a href='/type/int'>int</a> slowmode_next_send_date:flags.18?<a href='/type/int'>int</a> stats_dc:flags.12?<a href='/type/int'>int</a> pts:<a href='/type/int'>int</a> call:flags.21?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.24?<a href='/type/int'>int</a> pending_suggestions:flags.25?<a href='/type/Vector%20t'>Vector</a><<a href='/type/string'>string</a>> groupcall_default_join_as:flags.26?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.27?<a href='/type/string'>string</a> requests_pending:flags.28?<a href='/type/int'>int</a> recent_requesters:flags.28?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> default_send_as:flags.29?<a href='/type/Peer'>Peer</a> available_reactions:flags.30?<a href='/type/ChatReactions'>ChatReactions</a> stories:flags2.4?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
<a href='/constructor/channelFull'>channelFull</a>#723027bd flags:<a href='/type/%23'>#</a> can_view_participants:flags.3?<a href='/constructor/true'>true</a> can_set_username:flags.6?<a href='/constructor/true'>true</a> can_set_stickers:flags.7?<a href='/constructor/true'>true</a> hidden_prehistory:flags.10?<a href='/constructor/true'>true</a> can_set_location:flags.16?<a href='/constructor/true'>true</a> has_scheduled:flags.19?<a href='/constructor/true'>true</a> can_view_stats:flags.20?<a href='/constructor/true'>true</a> blocked:flags.22?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> can_delete_channel:flags2.0?<a href='/constructor/true'>true</a> antispam:flags2.1?<a href='/constructor/true'>true</a> participants_hidden:flags2.2?<a href='/constructor/true'>true</a> translations_disabled:flags2.3?<a href='/constructor/true'>true</a> stories_pinned_available:flags2.5?<a href='/constructor/true'>true</a> view_forum_as_messages:flags2.6?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants_count:flags.0?<a href='/type/int'>int</a> admins_count:flags.1?<a href='/type/int'>int</a> kicked_count:flags.2?<a href='/type/int'>int</a> banned_count:flags.2?<a href='/type/int'>int</a> online_count:flags.13?<a href='/type/int'>int</a> read_inbox_max_id:<a href='/type/int'>int</a> read_outbox_max_id:<a href='/type/int'>int</a> unread_count:<a href='/type/int'>int</a> chat_photo:<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.23?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> migrated_from_chat_id:flags.4?<a href='/type/long'>long</a> migrated_from_max_id:flags.4?<a href='/type/int'>int</a> pinned_msg_id:flags.5?<a href='/type/int'>int</a> stickerset:flags.8?<a href='/type/StickerSet'>StickerSet</a> available_min_id:flags.9?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> linked_chat_id:flags.14?<a href='/type/long'>long</a> location:flags.15?<a href='/type/ChannelLocation'>ChannelLocation</a> slowmode_seconds:flags.17?<a href='/type/int'>int</a> slowmode_next_send_date:flags.18?<a href='/type/int'>int</a> stats_dc:flags.12?<a href='/type/int'>int</a> pts:<a href='/type/int'>int</a> call:flags.21?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.24?<a href='/type/int'>int</a> pending_suggestions:flags.25?<a href='/type/Vector%20t'>Vector</a><<a href='/type/string'>string</a>> groupcall_default_join_as:flags.26?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.27?<a href='/type/string'>string</a> requests_pending:flags.28?<a href='/type/int'>int</a> recent_requesters:flags.28?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> default_send_as:flags.29?<a href='/type/Peer'>Peer</a> available_reactions:flags.30?<a href='/type/ChatReactions'>ChatReactions</a> stories:flags2.4?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
|
@ -97,7 +97,7 @@ Note that in this case, <code>current</code> refers to the <code>period</code> i
|
|||
<a href='/constructor/stats.megagroupStats'>stats.megagroupStats</a>#ef7ff916 period:<a href='/type/StatsDateRangeDays'>StatsDateRangeDays</a> members:<a href='/type/StatsAbsValueAndPrev'>StatsAbsValueAndPrev</a> messages:<a href='/type/StatsAbsValueAndPrev'>StatsAbsValueAndPrev</a> viewers:<a href='/type/StatsAbsValueAndPrev'>StatsAbsValueAndPrev</a> posters:<a href='/type/StatsAbsValueAndPrev'>StatsAbsValueAndPrev</a> growth_graph:<a href='/type/StatsGraph'>StatsGraph</a> members_graph:<a href='/type/StatsGraph'>StatsGraph</a> new_members_by_source_graph:<a href='/type/StatsGraph'>StatsGraph</a> languages_graph:<a href='/type/StatsGraph'>StatsGraph</a> messages_graph:<a href='/type/StatsGraph'>StatsGraph</a> actions_graph:<a href='/type/StatsGraph'>StatsGraph</a> top_hours_graph:<a href='/type/StatsGraph'>StatsGraph</a> weekdays_graph:<a href='/type/StatsGraph'>StatsGraph</a> top_posters:<a href='/type/Vector%20t'>Vector</a><<a href='/type/StatsGroupTopPoster'>StatsGroupTopPoster</a>> top_admins:<a href='/type/Vector%20t'>Vector</a><<a href='/type/StatsGroupTopAdmin'>StatsGroupTopAdmin</a>> top_inviters:<a href='/type/Vector%20t'>Vector</a><<a href='/type/StatsGroupTopInviter'>StatsGroupTopInviter</a>> users:<a href='/type/Vector%20t'>Vector</a><<a href='/type/User'>User</a>> = <a href='/type/stats.MegagroupStats'>stats.MegagroupStats</a>;
|
||||
|
||||
<a href='/constructor/messages.chatFull'>messages.chatFull</a>#e5d7d19c full_chat:<a href='/type/ChatFull'>ChatFull</a> chats:<a href='/type/Vector%20t'>Vector</a><<a href='/type/Chat'>Chat</a>> users:<a href='/type/Vector%20t'>Vector</a><<a href='/type/User'>User</a>> = <a href='/type/messages.ChatFull'>messages.ChatFull</a>;
|
||||
<a href='/constructor/channelFull'>channelFull</a>#723027bd flags:<a href='/type/%23'>#</a> can_view_participants:flags.3?<a href='/constructor/true'>true</a> can_set_username:flags.6?<a href='/constructor/true'>true</a> can_set_stickers:flags.7?<a href='/constructor/true'>true</a> hidden_prehistory:flags.10?<a href='/constructor/true'>true</a> can_set_location:flags.16?<a href='/constructor/true'>true</a> has_scheduled:flags.19?<a href='/constructor/true'>true</a> can_view_stats:flags.20?<a href='/constructor/true'>true</a> blocked:flags.22?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> can_delete_channel:flags2.0?<a href='/constructor/true'>true</a> antispam:flags2.1?<a href='/constructor/true'>true</a> participants_hidden:flags2.2?<a href='/constructor/true'>true</a> translations_disabled:flags2.3?<a href='/constructor/true'>true</a> stories_pinned_available:flags2.5?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants_count:flags.0?<a href='/type/int'>int</a> admins_count:flags.1?<a href='/type/int'>int</a> kicked_count:flags.2?<a href='/type/int'>int</a> banned_count:flags.2?<a href='/type/int'>int</a> online_count:flags.13?<a href='/type/int'>int</a> read_inbox_max_id:<a href='/type/int'>int</a> read_outbox_max_id:<a href='/type/int'>int</a> unread_count:<a href='/type/int'>int</a> chat_photo:<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.23?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> migrated_from_chat_id:flags.4?<a href='/type/long'>long</a> migrated_from_max_id:flags.4?<a href='/type/int'>int</a> pinned_msg_id:flags.5?<a href='/type/int'>int</a> stickerset:flags.8?<a href='/type/StickerSet'>StickerSet</a> available_min_id:flags.9?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> linked_chat_id:flags.14?<a href='/type/long'>long</a> location:flags.15?<a href='/type/ChannelLocation'>ChannelLocation</a> slowmode_seconds:flags.17?<a href='/type/int'>int</a> slowmode_next_send_date:flags.18?<a href='/type/int'>int</a> stats_dc:flags.12?<a href='/type/int'>int</a> pts:<a href='/type/int'>int</a> call:flags.21?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.24?<a href='/type/int'>int</a> pending_suggestions:flags.25?<a href='/type/Vector%20t'>Vector</a><<a href='/type/string'>string</a>> groupcall_default_join_as:flags.26?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.27?<a href='/type/string'>string</a> requests_pending:flags.28?<a href='/type/int'>int</a> recent_requesters:flags.28?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> default_send_as:flags.29?<a href='/type/Peer'>Peer</a> available_reactions:flags.30?<a href='/type/ChatReactions'>ChatReactions</a> stories:flags2.4?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
<a href='/constructor/channelFull'>channelFull</a>#723027bd flags:<a href='/type/%23'>#</a> can_view_participants:flags.3?<a href='/constructor/true'>true</a> can_set_username:flags.6?<a href='/constructor/true'>true</a> can_set_stickers:flags.7?<a href='/constructor/true'>true</a> hidden_prehistory:flags.10?<a href='/constructor/true'>true</a> can_set_location:flags.16?<a href='/constructor/true'>true</a> has_scheduled:flags.19?<a href='/constructor/true'>true</a> can_view_stats:flags.20?<a href='/constructor/true'>true</a> blocked:flags.22?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> can_delete_channel:flags2.0?<a href='/constructor/true'>true</a> antispam:flags2.1?<a href='/constructor/true'>true</a> participants_hidden:flags2.2?<a href='/constructor/true'>true</a> translations_disabled:flags2.3?<a href='/constructor/true'>true</a> stories_pinned_available:flags2.5?<a href='/constructor/true'>true</a> view_forum_as_messages:flags2.6?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants_count:flags.0?<a href='/type/int'>int</a> admins_count:flags.1?<a href='/type/int'>int</a> kicked_count:flags.2?<a href='/type/int'>int</a> banned_count:flags.2?<a href='/type/int'>int</a> online_count:flags.13?<a href='/type/int'>int</a> read_inbox_max_id:<a href='/type/int'>int</a> read_outbox_max_id:<a href='/type/int'>int</a> unread_count:<a href='/type/int'>int</a> chat_photo:<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.23?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> migrated_from_chat_id:flags.4?<a href='/type/long'>long</a> migrated_from_max_id:flags.4?<a href='/type/int'>int</a> pinned_msg_id:flags.5?<a href='/type/int'>int</a> stickerset:flags.8?<a href='/type/StickerSet'>StickerSet</a> available_min_id:flags.9?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> linked_chat_id:flags.14?<a href='/type/long'>long</a> location:flags.15?<a href='/type/ChannelLocation'>ChannelLocation</a> slowmode_seconds:flags.17?<a href='/type/int'>int</a> slowmode_next_send_date:flags.18?<a href='/type/int'>int</a> stats_dc:flags.12?<a href='/type/int'>int</a> pts:<a href='/type/int'>int</a> call:flags.21?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.24?<a href='/type/int'>int</a> pending_suggestions:flags.25?<a href='/type/Vector%20t'>Vector</a><<a href='/type/string'>string</a>> groupcall_default_join_as:flags.26?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.27?<a href='/type/string'>string</a> requests_pending:flags.28?<a href='/type/int'>int</a> recent_requesters:flags.28?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> default_send_as:flags.29?<a href='/type/Peer'>Peer</a> available_reactions:flags.30?<a href='/type/ChatReactions'>ChatReactions</a> stories:flags2.4?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
|
@ -111,7 +111,7 @@ The returned <a href="/constructor/stats.broadcastStats">stats.broadcastStats</a
|
|||
<pre><code><a href='/constructor/stats.messageStats'>stats.messageStats</a>#8999f295 views_graph:<a href='/type/StatsGraph'>StatsGraph</a> = <a href='/type/stats.MessageStats'>stats.MessageStats</a>;
|
||||
|
||||
<a href='/constructor/messages.chatFull'>messages.chatFull</a>#e5d7d19c full_chat:<a href='/type/ChatFull'>ChatFull</a> chats:<a href='/type/Vector%20t'>Vector</a><<a href='/type/Chat'>Chat</a>> users:<a href='/type/Vector%20t'>Vector</a><<a href='/type/User'>User</a>> = <a href='/type/messages.ChatFull'>messages.ChatFull</a>;
|
||||
<a href='/constructor/channelFull'>channelFull</a>#723027bd flags:<a href='/type/%23'>#</a> can_view_participants:flags.3?<a href='/constructor/true'>true</a> can_set_username:flags.6?<a href='/constructor/true'>true</a> can_set_stickers:flags.7?<a href='/constructor/true'>true</a> hidden_prehistory:flags.10?<a href='/constructor/true'>true</a> can_set_location:flags.16?<a href='/constructor/true'>true</a> has_scheduled:flags.19?<a href='/constructor/true'>true</a> can_view_stats:flags.20?<a href='/constructor/true'>true</a> blocked:flags.22?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> can_delete_channel:flags2.0?<a href='/constructor/true'>true</a> antispam:flags2.1?<a href='/constructor/true'>true</a> participants_hidden:flags2.2?<a href='/constructor/true'>true</a> translations_disabled:flags2.3?<a href='/constructor/true'>true</a> stories_pinned_available:flags2.5?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants_count:flags.0?<a href='/type/int'>int</a> admins_count:flags.1?<a href='/type/int'>int</a> kicked_count:flags.2?<a href='/type/int'>int</a> banned_count:flags.2?<a href='/type/int'>int</a> online_count:flags.13?<a href='/type/int'>int</a> read_inbox_max_id:<a href='/type/int'>int</a> read_outbox_max_id:<a href='/type/int'>int</a> unread_count:<a href='/type/int'>int</a> chat_photo:<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.23?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> migrated_from_chat_id:flags.4?<a href='/type/long'>long</a> migrated_from_max_id:flags.4?<a href='/type/int'>int</a> pinned_msg_id:flags.5?<a href='/type/int'>int</a> stickerset:flags.8?<a href='/type/StickerSet'>StickerSet</a> available_min_id:flags.9?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> linked_chat_id:flags.14?<a href='/type/long'>long</a> location:flags.15?<a href='/type/ChannelLocation'>ChannelLocation</a> slowmode_seconds:flags.17?<a href='/type/int'>int</a> slowmode_next_send_date:flags.18?<a href='/type/int'>int</a> stats_dc:flags.12?<a href='/type/int'>int</a> pts:<a href='/type/int'>int</a> call:flags.21?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.24?<a href='/type/int'>int</a> pending_suggestions:flags.25?<a href='/type/Vector%20t'>Vector</a><<a href='/type/string'>string</a>> groupcall_default_join_as:flags.26?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.27?<a href='/type/string'>string</a> requests_pending:flags.28?<a href='/type/int'>int</a> recent_requesters:flags.28?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> default_send_as:flags.29?<a href='/type/Peer'>Peer</a> available_reactions:flags.30?<a href='/type/ChatReactions'>ChatReactions</a> stories:flags2.4?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
<a href='/constructor/channelFull'>channelFull</a>#723027bd flags:<a href='/type/%23'>#</a> can_view_participants:flags.3?<a href='/constructor/true'>true</a> can_set_username:flags.6?<a href='/constructor/true'>true</a> can_set_stickers:flags.7?<a href='/constructor/true'>true</a> hidden_prehistory:flags.10?<a href='/constructor/true'>true</a> can_set_location:flags.16?<a href='/constructor/true'>true</a> has_scheduled:flags.19?<a href='/constructor/true'>true</a> can_view_stats:flags.20?<a href='/constructor/true'>true</a> blocked:flags.22?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> can_delete_channel:flags2.0?<a href='/constructor/true'>true</a> antispam:flags2.1?<a href='/constructor/true'>true</a> participants_hidden:flags2.2?<a href='/constructor/true'>true</a> translations_disabled:flags2.3?<a href='/constructor/true'>true</a> stories_pinned_available:flags2.5?<a href='/constructor/true'>true</a> view_forum_as_messages:flags2.6?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> about:<a href='/type/string'>string</a> participants_count:flags.0?<a href='/type/int'>int</a> admins_count:flags.1?<a href='/type/int'>int</a> kicked_count:flags.2?<a href='/type/int'>int</a> banned_count:flags.2?<a href='/type/int'>int</a> online_count:flags.13?<a href='/type/int'>int</a> read_inbox_max_id:<a href='/type/int'>int</a> read_outbox_max_id:<a href='/type/int'>int</a> unread_count:<a href='/type/int'>int</a> chat_photo:<a href='/type/Photo'>Photo</a> notify_settings:<a href='/type/PeerNotifySettings'>PeerNotifySettings</a> exported_invite:flags.23?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> bot_info:<a href='/type/Vector%20t'>Vector</a><<a href='/type/BotInfo'>BotInfo</a>> migrated_from_chat_id:flags.4?<a href='/type/long'>long</a> migrated_from_max_id:flags.4?<a href='/type/int'>int</a> pinned_msg_id:flags.5?<a href='/type/int'>int</a> stickerset:flags.8?<a href='/type/StickerSet'>StickerSet</a> available_min_id:flags.9?<a href='/type/int'>int</a> folder_id:flags.11?<a href='/type/int'>int</a> linked_chat_id:flags.14?<a href='/type/long'>long</a> location:flags.15?<a href='/type/ChannelLocation'>ChannelLocation</a> slowmode_seconds:flags.17?<a href='/type/int'>int</a> slowmode_next_send_date:flags.18?<a href='/type/int'>int</a> stats_dc:flags.12?<a href='/type/int'>int</a> pts:<a href='/type/int'>int</a> call:flags.21?<a href='/type/InputGroupCall'>InputGroupCall</a> ttl_period:flags.24?<a href='/type/int'>int</a> pending_suggestions:flags.25?<a href='/type/Vector%20t'>Vector</a><<a href='/type/string'>string</a>> groupcall_default_join_as:flags.26?<a href='/type/Peer'>Peer</a> theme_emoticon:flags.27?<a href='/type/string'>string</a> requests_pending:flags.28?<a href='/type/int'>int</a> recent_requesters:flags.28?<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> default_send_as:flags.29?<a href='/type/Peer'>Peer</a> available_reactions:flags.30?<a href='/type/ChatReactions'>ChatReactions</a> stories:flags2.4?<a href='/type/PeerStories'>PeerStories</a> = <a href='/type/ChatFull'>ChatFull</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
|
|
|
@ -53,6 +53,10 @@
|
|||
<a href='/constructor/boolFalse'>boolFalse</a>#bc799737 = <a href='/type/Bool'>Bool</a>;
|
||||
<a href='/constructor/boolTrue'>boolTrue</a>#997275b5 = <a href='/type/Bool'>Bool</a>;
|
||||
|
||||
<a href='/constructor/updateStory'>updateStory</a>#75b3b798 peer:<a href='/type/Peer'>Peer</a> story:<a href='/type/StoryItem'>StoryItem</a> = <a href='/type/Update'>Update</a>;
|
||||
|
||||
<a href='/constructor/updateStoryID'>updateStoryID</a>#1bf335b9 id:<a href='/type/int'>int</a> random_id:<a href='/type/long'>long</a> = <a href='/type/Update'>Update</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
<a href='/method/stories.canSendStory'>stories.canSendStory</a>#c7dfdfdd peer:<a href='/type/InputPeer'>InputPeer</a> = <a href='/type/Bool'>Bool</a>;
|
||||
|
@ -89,6 +93,8 @@ Note that if any of the conditions changes in the period between the call to <a
|
|||
<li><code>expire</code>: Period after which the story is moved to <a href="#pinnedarchived-stories">archive</a> (and <a href="#pinnedarchived-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-stories">add the story to the profile</a> automatically upon expiration. If not set, the story will only be added to the <a href="#pinnedarchived-stories">archive</a>. </li>
|
||||
</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="/constructor/stories.sendStory">stories.sendStory</a>: this way, you can tell which story was assigned a specific <code>id</code> by checking which <a href="/constructor/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>A story may also be edited using <a href="/method/stories.editStory">stories.editStory</a>. </p>
|
||||
<h4><a class="anchor" href="#pinned-archived-stories" id="pinned-archived-stories" name="pinned-archived-stories"><i class="anchor-icon"></i></a>Pinned/archived stories</h4>
|
||||
<pre><code><a href='/constructor/stories.stories'>stories.stories</a>#5dd8c3c8 count:<a href='/type/int'>int</a> stories:<a href='/type/Vector%20t'>Vector</a><<a href='/type/StoryItem'>StoryItem</a>> chats:<a href='/type/Vector%20t'>Vector</a><<a href='/type/Chat'>Chat</a>> users:<a href='/type/Vector%20t'>Vector</a><<a href='/type/User'>User</a>> = <a href='/type/stories.Stories'>stories.Stories</a>;
|
||||
|
@ -110,7 +116,7 @@ Note that if any of the conditions changes in the period between the call to <a
|
|||
<a href='/method/stories.deleteStories'>stories.deleteStories</a>#ae59db5f peer:<a href='/type/InputPeer'>InputPeer</a> id:<a href='/type/Vector%20t'>Vector</a><<a href='/type/int'>int</a>> = <a href='/type/Vector%20t'>Vector</a><<a href='/type/int'>int</a>>;</code></pre>
|
||||
<p>Use the <a href="/method/stories.deleteStories">stories.deleteStories</a> method to delete one or more active, pinned or archived stories by their IDs, passed in <code>id</code>. </p>
|
||||
<h4><a class="anchor" href="#preventing-users-from-seeing-your-stories" id="preventing-users-from-seeing-your-stories" name="preventing-users-from-seeing-your-stories"><i class="anchor-icon"></i></a>Preventing users from seeing your stories</h4>
|
||||
<p>Users may be individually blocked from seeing all of your stories by adding them to the <a href="/api/block">story blocklist »</a>.</p>
|
||||
<p>Users may be individually blocked from seeing all of your stories by adding them to the <a href="/api/block">story blocklist »</a>. </p>
|
||||
<h3><a class="anchor" href="#watching-stories" id="watching-stories" name="watching-stories"><i class="anchor-icon"></i></a>Watching stories</h3>
|
||||
<pre><code><a href='/constructor/storyItem'>storyItem</a>#44c457ce flags:<a href='/type/%23'>#</a> pinned:flags.5?<a href='/constructor/true'>true</a> public:flags.7?<a href='/constructor/true'>true</a> close_friends:flags.8?<a href='/constructor/true'>true</a> min:flags.9?<a href='/constructor/true'>true</a> noforwards:flags.10?<a href='/constructor/true'>true</a> edited:flags.11?<a href='/constructor/true'>true</a> contacts:flags.12?<a href='/constructor/true'>true</a> selected_contacts:flags.13?<a href='/constructor/true'>true</a> out:flags.16?<a href='/constructor/true'>true</a> id:<a href='/type/int'>int</a> date:<a href='/type/int'>int</a> expire_date:<a href='/type/int'>int</a> caption:flags.0?<a href='/type/string'>string</a> entities:flags.1?<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageEntity'>MessageEntity</a>> media:<a href='/type/MessageMedia'>MessageMedia</a> media_areas:flags.14?<a href='/type/Vector%20t'>Vector</a><<a href='/type/MediaArea'>MediaArea</a>> privacy:flags.2?<a href='/type/Vector%20t'>Vector</a><<a href='/type/PrivacyRule'>PrivacyRule</a>> views:flags.3?<a href='/type/StoryViews'>StoryViews</a> sent_reaction:flags.15?<a href='/type/Reaction'>Reaction</a> = <a href='/type/StoryItem'>StoryItem</a>;
|
||||
<a href='/constructor/storyItemSkipped'>storyItemSkipped</a>#ffadc913 flags:<a href='/type/%23'>#</a> close_friends:flags.8?<a href='/constructor/true'>true</a> id:<a href='/type/int'>int</a> date:<a href='/type/int'>int</a> expire_date:<a href='/type/int'>int</a> = <a href='/type/StoryItem'>StoryItem</a>;
|
||||
|
@ -121,6 +127,7 @@ Note that if any of the conditions changes in the period between the call to <a
|
|||
<a href='/constructor/storiesStealthMode'>storiesStealthMode</a>#712e27fd flags:<a href='/type/%23'>#</a> active_until_date:flags.0?<a href='/type/int'>int</a> cooldown_until_date:flags.1?<a href='/type/int'>int</a> = <a href='/type/StoriesStealthMode'>StoriesStealthMode</a>;
|
||||
|
||||
<a href='/constructor/stories.allStories'>stories.allStories</a>#6efc5e81 flags:<a href='/type/%23'>#</a> has_more:flags.0?<a href='/constructor/true'>true</a> count:<a href='/type/int'>int</a> state:<a href='/type/string'>string</a> peer_stories:<a href='/type/Vector%20t'>Vector</a><<a href='/type/PeerStories'>PeerStories</a>> chats:<a href='/type/Vector%20t'>Vector</a><<a href='/type/Chat'>Chat</a>> users:<a href='/type/Vector%20t'>Vector</a><<a href='/type/User'>User</a>> stealth_mode:<a href='/type/StoriesStealthMode'>StoriesStealthMode</a> = <a href='/type/stories.AllStories'>stories.AllStories</a>;
|
||||
<a href='/constructor/stories.allStoriesNotModified'>stories.allStoriesNotModified</a>#1158fe3e flags:<a href='/type/%23'>#</a> state:<a href='/type/string'>string</a> stealth_mode:<a href='/type/StoriesStealthMode'>StoriesStealthMode</a> = <a href='/type/stories.AllStories'>stories.AllStories</a>;
|
||||
|
||||
<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>;
|
||||
|
||||
|
@ -141,7 +148,21 @@ Note that if any of the conditions changes in the period between the call to <a
|
|||
<a href='/method/stories.getPeerStories'>stories.getPeerStories</a>#2c4ada50 peer:<a href='/type/InputPeer'>InputPeer</a> = <a href='/type/stories.PeerStories'>stories.PeerStories</a>;
|
||||
<a href='/method/stories.getAllReadPeerStories'>stories.getAllReadPeerStories</a>#9b5ae7f9 = <a href='/type/Updates'>Updates</a>;
|
||||
<a href='/method/stories.getPeerMaxIDs'>stories.getPeerMaxIDs</a>#535983c3 id:<a href='/type/Vector%20t'>Vector</a><<a href='/type/InputPeer'>InputPeer</a>> = <a href='/type/Vector%20t'>Vector</a><<a href='/type/int'>int</a>>;</code></pre>
|
||||
<p>Stories s</p>
|
||||
<p>Active stories of contacts and subscribed channels should be shown in the action bar of the homescreen.<br>
|
||||
Use <a href="/method/stories.getAllStories">stories.getAllStories</a> to fetch the full list of active stories. </p>
|
||||
<p>Optionally, the <code>hidden</code> flag can be set to fetch the <a href="#hiding-stories-of-other-users">hidden stories to be shown in the archived tab</a>. </p>
|
||||
<p>Pagination using this method is a bit different from usual: a <code>state</code> string is used to maintain the pagination state. </p>
|
||||
<ul>
|
||||
<li>Initially, neither the <code>next</code> or <code>state</code> flags should be set: upon completion, a new <code>state</code> string is returned and should be stored locally, associated either to the main or hidden story list (depending on the value of <code>hidden</code> we passed); pass the locally stored <code>state</code> to all future calls of the method. </li>
|
||||
<li>If more stories are available, the <a href="/constructor/stories.allStories">stories.allStories</a>.<code>has_more</code> flag will be set: in this case, the client should re-call the method with the newly returned <code>state</code> <strong>and</strong> the <code>next</code> flag set to fetch a new <code>state</code> and the remaining stories from the chosen story list; the process should be repeated until no more stories are available (<code>no_more</code> will <strong>not</strong> be set). </li>
|
||||
</ul>
|
||||
<p>Once the full story list is fetched, <a href="/constructor/stories.allStories">stories.allStories</a> can be called with the stored <code>state</code> <strong>without</strong> setting the <code>next</code> flag to check for updates in an active story list: if no changes have occurred since our last call, <a href="/method/stories.allStoriesNotModified">stories.allStoriesNotModified</a> is returned, otherwise <a href="/constructor/stories.allStories">stories.allStories</a> is returned (possibly requiring further pagination as described above). </p>
|
||||
<p>Changes to the active stories list are contained in the <a href="/constructor/stories.allStories">stories.allStories</a>.<code>peer_stories</code> field: this field contains a vector of <a href="/constructor/peerStories">peerStories</a> constructors, one for each peer, containing the peer ID, the ID of the maximum read story (if any), and a list of <a href="/type/StoryItem">StoryItem</a> constructors of type:</p>
|
||||
<ul>
|
||||
<li><a href="/constructor/storyItem">storyItem</a> - Represents an active story</li>
|
||||
<li><a href="/constructor/storyItemSkipped">storyItemSkipped</a> - Represents an active story, whose</li>
|
||||
<li><a href="/constructor/storyItemDeleted">storyItemDeleted</a> - Represents a previously active story, that was now deleted (i.e. returned when fetching updates to the active story list with <code>state</code> set and <code>next</code> <strong>not</strong> set)</li>
|
||||
</ul>
|
||||
<h4><a class="anchor" href="#hiding-stories-of-other-users" id="hiding-stories-of-other-users" name="hiding-stories-of-other-users"><i class="anchor-icon"></i></a>Hiding stories of other users</h4>
|
||||
<pre><code><a href='/constructor/user'>user</a>#abb5f120 flags:<a href='/type/%23'>#</a> self:flags.10?<a href='/constructor/true'>true</a> contact:flags.11?<a href='/constructor/true'>true</a> mutual_contact:flags.12?<a href='/constructor/true'>true</a> deleted:flags.13?<a href='/constructor/true'>true</a> bot:flags.14?<a href='/constructor/true'>true</a> bot_chat_history:flags.15?<a href='/constructor/true'>true</a> bot_nochats:flags.16?<a href='/constructor/true'>true</a> verified:flags.17?<a href='/constructor/true'>true</a> restricted:flags.18?<a href='/constructor/true'>true</a> min:flags.20?<a href='/constructor/true'>true</a> bot_inline_geo:flags.21?<a href='/constructor/true'>true</a> support:flags.23?<a href='/constructor/true'>true</a> scam:flags.24?<a href='/constructor/true'>true</a> apply_min_photo:flags.25?<a href='/constructor/true'>true</a> fake:flags.26?<a href='/constructor/true'>true</a> bot_attach_menu:flags.27?<a href='/constructor/true'>true</a> premium:flags.28?<a href='/constructor/true'>true</a> attach_menu_enabled:flags.29?<a href='/constructor/true'>true</a> flags2:<a href='/type/%23'>#</a> bot_can_edit:flags2.1?<a href='/constructor/true'>true</a> close_friend:flags2.2?<a href='/constructor/true'>true</a> stories_hidden:flags2.3?<a href='/constructor/true'>true</a> stories_unavailable:flags2.4?<a href='/constructor/true'>true</a> id:<a href='/type/long'>long</a> access_hash:flags.0?<a href='/type/long'>long</a> first_name:flags.1?<a href='/type/string'>string</a> last_name:flags.2?<a href='/type/string'>string</a> username:flags.3?<a href='/type/string'>string</a> phone:flags.4?<a href='/type/string'>string</a> photo:flags.5?<a href='/type/UserProfilePhoto'>UserProfilePhoto</a> status:flags.6?<a href='/type/UserStatus'>UserStatus</a> bot_info_version:flags.14?<a href='/type/int'>int</a> restriction_reason:flags.18?<a href='/type/Vector%20t'>Vector</a><<a href='/type/RestrictionReason'>RestrictionReason</a>> bot_inline_placeholder:flags.19?<a href='/type/string'>string</a> lang_code:flags.22?<a href='/type/string'>string</a> emoji_status:flags.30?<a href='/type/EmojiStatus'>EmojiStatus</a> usernames:flags2.0?<a href='/type/Vector%20t'>Vector</a><<a href='/type/Username'>Username</a>> stories_max_id:flags2.5?<a href='/type/int'>int</a> = <a href='/type/User'>User</a>;
|
||||
|
||||
|
@ -151,7 +172,7 @@ Note that if any of the conditions changes in the period between the call to <a
|
|||
|
||||
<a href='/method/stories.toggleAllStoriesHidden'>stories.toggleAllStoriesHidden</a>#7c2557c4 hidden:<a href='/type/Bool'>Bool</a> = <a href='/type/Bool'>Bool</a>;</code></pre>
|
||||
<p>Use <a href="/method/stories.toggleAllStoriesHidden">stories.togglePeerStoriesHidden</a> to hide the active stories of a user, preventing them from being displayed on the action bar on the homescreen.<br>
|
||||
When the stories of a user are marked as hidden, the <code>stories_hidden</code> flag is set on the related <a href="/constructor/user">user</a> constructor, and they should only be visible on the action bar when opening the <a href="/api/folders#peer-folders">archive folder</a>. </p>
|
||||
When the stories of a user are marked as hidden, the <code>stories_hidden</code> flag is set on the related <a href="/constructor/user">user</a> constructor, and they should only be visible on the action bar when opening the <a href="/api/folders#peer-folders">archive folder</a>, by setting the <code>hidden</code> flag when calling <a href="/method/stories.getAllStories">stories.getAllStories</a>, see <a href="#watching-stories">here</a> for more info. </p>
|
||||
<p>Note that the <a href="/api/folders#peer-folders">archive folder is the peer folder used for archived chats</a>: hidden stories are displayed there purely due to a UI implementation detail, not because they're actually added to the <a href="/api/folders#peer-folders">archive peer folder »</a> or the <a href="#pinnedarchived-stories">story archive »</a>, which are different things. </p>
|
||||
<h3><a class="anchor" href="#media-areas" id="media-areas" name="media-areas"><i class="anchor-icon"></i></a>Media areas</h3>
|
||||
<p>Schema:</p>
|
||||
|
@ -202,12 +223,15 @@ Note that this should be done transparently in a map UI, not in the usual inline
|
|||
|
||||
<a href='/constructor/mediaAreaSuggestedReaction'>mediaAreaSuggestedReaction</a>#14455871 flags:<a href='/type/%23'>#</a> dark:flags.0?<a href='/constructor/true'>true</a> flipped:flags.1?<a href='/constructor/true'>true</a> coordinates:<a href='/type/MediaAreaCoordinates'>MediaAreaCoordinates</a> reaction:<a href='/type/Reaction'>Reaction</a> = <a href='/type/MediaArea'>MediaArea</a>;
|
||||
|
||||
<a href='/constructor/updateSentStoryReaction'>updateSentStoryReaction</a>#7d627683 peer:<a href='/type/Peer'>Peer</a> story_id:<a href='/type/int'>int</a> reaction:<a href='/type/Reaction'>Reaction</a> = <a href='/type/Update'>Update</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
<a href='/method/stories.sendReaction'>stories.sendReaction</a>#7fd736b2 flags:<a href='/type/%23'>#</a> add_to_recent:flags.0?<a href='/constructor/true'>true</a> peer:<a href='/type/InputPeer'>InputPeer</a> story_id:<a href='/type/int'>int</a> reaction:<a href='/type/Reaction'>Reaction</a> = <a href='/type/Updates'>Updates</a>;</code></pre>
|
||||
<p>Story <a href="/api/reactions">reactions</a> are implemented using a simple in-UI button that allows the user to send any reaction using <a href="/method/stories.sendReaction">stories.sendReaction</a>. </p>
|
||||
<p>Sending this method will return an <a href="/constructor/updateSentStoryReaction">updateSentStoryReaction</a> update to all logged-in sessions. </p>
|
||||
<p>However, the poster of a story may also use <a href="/constructor/mediaAreaSuggestedReaction">mediaAreaSuggestedReaction</a> <a href="#media-areas">media areas »</a> to suggest some specific reactions as simple clickable buttons: they're rendered as a round comic-style thought bubble with its "tail" on the right, white background and the <a href="/api/reactions">reaction »</a> from the <code>reaction</code> field located in its center.<br>
|
||||
If the <code>dark</code> flag is set, the background should by black.<br>
|
||||
If the <code>dark</code> flag is set, the background should be black.<br>
|
||||
If the <code>flipped</code> flag is set, the "tail" should be located on the left.</p>
|
||||
<p>Clicking it should invoke <a href="/method/stories.sendReaction">stories.sendReaction</a> as usual.</p>
|
||||
<h3><a class="anchor" href="#stealth-mode" id="stealth-mode" name="stealth-mode"><i class="anchor-icon"></i></a>Stealth mode</h3>
|
||||
|
@ -228,49 +252,7 @@ If the <code>flipped</code> flag is set, the "tail" should be located on the lef
|
|||
<li><code>cooldown_until_date</code> - the date starting from which the user will be allowed to call <a href="/method/stories.activateStealthMode">stories.activateStealthMode</a> again; calling the method earlier will return a <code>FLOOD_WAIT_X</code> error as specified above.</li>
|
||||
</ul>
|
||||
<h3><a class="anchor" href="#channel-stories" id="channel-stories" name="channel-stories"><i class="anchor-icon"></i></a>Channel stories</h3>
|
||||
<p>Telegram users can grant their favorite channels the ability to post <a href="/api/stories">stories</a> by giving them boosts. <a href="/api/premium">Telegram Premium</a> now includes one boost that can be assigned to any channel.</p>
|
||||
<h4><a class="anchor" href="#boosts" id="boosts" name="boosts"><i class="anchor-icon"></i></a>Boosts</h4>
|
||||
<p>Channels level up as they gain more boosts – and for each level, they can post 1 additional story per day to their subscribers' story feeds. </p>
|
||||
<p>Schema:</p>
|
||||
<pre><code><a href='/constructor/stories.canApplyBoostOk'>stories.canApplyBoostOk</a>#c3173587 = <a href='/type/stories.CanApplyBoostResult'>stories.CanApplyBoostResult</a>;
|
||||
<a href='/constructor/stories.canApplyBoostReplace'>stories.canApplyBoostReplace</a>#712c4655 current_boost:<a href='/type/Peer'>Peer</a> chats:<a href='/type/Vector%20t'>Vector</a><<a href='/type/Chat'>Chat</a>> = <a href='/type/stories.CanApplyBoostResult'>stories.CanApplyBoostResult</a>;
|
||||
|
||||
<a href='/constructor/statsPercentValue'>statsPercentValue</a>#cbce2fe0 part:<a href='/type/double'>double</a> total:<a href='/type/double'>double</a> = <a href='/type/StatsPercentValue'>StatsPercentValue</a>;
|
||||
<a href='/constructor/stories.boostsStatus'>stories.boostsStatus</a>#66ea1fef flags:<a href='/type/%23'>#</a> my_boost:flags.2?<a href='/constructor/true'>true</a> level:<a href='/type/int'>int</a> current_level_boosts:<a href='/type/int'>int</a> boosts:<a href='/type/int'>int</a> next_level_boosts:flags.0?<a href='/type/int'>int</a> premium_audience:flags.1?<a href='/type/StatsPercentValue'>StatsPercentValue</a> = <a href='/type/stories.BoostsStatus'>stories.BoostsStatus</a>;
|
||||
|
||||
<a href='/constructor/booster'>booster</a>#e9e6380 user_id:<a href='/type/long'>long</a> expires:<a href='/type/int'>int</a> = <a href='/type/Booster'>Booster</a>;
|
||||
|
||||
<a href='/constructor/stories.boostersList'>stories.boostersList</a>#f3dd3d1d flags:<a href='/type/%23'>#</a> count:<a href='/type/int'>int</a> boosters:<a href='/type/Vector%20t'>Vector</a><<a href='/type/Booster'>Booster</a>> next_offset:flags.0?<a href='/type/string'>string</a> users:<a href='/type/Vector%20t'>Vector</a><<a href='/type/User'>User</a>> = <a href='/type/stories.BoostersList'>stories.BoostersList</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
<a href='/method/stories.canApplyBoost'>stories.canApplyBoost</a>#db05c1bd peer:<a href='/type/InputPeer'>InputPeer</a> = <a href='/type/stories.CanApplyBoostResult'>stories.CanApplyBoostResult</a>;
|
||||
<a href='/method/stories.applyBoost'>stories.applyBoost</a>#f29d7c2b peer:<a href='/type/InputPeer'>InputPeer</a> = <a href='/type/Bool'>Bool</a>;
|
||||
|
||||
<a href='/method/stories.getBoostsStatus'>stories.getBoostsStatus</a>#4c449472 peer:<a href='/type/InputPeer'>InputPeer</a> = <a href='/type/stories.BoostsStatus'>stories.BoostsStatus</a>;
|
||||
|
||||
<a href='/method/stories.getBoostersList'>stories.getBoostersList</a>#337ef980 peer:<a href='/type/InputPeer'>InputPeer</a> offset:<a href='/type/string'>string</a> limit:<a href='/type/int'>int</a> = <a href='/type/stories.BoostersList'>stories.BoostersList</a>;</code></pre>
|
||||
<p>Use <a href="/method/stories.applyBoost">stories.applyBoost</a> to boost a channel: before invoking this method, however, make sure to invoke <a href="/method/stories.canApplyBoost">stories.canApplyBoost</a> to check if a given channel can be boosted. </p>
|
||||
<p>A <code>PREMIUM_ACCOUNT_REQUIRED</code> error will be returned when calling any of the two methods if the current account does not have a <a href="/api/premium">Telegram Premium</a> subscription.<br>
|
||||
A <code>BOOST_NOT_MODIFIED</code> RPC error will be returned when calling any of the two methods if the user is already boosting the specified channel. </p>
|
||||
<p>Furthermore, the result of <a href="/method/stories.canApplyBoost">stories.canApplyBoost</a> can be:</p>
|
||||
<ul>
|
||||
<li><a href="/constructor/stories.canApplyBoostOk">stories.canApplyBoostOk</a> if the current user isn't boosting any channel, and can boost the specified channel. </li>
|
||||
<li><a href="/constructor/stories.canApplyBoostReplace">stories.canApplyBoostReplace</a> if the user is already boosting another channel, containing the channel that the user is currently boosting. </li>
|
||||
</ul>
|
||||
<p>After boosting a channel, the user may not change their boosted channel for a certain cooldown period: if the cooldown period isn't over yet, calls to any of the two methods will return a 420 <code>FLOOD_WAIT_X</code> error, indicating the number of seconds left before a different channel can be boosted. </p>
|
||||
<p>Users may also invoke <a href="/method/stories.getBoostsStatus">stories.getBoostsStatus</a>, to get the current boost status of a channel as a <a href="/constructor/stories.boostsStatus">stories.boostsStatus</a> constructor, check out the <a href="/constructor/stories.boostsStatus">constructor page</a> for more info.</p>
|
||||
<p>Channel administrators may invoke <a href="/method/stories.getBoostersList">stories.getBoostersList</a> to fetch the list of users currently boosting the channel.</p>
|
||||
<h4><a class="anchor" href="#posting-stories-as-a-channel" id="posting-stories-as-a-channel" name="posting-stories-as-a-channel"><i class="anchor-icon"></i></a>Posting stories as a channel</h4>
|
||||
<pre><code><a href='/constructor/inputPeerChannel'>inputPeerChannel</a>#27bcbbfc channel_id:<a href='/type/long'>long</a> access_hash:<a href='/type/long'>long</a> = <a href='/type/InputPeer'>InputPeer</a>;
|
||||
|
||||
<a href='/constructor/messages.chats'>messages.chats</a>#64ff9fd5 chats:<a href='/type/Vector%20t'>Vector</a><<a href='/type/Chat'>Chat</a>> = <a href='/type/messages.Chats'>messages.Chats</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
<a href='/method/stories.getChatsToSend'>stories.getChatsToSend</a>#a56a8b60 = <a href='/type/messages.Chats'>messages.Chats</a>;</code></pre>
|
||||
<p>Everything works exactly the same as when <a href="#posting-stories">posting stories as a user</a>, with the only difference that clients should pass the appropriate <a href="/constructor/inputPeerChannel">inputPeerChannel</a> instead of <a href="/constructor/inputPeerSelf">inputPeerSelf</a> to <a href="/method/stories.canSendStory">stories.canSendStory</a>, <a href="/method/stories.sendStory">stories.sendStory</a> and all the other story methods, see the <a href="#posting-stories">main documentation »</a> for more info. </p>
|
||||
<p>Use <a href="/method/stories.getChatsToSend">stories.getChatsToSend</a> to obtain a list of channels where the user can post stories; <a href="/method/stories.canSendStory">stories.canSendStory</a> must still be used before uploading a story to make sure no other limit was reached, as described in the <a href="#posting-stories">main documentation »</a>.</p></div>
|
||||
<p>In order to obtain permission to post stories, channels must be boosted, see <a href="/api/boost">here »</a> for more info.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -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/booster" >booster</a></li></ul></div>
|
||||
<h1 id="dev_page_title">booster</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Info about a <a href="/api/stories#boosts">boost</a> made by a specific user.</p>
|
||||
<div id="dev_page_content"><p>Info about a <a href="/api/boost">boost</a> made by a specific user.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -81,8 +81,8 @@
|
|||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/Booster">Booster</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="#stories" id="stories" name="stories"><i class="anchor-icon"></i></a><a href="/api/stories">Stories</a></h4>
|
||||
<p>Telegram users and channels can easily post and view stories through the API.</p></div>
|
||||
<h4><a class="anchor" href="#channel-boosts" id="channel-boosts" name="channel-boosts"><i class="anchor-icon"></i></a><a href="/api/boost">Channel boosts</a></h4>
|
||||
<p><a href="/api/premium">Telegram Premium</a> users can grant their favorite channels additional features like the ability to post <a href="/api/stories">stories</a> by giving them <strong>boosts</strong>.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -142,6 +142,11 @@
|
|||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>view_forum_as_messages</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags2</a>.6?<a href="/constructor/true">true</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/long">long</a></td>
|
||||
<td>ID of the channel</td>
|
||||
|
|
|
@ -82,6 +82,11 @@
|
|||
<td>Whether the chat was manually marked as unread</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>view_forum_as_messages</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.6?<a href="/constructor/true">true</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>peer</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/Peer">Peer</a></td>
|
||||
<td>The chat</td>
|
||||
|
|
|
@ -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/stories.boostersList" >stories.boostersList</a></li></ul></div>
|
||||
<h1 id="dev_page_title">stories.boostersList</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Info about the users currently <a href="/api/stories#boosts">boosting</a> the channel.</p>
|
||||
<div id="dev_page_content"><p>Info about the users currently <a href="/api/boost">boosting</a> the channel.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -98,8 +98,8 @@
|
|||
<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="#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="#stories" id="stories" name="stories"><i class="anchor-icon"></i></a><a href="/api/stories">Stories</a></h4>
|
||||
<p>Telegram users and channels can easily post and view stories through the API.</p></div>
|
||||
<h4><a class="anchor" href="#channel-boosts" id="channel-boosts" name="channel-boosts"><i class="anchor-icon"></i></a><a href="/api/boost">Channel boosts</a></h4>
|
||||
<p><a href="/api/premium">Telegram Premium</a> users can grant their favorite channels additional features like the ability to post <a href="/api/stories">stories</a> by giving them <strong>boosts</strong>.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -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/stories.boostsStatus" >stories.boostsStatus</a></li></ul></div>
|
||||
<h1 id="dev_page_title">stories.boostsStatus</h1>
|
||||
|
||||
<div id="dev_page_content"><p>The current <a href="/api/stories#boosts">boost status »</a> of a channel.</p>
|
||||
<div id="dev_page_content"><p>The current <a href="/api/boost">boost status »</a> of a channel.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -106,8 +106,8 @@
|
|||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/stories.BoostsStatus">stories.BoostsStatus</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="#stories" id="stories" name="stories"><i class="anchor-icon"></i></a><a href="/api/stories">Stories</a></h4>
|
||||
<p>Telegram users and channels can easily post and view stories through the API.</p></div>
|
||||
<h4><a class="anchor" href="#channel-boosts" id="channel-boosts" name="channel-boosts"><i class="anchor-icon"></i></a><a href="/api/boost">Channel boosts</a></h4>
|
||||
<p><a href="/api/premium">Telegram Premium</a> users can grant their favorite channels additional features like the ability to post <a href="/api/stories">stories</a> by giving them <strong>boosts</strong>.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -0,0 +1,118 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Page not found</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="">
|
||||
<meta property="og:title" content="Page not found">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="">
|
||||
<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">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png">
|
||||
<link rel="alternate icon" href="/img/favicon.ico" type="image/x-icon" />
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?236" rel="stylesheet" media="screen">
|
||||
<style>
|
||||
</style>
|
||||
</head>
|
||||
<body class="preload">
|
||||
<div class="dev_page_wrap">
|
||||
<div class="dev_page_head navbar navbar-static-top navbar-tg">
|
||||
<div class="navbar-inner">
|
||||
<div class="container clearfix">
|
||||
<ul class="nav navbar-nav navbar-right hidden-xs"><li class="navbar-twitter"><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)"><i class="icon icon-twitter"></i><span> Twitter</span></a></li></ul>
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a href="//telegram.org/">Home</a></li>
|
||||
<li class="hidden-xs"><a href="//telegram.org/faq">FAQ</a></li>
|
||||
<li class="hidden-xs"><a href="//telegram.org/apps">Apps</a></li>
|
||||
<li class=""><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class="active"><a href="/schema">Schema</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container clearfix">
|
||||
<div class="dev_page">
|
||||
<div id="dev_page_content_wrap" class=" ">
|
||||
<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></li></ul></div>
|
||||
<h1 id="dev_page_title">Page not found</h1>
|
||||
|
||||
<div id="dev_page_content">The page has not been saved</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer_wrap">
|
||||
<div class="footer_columns_wrap footer_desktop">
|
||||
<div class="footer_column footer_column_telegram">
|
||||
<h5>Telegram</h5>
|
||||
<div class="footer_telegram_description"></div>
|
||||
Telegram is a cloud-based mobile and desktop messaging app with a focus on security and speed.
|
||||
</div>
|
||||
|
||||
<div class="footer_column">
|
||||
<h5><a href="//telegram.org/faq">About</a></h5>
|
||||
<ul>
|
||||
<li><a href="//telegram.org/faq">FAQ</a></li>
|
||||
<li><a href="//telegram.org/privacy">Privacy</a></li>
|
||||
<li><a href="//telegram.org/press">Press</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//telegram.org/apps#mobile-apps">Mobile Apps</a></h5>
|
||||
<ul>
|
||||
<li><a href="//telegram.org/dl/ios">iPhone/iPad</a></li>
|
||||
<li><a href="//telegram.org/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/web">Mobile Web</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//telegram.org/apps#desktop-apps">Desktop Apps</a></h5>
|
||||
<ul>
|
||||
<li><a href="//desktop.telegram.org/">PC/Mac/Linux</a></li>
|
||||
<li><a href="//macos.telegram.org/">macOS</a></li>
|
||||
<li><a href="//telegram.org/dl/web">Web-browser</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column footer_column_platform">
|
||||
<h5><a href="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/api">API</a></li>
|
||||
<li><a href="//translations.telegram.org/">Translations</a></li>
|
||||
<li><a href="//instantview.telegram.org/">Instant View</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer_columns_wrap footer_mobile">
|
||||
<div class="footer_column">
|
||||
<h5><a href="//telegram.org/faq">About</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//telegram.org/blog">Blog</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//telegram.org/apps">Apps</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//telegram.org/press">Press</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?47"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -4,38 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>updateSentStoryReaction</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
peer
|
||||
Peer
|
||||
|
||||
story_id
|
||||
int
|
||||
|
||||
reaction
|
||||
Reaction
|
||||
|
||||
Type
|
||||
Update">
|
||||
<meta property="description" content="Indicates we reacted to a story ».">
|
||||
<meta property="og:title" content="updateSentStoryReaction">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
peer
|
||||
Peer
|
||||
|
||||
story_id
|
||||
int
|
||||
|
||||
reaction
|
||||
Reaction
|
||||
|
||||
Type
|
||||
Update">
|
||||
<meta property="og:description" content="Indicates we reacted to a story ».">
|
||||
<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 @@ Update">
|
|||
<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/updateSentStoryReaction" >updateSentStoryReaction</a></li></ul></div>
|
||||
<h1 id="dev_page_title">updateSentStoryReaction</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Indicates we <a href="/api/stories#reactions">reacted to a story »</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 164 <b class="caret"></b></a>
|
||||
|
@ -96,22 +69,25 @@ Update">
|
|||
<tr>
|
||||
<td><strong>peer</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/Peer">Peer</a></td>
|
||||
<td> </td>
|
||||
<td>The peer that sent the story</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>story_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td> </td>
|
||||
<td>ID of the story we reacted to</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>reaction</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/Reaction">Reaction</a></td>
|
||||
<td> </td>
|
||||
<td>The reaction that was sent</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/Update">Update</a></p></div>
|
||||
<p><a href="/type/Update">Update</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="#stories" id="stories" name="stories"><i class="anchor-icon"></i></a><a href="/api/stories">Stories</a></h4>
|
||||
<p>Telegram users and channels can easily post and view stories through the API.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -4,32 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>updateStory</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
peer
|
||||
Peer
|
||||
|
||||
story
|
||||
StoryItem
|
||||
|
||||
Type
|
||||
Update">
|
||||
<meta property="description" content="A new story was posted.">
|
||||
<meta property="og:title" content="updateStory">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
peer
|
||||
Peer
|
||||
|
||||
story
|
||||
StoryItem
|
||||
|
||||
Type
|
||||
Update">
|
||||
<meta property="og:description" content="A new story was posted.">
|
||||
<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">
|
||||
|
@ -64,7 +42,8 @@ Update">
|
|||
<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/updateStory" >updateStory</a></li></ul></div>
|
||||
<h1 id="dev_page_title">updateStory</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>A new story was posted.</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 164 <b class="caret"></b></a>
|
||||
|
@ -90,12 +69,12 @@ Update">
|
|||
<tr>
|
||||
<td><strong>peer</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/Peer">Peer</a></td>
|
||||
<td> </td>
|
||||
<td>ID of the poster.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>story</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/StoryItem">StoryItem</a></td>
|
||||
<td> </td>
|
||||
<td>The story that was posted.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -270,6 +270,8 @@
|
|||
<p>In some situations user and channel constructors have reduced set of fields present (although id is always there) and min flag set.</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>
|
||||
<h4><a class="anchor" href="#stories" id="stories" name="stories"><i class="anchor-icon"></i></a><a href="/api/stories">Stories</a></h4>
|
||||
<p>Telegram users and channels can easily post and view stories through the API.</p>
|
||||
<h4><a class="anchor" href="#userfull" id="userfull" name="userfull"><i class="anchor-icon"></i></a><a href="/constructor/userFull">userFull</a></h4>
|
||||
<p>Extended user info</p>
|
||||
<h4><a class="anchor" href="#emoji-status" id="emoji-status" name="emoji-status"><i class="anchor-icon"></i></a><a href="/api/emoji-status">Emoji status</a></h4>
|
||||
|
|
|
@ -0,0 +1,118 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Page not found</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="">
|
||||
<meta property="og:title" content="Page not found">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="">
|
||||
<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">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png">
|
||||
<link rel="alternate icon" href="/img/favicon.ico" type="image/x-icon" />
|
||||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||||
|
||||
<link href="/css/telegram.css?236" rel="stylesheet" media="screen">
|
||||
<style>
|
||||
</style>
|
||||
</head>
|
||||
<body class="preload">
|
||||
<div class="dev_page_wrap">
|
||||
<div class="dev_page_head navbar navbar-static-top navbar-tg">
|
||||
<div class="navbar-inner">
|
||||
<div class="container clearfix">
|
||||
<ul class="nav navbar-nav navbar-right hidden-xs"><li class="navbar-twitter"><a href="https://twitter.com/telegram" target="_blank" data-track="Follow/Twitter" onclick="trackDlClick(this, event)"><i class="icon icon-twitter"></i><span> Twitter</span></a></li></ul>
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a href="//telegram.org/">Home</a></li>
|
||||
<li class="hidden-xs"><a href="//telegram.org/faq">FAQ</a></li>
|
||||
<li class="hidden-xs"><a href="//telegram.org/apps">Apps</a></li>
|
||||
<li class="active"><a href="/api">API</a></li>
|
||||
<li class=""><a href="/mtproto">Protocol</a></li>
|
||||
<li class=""><a href="/schema">Schema</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container clearfix">
|
||||
<div class="dev_page">
|
||||
<div id="dev_page_content_wrap" class=" ">
|
||||
<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></li></ul></div>
|
||||
<h1 id="dev_page_title">Page not found</h1>
|
||||
|
||||
<div id="dev_page_content">The page has not been saved</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer_wrap">
|
||||
<div class="footer_columns_wrap footer_desktop">
|
||||
<div class="footer_column footer_column_telegram">
|
||||
<h5>Telegram</h5>
|
||||
<div class="footer_telegram_description"></div>
|
||||
Telegram is a cloud-based mobile and desktop messaging app with a focus on security and speed.
|
||||
</div>
|
||||
|
||||
<div class="footer_column">
|
||||
<h5><a href="//telegram.org/faq">About</a></h5>
|
||||
<ul>
|
||||
<li><a href="//telegram.org/faq">FAQ</a></li>
|
||||
<li><a href="//telegram.org/privacy">Privacy</a></li>
|
||||
<li><a href="//telegram.org/press">Press</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//telegram.org/apps#mobile-apps">Mobile Apps</a></h5>
|
||||
<ul>
|
||||
<li><a href="//telegram.org/dl/ios">iPhone/iPad</a></li>
|
||||
<li><a href="//telegram.org/android">Android</a></li>
|
||||
<li><a href="//telegram.org/dl/web">Mobile Web</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//telegram.org/apps#desktop-apps">Desktop Apps</a></h5>
|
||||
<ul>
|
||||
<li><a href="//desktop.telegram.org/">PC/Mac/Linux</a></li>
|
||||
<li><a href="//macos.telegram.org/">macOS</a></li>
|
||||
<li><a href="//telegram.org/dl/web">Web-browser</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_column footer_column_platform">
|
||||
<h5><a href="//core.telegram.org/">Platform</a></h5>
|
||||
<ul>
|
||||
<li><a href="//core.telegram.org/api">API</a></li>
|
||||
<li><a href="//translations.telegram.org/">Translations</a></li>
|
||||
<li><a href="//instantview.telegram.org/">Instant View</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer_columns_wrap footer_mobile">
|
||||
<div class="footer_column">
|
||||
<h5><a href="//telegram.org/faq">About</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//telegram.org/blog">Blog</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//telegram.org/apps">Apps</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//core.telegram.org/">Platform</a></h5>
|
||||
</div>
|
||||
<div class="footer_column">
|
||||
<h5><a href="//telegram.org/press">Press</a></h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/main.js?47"></script>
|
||||
|
||||
<script>backToTopInit("Go up");
|
||||
removePreloadInit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -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/stories.applyBoost" >stories.applyBoost</a></li></ul></div>
|
||||
<h1 id="dev_page_title">stories.applyBoost</h1>
|
||||
|
||||
<div id="dev_page_content"><p><a href="/api/stories#boosts">Boost »</a> a <a href="/api/channel">channel</a>, leveling it up and granting it permission to post <a href="/api/stories">stories »</a>.</p>
|
||||
<div id="dev_page_content"><p><a href="/api/boost">Boost »</a> a <a href="/api/channel">channel</a>, leveling it up and granting it permission to post <a href="/api/stories">stories »</a>.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -106,10 +106,12 @@
|
|||
</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="#stories" id="stories" name="stories"><i class="anchor-icon"></i></a><a href="/api/stories">Stories</a></h4>
|
||||
<p>Telegram users and channels can easily post and view stories through the API.</p>
|
||||
<h4><a class="anchor" href="#channel-boosts" id="channel-boosts" name="channel-boosts"><i class="anchor-icon"></i></a><a href="/api/boost">Channel boosts</a></h4>
|
||||
<p>Telegram Premium users can grant their favorite channels additional features like the ability to post stories by giving them boosts.</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>
|
||||
<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="#stories" id="stories" name="stories"><i class="anchor-icon"></i></a><a href="/api/stories">Stories</a></h4>
|
||||
<p>Telegram users and channels can easily post and view stories through the API.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -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/stories.canApplyBoost" >stories.canApplyBoost</a></li></ul></div>
|
||||
<h1 id="dev_page_title">stories.canApplyBoost</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Check whether a channel can be <a href="/api/stories#boosts">boosted, see here for more info »</a>.</p>
|
||||
<div id="dev_page_content"><p>Check whether a channel can be <a href="/api/boost">boosted, see here for more info »</a>.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -106,6 +106,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="#channel-boosts" id="channel-boosts" name="channel-boosts"><i class="anchor-icon"></i></a><a href="/api/boost">Channel boosts</a></h4>
|
||||
<p><a href="/api/premium">Telegram Premium</a> users can grant their favorite channels additional features like the ability to post <a href="/api/stories">stories</a> by giving them <strong>boosts</strong>.</p>
|
||||
<h4><a class="anchor" href="#stories" id="stories" name="stories"><i class="anchor-icon"></i></a><a href="/api/stories">Stories</a></h4>
|
||||
<p>Telegram users and channels can easily post and view stories through the API.</p></div>
|
||||
|
||||
|
|
|
@ -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/stories.getBoostersList" >stories.getBoostersList</a></li></ul></div>
|
||||
<h1 id="dev_page_title">stories.getBoostersList</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Obtain info about the users currently <a href="/api/stories#boosts">boosting</a> a channel, see <a href="/api/stories#boosts">here »</a> for more info about boosts.</p>
|
||||
<div id="dev_page_content"><p>Obtain info about the users currently <a href="/api/boost">boosting</a> a channel, see <a href="/api/boost">here »</a> for more info about boosts.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -118,9 +118,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>
|
||||
<p>How to fetch results from large lists of objects.</p>
|
||||
<h4><a class="anchor" href="#storiesboosterslist" id="storiesboosterslist" name="storiesboosterslist"><i class="anchor-icon"></i></a><a href="/constructor/stories.boostersList">stories.boostersList</a></h4>
|
||||
<p>Info about the users currently <a href="/api/stories#boosts">boosting</a> the channel.</p>
|
||||
<h4><a class="anchor" href="#stories" id="stories" name="stories"><i class="anchor-icon"></i></a><a href="/api/stories">Stories</a></h4>
|
||||
<p>Telegram users and channels can easily post and view stories through the API.</p></div>
|
||||
<p>Info about the users currently <a href="/api/boost">boosting</a> the channel.</p>
|
||||
<h4><a class="anchor" href="#channel-boosts" id="channel-boosts" name="channel-boosts"><i class="anchor-icon"></i></a><a href="/api/boost">Channel boosts</a></h4>
|
||||
<p><a href="/api/premium">Telegram Premium</a> users can grant their favorite channels additional features like the ability to post <a href="/api/stories">stories</a> by giving them <strong>boosts</strong>.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -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/stories.getBoostsStatus" >stories.getBoostsStatus</a></li></ul></div>
|
||||
<h1 id="dev_page_title">stories.getBoostsStatus</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Get the current <a href="/api/stories#boosts">boost status</a> of a channel, see <a href="/api/stories#boosts">here »</a> for more info on boosts.</p>
|
||||
<div id="dev_page_content"><p>Get the current <a href="/api/boost">boost status</a> of a channel, see <a href="/api/boost">here »</a> for more info on boosts.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -95,8 +95,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="#stories" id="stories" name="stories"><i class="anchor-icon"></i></a><a href="/api/stories">Stories</a></h4>
|
||||
<p>Telegram users and channels can easily post and view stories through the API.</p></div>
|
||||
<h4><a class="anchor" href="#channel-boosts" id="channel-boosts" name="channel-boosts"><i class="anchor-icon"></i></a><a href="/api/boost">Channel boosts</a></h4>
|
||||
<p>Telegram Premium users can grant their favorite channels additional features like the ability to post stories by giving them boosts.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>stories.togglePeerStoriesHidden</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Hide the active stories of a user, preventing them from being displayed on the action bar on the homescreen, see here »…">
|
||||
<meta property="description" content="Hide the active stories of a user, preventing them from being displayed on the action bar on the homescreen, see here » for more info.">
|
||||
<meta property="og:title" content="stories.togglePeerStoriesHidden">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Hide the active stories of a user, preventing them from being displayed on the action bar on the homescreen, see here »…">
|
||||
<meta property="og:description" content="Hide the active stories of a user, preventing them from being displayed on the action bar on the homescreen, see here » for more info.">
|
||||
<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">
|
||||
|
@ -99,7 +99,10 @@
|
|||
<td>The provided peer id is invalid.</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="#stories" id="stories" name="stories"><i class="anchor-icon"></i></a><a href="/api/stories">Stories</a></h4>
|
||||
<p>Telegram users and channels can easily post and view stories through the API.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -53,9 +53,9 @@
|
|||
<h5><a class="anchor" href="#1-client-sends-query-to-server" id="1-client-sends-query-to-server" name="1-client-sends-query-to-server"><i class="anchor-icon"></i></a>1) Client sends query to server</h5>
|
||||
<!-- start req_pq_multi -->
|
||||
<p>Sent payload (excluding transport headers/trailers):</p>
|
||||
<pre><code>0000 | 00 00 00 00 00 00 00 00 7C 46 04 00 01 BB 3A 65
|
||||
0010 | 14 00 00 00 F1 8E 7E BE 43 FE 8B 3B A6 4A AA 94
|
||||
0020 | F0 20 39 D5 5E 62 38 8C</code></pre>
|
||||
<pre><code>0000 | 00 00 00 00 00 00 00 00 64 5C 0C 00 63 90 4F 65
|
||||
0010 | 14 00 00 00 F1 8E 7E BE C3 7C 0E 95 D8 4F 2E FE
|
||||
0020 | D7 E8 CE 09 04 AB CD D8</code></pre>
|
||||
<p>Payload (de)serialization:</p>
|
||||
<pre><code>req_pq_multi#be7e8ef1 nonce:int128 = ResPQ;</code></pre>
|
||||
<table class="table">
|
||||
|
@ -77,7 +77,7 @@
|
|||
<tr>
|
||||
<td>message_id</td>
|
||||
<td>8, 8</td>
|
||||
<td><code>7C46040001BB3A65</code></td>
|
||||
<td><code>645C0C0063904F65</code></td>
|
||||
<td>Message ID generated as specified <a href="/mtproto/description#message-identifier-msg-id">here »</a> (unixtime() << 32) + (N*4)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -95,7 +95,7 @@
|
|||
<tr>
|
||||
<td>nonce</td>
|
||||
<td>24, 16</td>
|
||||
<td><code>43FE8B3BA64AAA94F02039D55E62388C</code></td>
|
||||
<td><code>C37C0E95D84F2EFED7E8CE0904ABCDD8</code></td>
|
||||
<td>Random number</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -104,11 +104,11 @@
|
|||
<h5><a class="anchor" href="#2-server-sends-response-of-the-form" id="2-server-sends-response-of-the-form" name="2-server-sends-response-of-the-form"><i class="anchor-icon"></i></a>2) Server sends response of the form</h5>
|
||||
<!-- start resPQ -->
|
||||
<p>Received payload (excluding transport headers/trailers):</p>
|
||||
<pre><code>0000 | 00 00 00 00 00 00 00 00 01 D8 6F 4A FD BA 3A 65
|
||||
0010 | A8 00 00 00 63 24 16 05 43 FE 8B 3B A6 4A AA 94
|
||||
0020 | F0 20 39 D5 5E 62 38 8C AA 91 9A 98 37 CA 9A 0B
|
||||
0030 | 67 B5 1B BA C6 7D FE 85 08 11 DC E4 D6 EE 81 AE
|
||||
0040 | 6B 00 00 00 15 C4 B5 1C 03 00 00 00 A5 B7 F7 09
|
||||
<pre><code>0000 | 00 00 00 00 00 00 00 00 01 90 AA CD 63 90 4F 65
|
||||
0010 | 5C 00 00 00 63 24 16 05 C3 7C 0E 95 D8 4F 2E FE
|
||||
0020 | D7 E8 CE 09 04 AB CD D8 97 B8 B7 61 52 BA 6B 70
|
||||
0030 | A6 29 34 9B 02 22 2F A1 08 1F B5 A8 35 27 BE 11
|
||||
0040 | 31 00 00 00 15 C4 B5 1C 03 00 00 00 A5 B7 F7 09
|
||||
0050 | 35 5F C3 0B 21 6B E8 6C 02 2B B4 C3 85 FD 64 DE
|
||||
0060 | 85 1D 9D D0</code></pre>
|
||||
<p>Payload (de)serialization:</p>
|
||||
|
@ -132,13 +132,13 @@
|
|||
<tr>
|
||||
<td>message_id</td>
|
||||
<td>8, 8</td>
|
||||
<td><code>01D86F4AFDBA3A65</code></td>
|
||||
<td><code>0190AACD63904F65</code></td>
|
||||
<td>Message ID generated as specified <a href="/mtproto/description#message-identifier-msg-id">here »</a> (unixtime() << 32) + (N*4)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>message_length</td>
|
||||
<td>16, 4</td>
|
||||
<td><code>A8000000</code> (168 in decimal)</td>
|
||||
<td><code>5C000000</code> (92 in decimal)</td>
|
||||
<td>Message body length</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -150,19 +150,19 @@
|
|||
<tr>
|
||||
<td>nonce</td>
|
||||
<td>24, 16</td>
|
||||
<td><code>43FE8B3BA64AAA94F02039D55E62388C</code></td>
|
||||
<td><code>C37C0E95D84F2EFED7E8CE0904ABCDD8</code></td>
|
||||
<td>Value generated by client in Step 1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>server_nonce</td>
|
||||
<td>40, 16</td>
|
||||
<td><code>AA919A9837CA9A0B67B51BBAC67DFE85</code></td>
|
||||
<td><code>97B8B76152BA6B70A629349B02222FA1</code></td>
|
||||
<td>Server-generated random number</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>pq</td>
|
||||
<td>56, 12</td>
|
||||
<td><code>0811DCE4D6EE81AE6B000000</code><br>TL byte deserialization <br>=> bigendian conversion to decimal<br>=> 1287155205296729707</td>
|
||||
<td><code>081FB5A83527BE1131000000</code><br>TL byte deserialization <br>=> bigendian conversion to decimal<br>=> 2284917332213895473</td>
|
||||
<td>Single-byte prefix denoting length, an 8-byte string, and three bytes of padding</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -208,22 +208,22 @@
|
|||
<h4><a class="anchor" href="#proof-of-work" id="proof-of-work" name="proof-of-work"><i class="anchor-icon"></i></a>Proof of work</h4>
|
||||
<h5><a class="anchor" href="#3-client-decomposes-pq-into-prime-factors-such-that-p--q" id="3-client-decomposes-pq-into-prime-factors-such-that-p--q" name="3-client-decomposes-pq-into-prime-factors-such-that-p--q"><i class="anchor-icon"></i></a>3) Client decomposes pq into prime factors such that p < q.</h5>
|
||||
<!-- start pq -->
|
||||
<pre><code>pq = 1287155205296729707</code></pre>
|
||||
<p>Decompose into 2 prime cofactors <code>p < q</code>: <code>1287155205296729707 = 1049313127 * 1226664541</code></p>
|
||||
<pre><code>p = 1049313127
|
||||
q = 1226664541</code></pre>
|
||||
<pre><code>pq = 2284917332213895473</code></pre>
|
||||
<p>Decompose into 2 prime cofactors <code>p < q</code>: <code>2284917332213895473 = 1171643201 * 1950181873</code></p>
|
||||
<pre><code>p = 1171643201
|
||||
q = 1950181873</code></pre>
|
||||
<!-- end pq -->
|
||||
<h4><a class="anchor" href="#presenting-proof-of-work-server-authentication" id="presenting-proof-of-work-server-authentication" name="presenting-proof-of-work-server-authentication"><i class="anchor-icon"></i></a>Presenting proof of work; Server authentication</h4>
|
||||
<h5><a class="anchor" href="#4-encrypted-data-payload-generation" id="4-encrypted-data-payload-generation" name="4-encrypted-data-payload-generation"><i class="anchor-icon"></i></a>4) <code>encrypted_data</code> payload generation</h5>
|
||||
<p>First of all, generate an <code>encrypted_data</code> payload as follows:</p>
|
||||
<!-- start p_q_inner_data_dc -->
|
||||
<p>Generated payload (excluding transport headers/trailers):</p>
|
||||
<pre><code>0000 | 95 5F F5 A9 08 11 DC E4 D6 EE 81 AE 6B 00 00 00
|
||||
0010 | 04 3E 8B 3F 67 00 00 00 04 49 1D 6A 5D 00 00 00
|
||||
0020 | 43 FE 8B 3B A6 4A AA 94 F0 20 39 D5 5E 62 38 8C
|
||||
0030 | AA 91 9A 98 37 CA 9A 0B 67 B5 1B BA C6 7D FE 85
|
||||
0040 | 9A D1 C2 F1 29 A2 EE 2B B3 54 7C 10 FB 86 64 7A
|
||||
0050 | C0 29 26 95 C7 9C 8D 10 92 81 27 8E E8 C0 D9 F9
|
||||
<pre><code>0000 | 95 5F F5 A9 08 1F B5 A8 35 27 BE 11 31 00 00 00
|
||||
0010 | 04 45 D5 DB 41 00 00 00 04 74 3D 69 F1 00 00 00
|
||||
0020 | C3 7C 0E 95 D8 4F 2E FE D7 E8 CE 09 04 AB CD D8
|
||||
0030 | 97 B8 B7 61 52 BA 6B 70 A6 29 34 9B 02 22 2F A1
|
||||
0040 | 6A 99 67 0D 29 C2 06 A8 86 50 45 FC 49 B0 4F AA
|
||||
0050 | 30 3D C4 10 B0 24 9E 40 75 D2 15 B7 2F FE EF 88
|
||||
0060 | 02 00 00 00</code></pre>
|
||||
<p>Payload (de)serialization:</p>
|
||||
<pre><code>p_q_inner_data_dc#a9f55f95 pq:string p:string q:string nonce:int128 server_nonce:int128 new_nonce:int256 dc:int = P_Q_inner_data;</code></pre>
|
||||
|
@ -246,37 +246,37 @@ q = 1226664541</code></pre>
|
|||
<tr>
|
||||
<td>pq</td>
|
||||
<td>4, 12</td>
|
||||
<td><code>0811DCE4D6EE81AE6B000000</code><br>TL byte deserialization <br>=> bigendian conversion to decimal<br>=> 1287155205296729707</td>
|
||||
<td><code>081FB5A83527BE1131000000</code><br>TL byte deserialization <br>=> bigendian conversion to decimal<br>=> 2284917332213895473</td>
|
||||
<td>Single-byte prefix denoting length, 8-byte string, and three bytes of padding</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>p</td>
|
||||
<td>16, 8</td>
|
||||
<td><code>043E8B3F67000000</code><br>TL byte deserialization <br>=> bigendian conversion to decimal<br>=> 1049313127</td>
|
||||
<td><code>0445D5DB41000000</code><br>TL byte deserialization <br>=> bigendian conversion to decimal<br>=> 1171643201</td>
|
||||
<td>First prime cofactor: single-byte prefix denoting length, 4-byte string, and three bytes of padding</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>q</td>
|
||||
<td>24, 8</td>
|
||||
<td><code>04491D6A5D000000</code><br>TL byte deserialization <br>=> bigendian conversion to decimal<br>=> 1226664541</td>
|
||||
<td><code>04743D69F1000000</code><br>TL byte deserialization <br>=> bigendian conversion to decimal<br>=> 1950181873</td>
|
||||
<td>Second prime cofactor: single-byte prefix denoting length, 4-byte string, and three bytes of padding</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>nonce</td>
|
||||
<td>32, 16</td>
|
||||
<td><code>43FE8B3BA64AAA94F02039D55E62388C</code></td>
|
||||
<td><code>C37C0E95D84F2EFED7E8CE0904ABCDD8</code></td>
|
||||
<td>Value generated by client in Step 1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>server_nonce</td>
|
||||
<td>48, 16</td>
|
||||
<td><code>AA919A9837CA9A0B67B51BBAC67DFE85</code></td>
|
||||
<td><code>97B8B76152BA6B70A629349B02222FA1</code></td>
|
||||
<td>Value received from server in Step 2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>new_nonce</td>
|
||||
<td>64, 32</td>
|
||||
<td><code>9AD1C2F129A2EE2BB3547C10FB86647A</code> <code>C0292695C79C8D109281278EE8C0D9F9</code></td>
|
||||
<td><code>6A99670D29C206A8865045FC49B04FAA</code> <code>303DC410B0249E4075D215B72FFEEF88</code></td>
|
||||
<td>Client-generated random number</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -291,39 +291,39 @@ q = 1226664541</code></pre>
|
|||
<p>The serialization of <em>P_Q_inner_data</em> produces <strong>data</strong>, which is used to generate <strong>encrypted_data</strong> as specified in <a href="/mtproto/auth_key">step 4.1</a>.<br>
|
||||
These are the inputs to the algorithm specified in <a href="/mtproto/auth_key">step 4.1</a>:</p>
|
||||
<!-- start p_q_inner_data_input -->
|
||||
<pre><code>data = 955FF5A90811DCE4D6EE81AE6B000000043E8B3F6700000004491D6A5D00000043FE8B3BA64AAA94F02039D55E62388CAA919A9837CA9A0B67B51BBAC67DFE859AD1C2F129A2EE2BB3547C10FB86647AC0292695C79C8D109281278EE8C0D9F902000000
|
||||
random_padding_bytes = 3E4818740CBFDBCD9B7598BA1E81B1906EA0BF17B3A0C9FDAC7702439992121F708E684303ABF945BDD9F09D6498336233ADBD5E34E39DFF3E99C4760C43842B4AE628B719C2945E52E235C79AB24164FE7DEC78056FCB932B6A1019</code></pre>
|
||||
<pre><code>data = 955FF5A9081FB5A83527BE11310000000445D5DB4100000004743D69F1000000C37C0E95D84F2EFED7E8CE0904ABCDD897B8B76152BA6B70A629349B02222FA16A99670D29C206A8865045FC49B04FAA303DC410B0249E4075D215B72FFEEF8802000000
|
||||
random_padding_bytes = B2F22804A469CF39B87960C7727CCB02E1F949E03F078A6C845EAA1CFB3D7987BF3423602772AEA1538810D190EF87D7AFE7F2183046CE7E0165D2B931E70ECCE97B8320FFD5A333AA2C71C0B41060387F4582F601EC9E22C17AD7BD</code></pre>
|
||||
<!-- end p_q_inner_data_input -->
|
||||
<p>And this is the output:</p>
|
||||
<!-- start p_q_inner_data_output -->
|
||||
<pre><code>encrypted_data = DF2EDED6F60F78A5DE43D246475387E9C6BF476D11D786DC8FD2D1816B646EF896B80B18C0FBADF4822EDDA30378EA8611D216E9A82EF862A3E8CA746281065CDE8775A515FF9AB8C3473BFED8993DA00E59A47FECBFB3AAAFE5ED4FBAAB1E6FBC7C1596B7CA2097061D9CE536F5C48BBBC7917D6E0DC3AE91D3A18A9F33A395D8D952308B5CEC1FB01A85539FB3A73DE21234CE05A7BD49DAC9B65DBF0FD1B10979469ECF1374D4DB2034F71D9C907086A1100FBDF1274A524584FDF7A895920FA6425C9CC2ABDC471A1C28D8A0098306879FA4E7AE6FA197541B6AE70BF1641A2EC9A76F835565F3F2C498824024696E6E41B728D9804127F34EFC2F0E757E</code></pre>
|
||||
<pre><code>encrypted_data = BABDBB0CAFC87EB742A9B0E88E342A0D46E824752F8C30030A4F215C283B69DC4A719186EE31FE820570B75FDAC1776777EAAB363098E3E8606E282DAFEF2EEE8E5C451A59419C480CCB31390C606ACF8C24666B55A8A18953C1FF8ED03F03BD3828774478A6E7ECA8E932C0B9E8DA7B44E8E41FFECD026351DB3A49380C3A832534198DE8F94E7CF0B4808AF104E77550C73E4794592A9C80D2318FB4D4BBB8FEA4E763EA19E3A4D85219A7F2BB96E75B883B4DFAEBCD60071F6B860A7FC8645F4D31E326C489EA536826BBF5472589F3274494C74129CB644F54C18E4AC0151BAFFAE8A9696A1D604F39FCE23660CA7867B3FC1FCE6C771115A47072E7C490</code></pre>
|
||||
<!-- end p_q_inner_data_output -->
|
||||
<p>The length of the final string is 256 bytes.</p>
|
||||
<h5><a class="anchor" href="#5-send-req-dh-params-query-with-generated-encrypted-data" id="5-send-req-dh-params-query-with-generated-encrypted-data" name="5-send-req-dh-params-query-with-generated-encrypted-data"><i class="anchor-icon"></i></a>5) Send req_DH_params query with generated <code>encrypted_data</code></h5>
|
||||
<!-- start req_DH_params -->
|
||||
<p>Sent payload (excluding transport headers/trailers):</p>
|
||||
<pre><code>0000 | 00 00 00 00 00 00 00 00 2C E7 06 00 01 BB 3A 65
|
||||
0010 | 40 01 00 00 BE E4 12 D7 43 FE 8B 3B A6 4A AA 94
|
||||
0020 | F0 20 39 D5 5E 62 38 8C AA 91 9A 98 37 CA 9A 0B
|
||||
0030 | 67 B5 1B BA C6 7D FE 85 04 3E 8B 3F 67 00 00 00
|
||||
0040 | 04 49 1D 6A 5D 00 00 00 85 FD 64 DE 85 1D 9D D0
|
||||
0050 | FE 00 01 00 DF 2E DE D6 F6 0F 78 A5 DE 43 D2 46
|
||||
0060 | 47 53 87 E9 C6 BF 47 6D 11 D7 86 DC 8F D2 D1 81
|
||||
0070 | 6B 64 6E F8 96 B8 0B 18 C0 FB AD F4 82 2E DD A3
|
||||
0080 | 03 78 EA 86 11 D2 16 E9 A8 2E F8 62 A3 E8 CA 74
|
||||
0090 | 62 81 06 5C DE 87 75 A5 15 FF 9A B8 C3 47 3B FE
|
||||
00A0 | D8 99 3D A0 0E 59 A4 7F EC BF B3 AA AF E5 ED 4F
|
||||
00B0 | BA AB 1E 6F BC 7C 15 96 B7 CA 20 97 06 1D 9C E5
|
||||
00C0 | 36 F5 C4 8B BB C7 91 7D 6E 0D C3 AE 91 D3 A1 8A
|
||||
00D0 | 9F 33 A3 95 D8 D9 52 30 8B 5C EC 1F B0 1A 85 53
|
||||
00E0 | 9F B3 A7 3D E2 12 34 CE 05 A7 BD 49 DA C9 B6 5D
|
||||
00F0 | BF 0F D1 B1 09 79 46 9E CF 13 74 D4 DB 20 34 F7
|
||||
0100 | 1D 9C 90 70 86 A1 10 0F BD F1 27 4A 52 45 84 FD
|
||||
0110 | F7 A8 95 92 0F A6 42 5C 9C C2 AB DC 47 1A 1C 28
|
||||
0120 | D8 A0 09 83 06 87 9F A4 E7 AE 6F A1 97 54 1B 6A
|
||||
0130 | E7 0B F1 64 1A 2E C9 A7 6F 83 55 65 F3 F2 C4 98
|
||||
0140 | 82 40 24 69 6E 6E 41 B7 28 D9 80 41 27 F3 4E FC
|
||||
0150 | 2F 0E 75 7E</code></pre>
|
||||
<pre><code>0000 | 00 00 00 00 00 00 00 00 68 5C 0C 00 63 90 4F 65
|
||||
0010 | 40 01 00 00 BE E4 12 D7 C3 7C 0E 95 D8 4F 2E FE
|
||||
0020 | D7 E8 CE 09 04 AB CD D8 97 B8 B7 61 52 BA 6B 70
|
||||
0030 | A6 29 34 9B 02 22 2F A1 04 45 D5 DB 41 00 00 00
|
||||
0040 | 04 74 3D 69 F1 00 00 00 85 FD 64 DE 85 1D 9D D0
|
||||
0050 | FE 00 01 00 BA BD BB 0C AF C8 7E B7 42 A9 B0 E8
|
||||
0060 | 8E 34 2A 0D 46 E8 24 75 2F 8C 30 03 0A 4F 21 5C
|
||||
0070 | 28 3B 69 DC 4A 71 91 86 EE 31 FE 82 05 70 B7 5F
|
||||
0080 | DA C1 77 67 77 EA AB 36 30 98 E3 E8 60 6E 28 2D
|
||||
0090 | AF EF 2E EE 8E 5C 45 1A 59 41 9C 48 0C CB 31 39
|
||||
00A0 | 0C 60 6A CF 8C 24 66 6B 55 A8 A1 89 53 C1 FF 8E
|
||||
00B0 | D0 3F 03 BD 38 28 77 44 78 A6 E7 EC A8 E9 32 C0
|
||||
00C0 | B9 E8 DA 7B 44 E8 E4 1F FE CD 02 63 51 DB 3A 49
|
||||
00D0 | 38 0C 3A 83 25 34 19 8D E8 F9 4E 7C F0 B4 80 8A
|
||||
00E0 | F1 04 E7 75 50 C7 3E 47 94 59 2A 9C 80 D2 31 8F
|
||||
00F0 | B4 D4 BB B8 FE A4 E7 63 EA 19 E3 A4 D8 52 19 A7
|
||||
0100 | F2 BB 96 E7 5B 88 3B 4D FA EB CD 60 07 1F 6B 86
|
||||
0110 | 0A 7F C8 64 5F 4D 31 E3 26 C4 89 EA 53 68 26 BB
|
||||
0120 | F5 47 25 89 F3 27 44 94 C7 41 29 CB 64 4F 54 C1
|
||||
0130 | 8E 4A C0 15 1B AF FA E8 A9 69 6A 1D 60 4F 39 FC
|
||||
0140 | E2 36 60 CA 78 67 B3 FC 1F CE 6C 77 11 15 A4 70
|
||||
0150 | 72 E7 C4 90</code></pre>
|
||||
<p>Payload (de)serialization:</p>
|
||||
<pre><code>req_DH_params#d712e4be nonce:int128 server_nonce:int128 p:string q:string public_key_fingerprint:long encrypted_data:string = Server_DH_Params;</code></pre>
|
||||
<table class="table">
|
||||
|
@ -345,7 +345,7 @@ random_padding_bytes = 3E4818740CBFDBCD9B7598BA1E81B1906EA0BF17B3A0C9FDAC7702439
|
|||
<tr>
|
||||
<td>message_id</td>
|
||||
<td>8, 8</td>
|
||||
<td><code>2CE7060001BB3A65</code></td>
|
||||
<td><code>685C0C0063904F65</code></td>
|
||||
<td>Message ID generated as specified <a href="/mtproto/description#message-identifier-msg-id">here »</a> (unixtime() << 32) + (N*4)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -363,25 +363,25 @@ random_padding_bytes = 3E4818740CBFDBCD9B7598BA1E81B1906EA0BF17B3A0C9FDAC7702439
|
|||
<tr>
|
||||
<td>nonce</td>
|
||||
<td>24, 16</td>
|
||||
<td><code>43FE8B3BA64AAA94F02039D55E62388C</code></td>
|
||||
<td><code>C37C0E95D84F2EFED7E8CE0904ABCDD8</code></td>
|
||||
<td>Value generated by client in Step 1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>server_nonce</td>
|
||||
<td>40, 16</td>
|
||||
<td><code>AA919A9837CA9A0B67B51BBAC67DFE85</code></td>
|
||||
<td><code>97B8B76152BA6B70A629349B02222FA1</code></td>
|
||||
<td>Value received from server in Step 2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>p</td>
|
||||
<td>56, 8</td>
|
||||
<td><code>043E8B3F67000000</code><br>TL byte deserialization <br>=> bigendian conversion to decimal<br>=> 1049313127</td>
|
||||
<td><code>0445D5DB41000000</code><br>TL byte deserialization <br>=> bigendian conversion to decimal<br>=> 1171643201</td>
|
||||
<td>First prime cofactor: single-byte prefix denoting length, 4-byte string, and three bytes of padding</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>q</td>
|
||||
<td>64, 8</td>
|
||||
<td><code>04491D6A5D000000</code><br>TL byte deserialization <br>=> bigendian conversion to decimal<br>=> 1226664541</td>
|
||||
<td><code>04743D69F1000000</code><br>TL byte deserialization <br>=> bigendian conversion to decimal<br>=> 1950181873</td>
|
||||
<td>Second prime cofactor: single-byte prefix denoting length, 4-byte string, and three bytes of padding</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -393,7 +393,7 @@ random_padding_bytes = 3E4818740CBFDBCD9B7598BA1E81B1906EA0BF17B3A0C9FDAC7702439
|
|||
<tr>
|
||||
<td>encrypted_data</td>
|
||||
<td>80, 260</td>
|
||||
<td><code>FE000100DF2EDED6F60F78A5DE43D246</code> <code>475387E9C6BF476D11D786DC8FD2D181</code> <code>6B646EF896B80B18C0FBADF4822EDDA3</code> <code>0378EA8611D216E9A82EF862A3E8CA74</code> <code>6281065CDE8775A515FF9AB8C3473BFE</code> <code>D8993DA00E59A47FECBFB3AAAFE5ED4F</code> <code>BAAB1E6FBC7C1596B7CA2097061D9CE5</code> <code>36F5C48BBBC7917D6E0DC3AE91D3A18A</code> <code>9F33A395D8D952308B5CEC1FB01A8553</code> <code>9FB3A73DE21234CE05A7BD49DAC9B65D</code> <code>BF0FD1B10979469ECF1374D4DB2034F7</code> <code>1D9C907086A1100FBDF1274A524584FD</code> <code>F7A895920FA6425C9CC2ABDC471A1C28</code> <code>D8A0098306879FA4E7AE6FA197541B6A</code> <code>E70BF1641A2EC9A76F835565F3F2C498</code> <code>824024696E6E41B728D9804127F34EFC</code><br> <code>2F0E757E</code></td>
|
||||
<td><code>FE000100BABDBB0CAFC87EB742A9B0E8</code> <code>8E342A0D46E824752F8C30030A4F215C</code> <code>283B69DC4A719186EE31FE820570B75F</code> <code>DAC1776777EAAB363098E3E8606E282D</code> <code>AFEF2EEE8E5C451A59419C480CCB3139</code> <code>0C606ACF8C24666B55A8A18953C1FF8E</code> <code>D03F03BD3828774478A6E7ECA8E932C0</code> <code>B9E8DA7B44E8E41FFECD026351DB3A49</code> <code>380C3A832534198DE8F94E7CF0B4808A</code> <code>F104E77550C73E4794592A9C80D2318F</code> <code>B4D4BBB8FEA4E763EA19E3A4D85219A7</code> <code>F2BB96E75B883B4DFAEBCD60071F6B86</code> <code>0A7FC8645F4D31E326C489EA536826BB</code> <code>F5472589F3274494C74129CB644F54C1</code> <code>8E4AC0151BAFFAE8A9696A1D604F39FC</code> <code>E23660CA7867B3FC1FCE6C771115A470</code><br> <code>72E7C490</code></td>
|
||||
<td>Value generated above</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -402,47 +402,47 @@ random_padding_bytes = 3E4818740CBFDBCD9B7598BA1E81B1906EA0BF17B3A0C9FDAC7702439
|
|||
<h5><a class="anchor" href="#6-server-responds-with" id="6-server-responds-with" name="6-server-responds-with"><i class="anchor-icon"></i></a>6) Server responds with:</h5>
|
||||
<!-- start server_DH_params_ok -->
|
||||
<p>Received payload (excluding transport headers/trailers):</p>
|
||||
<pre><code>0000 | 00 00 00 00 00 00 00 00 01 50 C8 EE FD BA 3A 65
|
||||
0010 | A0 02 00 00 5C 07 E8 D0 43 FE 8B 3B A6 4A AA 94
|
||||
0020 | F0 20 39 D5 5E 62 38 8C AA 91 9A 98 37 CA 9A 0B
|
||||
0030 | 67 B5 1B BA C6 7D FE 85 FE 50 02 00 16 46 9C B8
|
||||
0040 | 9D 84 3B 92 A5 50 B2 20 08 6A 3F 84 F4 CC 31 C3
|
||||
0050 | 94 CC 96 76 32 1E FB 56 90 A4 A9 5B 52 71 17 6A
|
||||
0060 | 55 77 A8 D2 EE DB 5C E3 D9 86 3E 89 01 B1 6F E3
|
||||
0070 | 15 18 3E 25 73 F1 E1 F4 E5 57 D4 1B F4 8C 31 91
|
||||
0080 | 35 4C 36 80 A0 0F 4F BF 28 6E 98 C9 58 25 03 4E
|
||||
0090 | 5B A1 E8 23 86 3D B5 31 BB AA 7C C4 12 1C 63 3D
|
||||
00A0 | 33 1E AB 18 3F E2 25 49 3E 9F 3B EC BB C5 59 96
|
||||
00B0 | 6B 30 10 B0 5B 51 09 1C E6 D1 45 95 58 3D 03 DC
|
||||
00C0 | DC AA BE 54 6D 1B 8C A9 47 9F 0D AE F9 A6 6A D6
|
||||
00D0 | 84 30 70 40 11 0C 77 09 22 C7 E7 51 5B F2 B2 F8
|
||||
00E0 | 1C 89 3A 04 48 7A E8 3D AA 42 FF 02 CB 27 DF E0
|
||||
00F0 | 73 03 98 48 F8 F4 DC 0E CE 4A 43 73 BC 6F 2C 4B
|
||||
0100 | 13 15 22 7E 81 25 75 6D 46 06 50 C9 A5 8D D6 34
|
||||
0110 | F3 20 FF BB 56 CC 73 C9 B2 3F 9E E1 17 2B 5C 23
|
||||
0120 | EE C1 B9 67 32 2D F9 69 8E FB 42 0C 04 29 F2 6C
|
||||
0130 | 57 3B 57 75 CD 07 C6 4B F2 2B F8 DB 86 43 6D 86
|
||||
0140 | BA E7 AF 3D 3C 10 2A C4 95 F4 02 15 89 58 E5 A8
|
||||
0150 | 9D 13 44 74 7E 68 14 83 89 D4 4C 66 3E B1 B2 3E
|
||||
0160 | 8E 7E BA 8F 39 22 16 E0 30 2F AA B3 B7 C6 C0 32
|
||||
0170 | 3D 44 32 45 8A 28 01 4A 43 6E 37 50 D5 96 6D 85
|
||||
0180 | 52 F3 E5 6D 7C A1 44 0E 5E 88 97 F7 40 2D 47 11
|
||||
0190 | B2 8A B5 75 3B 66 CC 4B 0D 1A 8A 37 BE 59 B1 BA
|
||||
01A0 | C7 D5 57 04 AB FB 1D 29 46 38 F6 56 16 FD 6C 5B
|
||||
01B0 | 4D AE 18 04 89 09 C3 9F 45 D4 4C F5 1B FC 00 75
|
||||
01C0 | 8E B4 FE 49 FA 2B 0A 48 27 9B 4F 36 11 D3 69 11
|
||||
01D0 | DB EB 0F 25 22 77 82 C7 AB 2A 95 28 1A F1 EF 19
|
||||
01E0 | 6A 6C 3D 1B 5D 10 95 69 FC 65 95 FD 67 6E A0 53
|
||||
01F0 | DA 3E 78 BC E4 3F 90 7B EA 78 C0 8B CF 49 F4 D9
|
||||
0200 | BF 60 10 F5 2F BA 7E 7A 0B 44 84 CD 8C F1 0D 1A
|
||||
0210 | 5E AE 88 38 80 93 AA 7A 68 78 73 07 E5 23 FF CB
|
||||
0220 | 35 14 92 74 E2 7A 96 6B BC B4 04 29 C4 41 DD C2
|
||||
0230 | 3F 91 A8 15 47 94 10 EE 50 52 C8 60 B9 75 05 9D
|
||||
0240 | E3 CE 60 C8 DF 96 E1 F5 A3 96 E3 90 AD DC 25 87
|
||||
0250 | 94 65 6A 52 B6 89 EA AC 8F 41 3B 4D 1A 74 F6 59
|
||||
0260 | EA 2C 50 72 0A C2 3E A7 28 63 FA 05 C9 37 00 68
|
||||
0270 | E0 00 32 73 C8 7C 68 F2 4D 57 30 05 8D A8 5D 21
|
||||
0280 | 7A 47 E9 F8 96 94 AC 4A FF AE 00 31</code></pre>
|
||||
<pre><code>0000 | 00 00 00 00 00 00 00 00 01 C4 60 7B 64 90 4F 65
|
||||
0010 | E4 02 00 00 5C 07 E8 D0 C3 7C 0E 95 D8 4F 2E FE
|
||||
0020 | D7 E8 CE 09 04 AB CD D8 97 B8 B7 61 52 BA 6B 70
|
||||
0030 | A6 29 34 9B 02 22 2F A1 FE 50 02 00 C1 DA 81 94
|
||||
0040 | 24 CF 20 A6 EF 76 C4 7F BA 30 10 25 A1 06 C7 5D
|
||||
0050 | D6 D7 7F 5B 09 5B 1C 6C D5 FE 10 E3 5B CF 7C 6D
|
||||
0060 | 7F 06 53 EA A6 B9 08 69 3F 30 D5 BC 05 0C D2 D6
|
||||
0070 | AF CD 7B 8C DF F9 C7 EC 87 73 EE 60 56 2B 61 1C
|
||||
0080 | 76 C4 BD B2 E3 80 12 2F 4D 8A 4A 85 3C 22 DC C3
|
||||
0090 | 74 1B 2E 53 90 B4 B1 56 E4 23 D6 44 5C 91 D4 82
|
||||
00A0 | 3C 5B 22 07 33 60 A1 9F 83 B6 5E 88 71 CF BC 64
|
||||
00B0 | AE B9 F3 BB DF C1 19 D3 49 6D 1E C6 F1 8E 30 3D
|
||||
00C0 | 37 67 F1 C6 53 7D 6E 26 AF 04 00 E5 25 DE 4C 42
|
||||
00D0 | F7 73 96 89 9E 43 D3 18 09 4D 79 01 FA 9F 89 60
|
||||
00E0 | 87 89 5D 8A 6D AE 91 01 07 74 13 5D 0F 25 77 42
|
||||
00F0 | B8 CE 36 A8 67 E3 FC 2B 0E 94 E5 F7 AB 59 8E DE
|
||||
0100 | AE 0F F5 AC A4 2A 46 C9 AD F6 95 82 9C 42 D2 9A
|
||||
0110 | C5 6D 3D 5D AD 2F 17 49 A1 1D 24 82 C3 90 79 B1
|
||||
0120 | A2 56 05 8C 21 AF C2 FD AF 38 58 39 EC 44 3B 51
|
||||
0130 | 3E A7 88 9D 2F FE 0F D6 AF 08 90 52 34 17 48 6A
|
||||
0140 | C5 15 25 A3 BA 00 EB 4E 78 5C EF C9 BF 94 B1 0C
|
||||
0150 | 0A 96 13 1E 95 69 D7 6C 87 D9 06 52 7A C6 81 69
|
||||
0160 | 10 A8 C2 36 C1 3C EA BF 68 CF 95 9E 26 CA 80 67
|
||||
0170 | AD BA 84 7D FD 21 1C 3E BB E4 4A 0A 22 30 2D 17
|
||||
0180 | EC 36 55 CA 46 D7 91 DD 6B C6 BE 49 1A C9 85 AA
|
||||
0190 | 30 79 47 65 AB 90 62 78 1A 30 BC 5A E3 A8 F9 BC
|
||||
01A0 | 71 24 4C CE AF 32 93 7B AA 66 43 02 31 36 38 FB
|
||||
01B0 | CA 0D 8C 62 68 A3 20 79 66 6D 90 1E 6D 62 C3 8A
|
||||
01C0 | A3 4F 5F A5 19 59 7C 6A B3 F7 8E 1E C1 11 9E 51
|
||||
01D0 | B3 01 E3 62 0D 1E 29 34 22 3F A7 39 5D 95 A9 18
|
||||
01E0 | 66 73 9D 55 3A 5F DB E5 BD F8 FD 4F 5A 6F 9F B2
|
||||
01F0 | AE C1 35 77 DE 01 18 B4 71 C9 59 17 62 9E 10 5A
|
||||
0200 | 61 76 10 28 96 22 77 49 D9 09 88 6D 8F 91 C0 B3
|
||||
0210 | FA DE 97 EC 98 C6 0B A4 C2 79 9D EC DA 41 8D 9E
|
||||
0220 | 3C D8 FA 6F C0 0F 5B 14 38 75 D1 56 1E CC 48 30
|
||||
0230 | C9 01 B4 99 8A B8 1C 4C D7 22 39 78 25 E2 76 3B
|
||||
0240 | CC FA 5F C7 22 82 AB 17 C3 01 8F 14 0F E4 F9 26
|
||||
0250 | 9D B8 66 7B B7 29 95 72 C0 54 28 09 D1 58 59 F9
|
||||
0260 | 35 01 FD 70 D6 EE E6 62 BE 29 B7 6D 47 17 E6 B5
|
||||
0270 | A4 1B ED 63 C4 7C BD FF A4 CB E4 59 A2 AB 2D 3A
|
||||
0280 | BD 91 75 C6 AE 0D 0E 38 91 6A CF E4</code></pre>
|
||||
<p>Payload (de)serialization:</p>
|
||||
<pre><code>server_DH_params_ok#d0e8075c nonce:int128 server_nonce:int128 encrypted_answer:string = Server_DH_Params;</code></pre>
|
||||
<table class="table">
|
||||
|
@ -464,13 +464,13 @@ random_padding_bytes = 3E4818740CBFDBCD9B7598BA1E81B1906EA0BF17B3A0C9FDAC7702439
|
|||
<tr>
|
||||
<td>message_id</td>
|
||||
<td>8, 8</td>
|
||||
<td><code>0150C8EEFDBA3A65</code></td>
|
||||
<td><code>01C4607B64904F65</code></td>
|
||||
<td>Message ID generated as specified <a href="/mtproto/description#message-identifier-msg-id">here »</a> (unixtime() << 32) + (N*4)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>message_length</td>
|
||||
<td>16, 4</td>
|
||||
<td><code>A0020000</code> (672 in decimal)</td>
|
||||
<td><code>E4020000</code> (740 in decimal)</td>
|
||||
<td>Message body length</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -482,19 +482,19 @@ random_padding_bytes = 3E4818740CBFDBCD9B7598BA1E81B1906EA0BF17B3A0C9FDAC7702439
|
|||
<tr>
|
||||
<td>nonce</td>
|
||||
<td>24, 16</td>
|
||||
<td><code>43FE8B3BA64AAA94F02039D55E62388C</code></td>
|
||||
<td><code>C37C0E95D84F2EFED7E8CE0904ABCDD8</code></td>
|
||||
<td>Value generated by client in Step 1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>server_nonce</td>
|
||||
<td>40, 16</td>
|
||||
<td><code>AA919A9837CA9A0B67B51BBAC67DFE85</code></td>
|
||||
<td><code>97B8B76152BA6B70A629349B02222FA1</code></td>
|
||||
<td>Value received from server in Step 2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>encrypted_answer</td>
|
||||
<td>56, 596</td>
|
||||
<td><code>FE50020016469CB89D843B92A550B220</code> <code>086A3F84F4CC31C394CC9676321EFB56</code> <code>90A4A95B5271176A5577A8D2EEDB5CE3</code> <code>D9863E8901B16FE315183E2573F1E1F4</code> <code>E557D41BF48C3191354C3680A00F4FBF</code> <code>286E98C95825034E5BA1E823863DB531</code> <code>BBAA7CC4121C633D331EAB183FE22549</code> <code>3E9F3BECBBC559966B3010B05B51091C</code> <code>E6D14595583D03DCDCAABE546D1B8CA9</code> <code>479F0DAEF9A66AD684307040110C7709</code> <code>22C7E7515BF2B2F81C893A04487AE83D</code> <code>AA42FF02CB27DFE073039848F8F4DC0E</code> <code>CE4A4373BC6F2C4B1315227E8125756D</code> <code>460650C9A58DD634F320FFBB56CC73C9</code> <code>B23F9EE1172B5C23EEC1B967322DF969</code> <code>8EFB420C0429F26C573B5775CD07C64B</code> <code>F22BF8DB86436D86BAE7AF3D3C102AC4</code> <code>95F402158958E5A89D1344747E681483</code> <code>89D44C663EB1B23E8E7EBA8F392216E0</code> <code>302FAAB3B7C6C0323D4432458A28014A</code> <code>436E3750D5966D8552F3E56D7CA1440E</code> <code>5E8897F7402D4711B28AB5753B66CC4B</code> <code>0D1A8A37BE59B1BAC7D55704ABFB1D29</code> <code>4638F65616FD6C5B4DAE18048909C39F</code> <code>45D44CF51BFC00758EB4FE49FA2B0A48</code> <code>279B4F3611D36911DBEB0F25227782C7</code> <code>AB2A95281AF1EF196A6C3D1B5D109569</code> <code>FC6595FD676EA053DA3E78BCE43F907B</code> <code>EA78C08BCF49F4D9BF6010F52FBA7E7A</code> <code>0B4484CD8CF10D1A5EAE88388093AA7A</code> <code>68787307E523FFCB35149274E27A966B</code> <code>BCB40429C441DDC23F91A815479410EE</code> <code>5052C860B975059DE3CE60C8DF96E1F5</code> <code>A396E390ADDC258794656A52B689EAAC</code> <code>8F413B4D1A74F659EA2C50720AC23EA7</code> <code>2863FA05C9370068E0003273C87C68F2</code> <code>4D5730058DA85D217A47E9F89694AC4A</code><br> <code>FFAE0031</code></td>
|
||||
<td><code>FE500200C1DA819424CF20A6EF76C47F</code> <code>BA301025A106C75DD6D77F5B095B1C6C</code> <code>D5FE10E35BCF7C6D7F0653EAA6B90869</code> <code>3F30D5BC050CD2D6AFCD7B8CDFF9C7EC</code> <code>8773EE60562B611C76C4BDB2E380122F</code> <code>4D8A4A853C22DCC3741B2E5390B4B156</code> <code>E423D6445C91D4823C5B22073360A19F</code> <code>83B65E8871CFBC64AEB9F3BBDFC119D3</code> <code>496D1EC6F18E303D3767F1C6537D6E26</code> <code>AF0400E525DE4C42F77396899E43D318</code> <code>094D7901FA9F896087895D8A6DAE9101</code> <code>0774135D0F257742B8CE36A867E3FC2B</code> <code>0E94E5F7AB598EDEAE0FF5ACA42A46C9</code> <code>ADF695829C42D29AC56D3D5DAD2F1749</code> <code>A11D2482C39079B1A256058C21AFC2FD</code> <code>AF385839EC443B513EA7889D2FFE0FD6</code> <code>AF0890523417486AC51525A3BA00EB4E</code> <code>785CEFC9BF94B10C0A96131E9569D76C</code> <code>87D906527AC6816910A8C236C13CEABF</code> <code>68CF959E26CA8067ADBA847DFD211C3E</code> <code>BBE44A0A22302D17EC3655CA46D791DD</code> <code>6BC6BE491AC985AA30794765AB906278</code> <code>1A30BC5AE3A8F9BC71244CCEAF32937B</code> <code>AA664302313638FBCA0D8C6268A32079</code> <code>666D901E6D62C38AA34F5FA519597C6A</code> <code>B3F78E1EC1119E51B301E3620D1E2934</code> <code>223FA7395D95A91866739D553A5FDBE5</code> <code>BDF8FD4F5A6F9FB2AEC13577DE0118B4</code> <code>71C95917629E105A6176102896227749</code> <code>D909886D8F91C0B3FADE97EC98C60BA4</code> <code>C2799DECDA418D9E3CD8FA6FC00F5B14</code> <code>3875D1561ECC4830C901B4998AB81C4C</code> <code>D722397825E2763BCCFA5FC72282AB17</code> <code>C3018F140FE4F9269DB8667BB7299572</code> <code>C0542809D15859F93501FD70D6EEE662</code> <code>BE29B76D4717E6B5A41BED63C47CBDFF</code> <code>A4CBE459A2AB2D3ABD9175C6AE0D0E38</code><br> <code>916ACFE4</code></td>
|
||||
<td>See below</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -502,20 +502,20 @@ random_padding_bytes = 3E4818740CBFDBCD9B7598BA1E81B1906EA0BF17B3A0C9FDAC7702439
|
|||
<!-- end server_DH_params_ok -->
|
||||
<p>Decrypt <code>encrypted_answer</code> using the reverse of the process specified in <a href="/mtproto/auth_key#6-server-responds-with">step 6</a>:</p>
|
||||
<!-- start server_DH_inner_data_input -->
|
||||
<pre><code>encrypted_answer = 16469CB89D843B92A550B220086A3F84F4CC31C394CC9676321EFB5690A4A95B5271176A5577A8D2EEDB5CE3D9863E8901B16FE315183E2573F1E1F4E557D41BF48C3191354C3680A00F4FBF286E98C95825034E5BA1E823863DB531BBAA7CC4121C633D331EAB183FE225493E9F3BECBBC559966B3010B05B51091CE6D14595583D03DCDCAABE546D1B8CA9479F0DAEF9A66AD684307040110C770922C7E7515BF2B2F81C893A04487AE83DAA42FF02CB27DFE073039848F8F4DC0ECE4A4373BC6F2C4B1315227E8125756D460650C9A58DD634F320FFBB56CC73C9B23F9EE1172B5C23EEC1B967322DF9698EFB420C0429F26C573B5775CD07C64BF22BF8DB86436D86BAE7AF3D3C102AC495F402158958E5A89D1344747E68148389D44C663EB1B23E8E7EBA8F392216E0302FAAB3B7C6C0323D4432458A28014A436E3750D5966D8552F3E56D7CA1440E5E8897F7402D4711B28AB5753B66CC4B0D1A8A37BE59B1BAC7D55704ABFB1D294638F65616FD6C5B4DAE18048909C39F45D44CF51BFC00758EB4FE49FA2B0A48279B4F3611D36911DBEB0F25227782C7AB2A95281AF1EF196A6C3D1B5D109569FC6595FD676EA053DA3E78BCE43F907BEA78C08BCF49F4D9BF6010F52FBA7E7A0B4484CD8CF10D1A5EAE88388093AA7A68787307E523FFCB35149274E27A966BBCB40429C441DDC23F91A815479410EE5052C860B975059DE3CE60C8DF96E1F5A396E390ADDC258794656A52B689EAAC8F413B4D1A74F659EA2C50720AC23EA72863FA05C9370068E0003273C87C68F24D5730058DA85D217A47E9F89694AC4AFFAE0031
|
||||
tmp_aes_key = 3653556166227FF7E7BD25321B0AE7875E74D441E9E43BA3DF41EECD120219BE
|
||||
tmp_aes_iv = 65DEAC819763A72F155B15D022F049A8AC61F69E6F04E8764738496E9AD1C2F1</code></pre>
|
||||
<pre><code>encrypted_answer = C1DA819424CF20A6EF76C47FBA301025A106C75DD6D77F5B095B1C6CD5FE10E35BCF7C6D7F0653EAA6B908693F30D5BC050CD2D6AFCD7B8CDFF9C7EC8773EE60562B611C76C4BDB2E380122F4D8A4A853C22DCC3741B2E5390B4B156E423D6445C91D4823C5B22073360A19F83B65E8871CFBC64AEB9F3BBDFC119D3496D1EC6F18E303D3767F1C6537D6E26AF0400E525DE4C42F77396899E43D318094D7901FA9F896087895D8A6DAE91010774135D0F257742B8CE36A867E3FC2B0E94E5F7AB598EDEAE0FF5ACA42A46C9ADF695829C42D29AC56D3D5DAD2F1749A11D2482C39079B1A256058C21AFC2FDAF385839EC443B513EA7889D2FFE0FD6AF0890523417486AC51525A3BA00EB4E785CEFC9BF94B10C0A96131E9569D76C87D906527AC6816910A8C236C13CEABF68CF959E26CA8067ADBA847DFD211C3EBBE44A0A22302D17EC3655CA46D791DD6BC6BE491AC985AA30794765AB9062781A30BC5AE3A8F9BC71244CCEAF32937BAA664302313638FBCA0D8C6268A32079666D901E6D62C38AA34F5FA519597C6AB3F78E1EC1119E51B301E3620D1E2934223FA7395D95A91866739D553A5FDBE5BDF8FD4F5A6F9FB2AEC13577DE0118B471C95917629E105A6176102896227749D909886D8F91C0B3FADE97EC98C60BA4C2799DECDA418D9E3CD8FA6FC00F5B143875D1561ECC4830C901B4998AB81C4CD722397825E2763BCCFA5FC72282AB17C3018F140FE4F9269DB8667BB7299572C0542809D15859F93501FD70D6EEE662BE29B76D4717E6B5A41BED63C47CBDFFA4CBE459A2AB2D3ABD9175C6AE0D0E38916ACFE4
|
||||
tmp_aes_key = 4FA53BC11DD3562BFD6B93AF43E18E4B390140C64EB2CC7A49DC311AD30262A4
|
||||
tmp_aes_iv = 250F6BD507061310FE56F3AD7269A7C3396555B4A287D55FE4B463D26A99670D</code></pre>
|
||||
<!-- end server_DH_inner_data_input -->
|
||||
<p>Yielding:</p>
|
||||
<!-- start server_DH_inner_data_output -->
|
||||
<pre><code>answer_with_hash = FD8B2C21EEA966184B4F3D763E52B69B960378EFBA0D89B543FE8B3BA64AAA94F02039D55E62388CAA919A9837CA9A0B67B51BBAC67DFE8503000000FE000100C71CAEB9C6B1C9048E6C522F70F13F73980D40238E3E21C14934D037563D930F48198A0AA7C14058229493D22530F4DBFA336F6E0AC925139543AED44CCE7C3720FD51F69458705AC68CD4FE6B6B13ABDC9746512969328454F18FAF8C595F642477FE96BB2A941D5BCD1D4AC8CC49880708FA9B378E3C4F3A9060BEE67CF9A4A4A695811051907E162753B56B0F6B410DBA74D8A84B2A14B3144E0EF1284754FD17ED950D5965B4B9DD46582DB1178D169C6BC465B0D6FF9CA3928FEF5B9AE4E418FC15E83EBEA0F87FA9FF5EED70050DED2849F47BF959D956850CE929851F0D8115F635B105EE2E4E15D04B2454BF6F4FADF034B10403119CD8E3B92FCC5BFE0001000409336942FA3C97C6AD3323142F46D5064103C031CD502034B9FBC5E94293E297862C8B97083A683BD4768EFA2C1AE46EC4299D1A7CCB107B1BBA8FA70896F12D955DD386A6ED21944A356FF1363E225B62B532997B0038F09F3530E61AD47EABB797DE592C7237F682CE1EBF1CF5F91290377D53F963C9DB8283B1C60DA21B2479478A26EF2E32EA084421B8CA88878ED6A8F56DFF468572577A77D36BDF0ABAB727DB6D6D99702AAB346E35EF14001829B2F172992C2C0D5D848BB23008E150635BF47BA1430629CBF44FF58A4AB497CCA7AA7B19E91201BF444AD2A3606FB4560787B72655BB14A12B715914DF594531FAF3BCE50B226F18092E43C97C4DFDBA3A65D38460D266140F50
|
||||
answer = BA0D89B543FE8B3BA64AAA94F02039D55E62388CAA919A9837CA9A0B67B51BBAC67DFE8503000000FE000100C71CAEB9C6B1C9048E6C522F70F13F73980D40238E3E21C14934D037563D930F48198A0AA7C14058229493D22530F4DBFA336F6E0AC925139543AED44CCE7C3720FD51F69458705AC68CD4FE6B6B13ABDC9746512969328454F18FAF8C595F642477FE96BB2A941D5BCD1D4AC8CC49880708FA9B378E3C4F3A9060BEE67CF9A4A4A695811051907E162753B56B0F6B410DBA74D8A84B2A14B3144E0EF1284754FD17ED950D5965B4B9DD46582DB1178D169C6BC465B0D6FF9CA3928FEF5B9AE4E418FC15E83EBEA0F87FA9FF5EED70050DED2849F47BF959D956850CE929851F0D8115F635B105EE2E4E15D04B2454BF6F4FADF034B10403119CD8E3B92FCC5BFE0001000409336942FA3C97C6AD3323142F46D5064103C031CD502034B9FBC5E94293E297862C8B97083A683BD4768EFA2C1AE46EC4299D1A7CCB107B1BBA8FA70896F12D955DD386A6ED21944A356FF1363E225B62B532997B0038F09F3530E61AD47EABB797DE592C7237F682CE1EBF1CF5F91290377D53F963C9DB8283B1C60DA21B2479478A26EF2E32EA084421B8CA88878ED6A8F56DFF468572577A77D36BDF0ABAB727DB6D6D99702AAB346E35EF14001829B2F172992C2C0D5D848BB23008E150635BF47BA1430629CBF44FF58A4AB497CCA7AA7B19E91201BF444AD2A3606FB4560787B72655BB14A12B715914DF594531FAF3BCE50B226F18092E43C97C4DFDBA3A65D38460D266140F50</code></pre>
|
||||
<pre><code>answer_with_hash = 115580D623DC14068FFEB0195DBDAF9155E0CF6FBA0D89B5C37C0E95D84F2EFED7E8CE0904ABCDD897B8B76152BA6B70A629349B02222FA103000000FE000100C71CAEB9C6B1C9048E6C522F70F13F73980D40238E3E21C14934D037563D930F48198A0AA7C14058229493D22530F4DBFA336F6E0AC925139543AED44CCE7C3720FD51F69458705AC68CD4FE6B6B13ABDC9746512969328454F18FAF8C595F642477FE96BB2A941D5BCD1D4AC8CC49880708FA9B378E3C4F3A9060BEE67CF9A4A4A695811051907E162753B56B0F6B410DBA74D8A84B2A14B3144E0EF1284754FD17ED950D5965B4B9DD46582DB1178D169C6BC465B0D6FF9CA3928FEF5B9AE4E418FC15E83EBEA0F87FA9FF5EED70050DED2849F47BF959D956850CE929851F0D8115F635B105EE2E4E15D04B2454BF6F4FADF034B10403119CD8E3B92FCC5BFE0001005FE3A38CC04D6153ED5834D6F2C083D048B7B3F8311ECADA0666BA15D54AE21F64EB809E33D4F4F1B20AB16A08DE0290F735B2A801F9BBBD99FFF2A82799BCA014A4B42A61EC8B7881C8383A68431FAD597194999325905BE022BF91245EB0B915A3C26F1D7FA3215FD25316BB68F7F7E569059E0B6132B9C63496A48606C212242E65974B5337A69A52A79DDED3CF41301807FD8A47040E73D2161AD10E709F5E08900B472D97639789EA2BB05EAFE79946340D23A3CDCC19F463489BA71BB17A8A89E8FEADE90B7B7DAB54FEC87BB57597E14335651D12B80401C4899C2B4E55791BFE5F9FE52AF0873997778782781B2BC50494A8EB62EA109270B3206DA764904F6554A9AA9122784A99
|
||||
answer = BA0D89B5C37C0E95D84F2EFED7E8CE0904ABCDD897B8B76152BA6B70A629349B02222FA103000000FE000100C71CAEB9C6B1C9048E6C522F70F13F73980D40238E3E21C14934D037563D930F48198A0AA7C14058229493D22530F4DBFA336F6E0AC925139543AED44CCE7C3720FD51F69458705AC68CD4FE6B6B13ABDC9746512969328454F18FAF8C595F642477FE96BB2A941D5BCD1D4AC8CC49880708FA9B378E3C4F3A9060BEE67CF9A4A4A695811051907E162753B56B0F6B410DBA74D8A84B2A14B3144E0EF1284754FD17ED950D5965B4B9DD46582DB1178D169C6BC465B0D6FF9CA3928FEF5B9AE4E418FC15E83EBEA0F87FA9FF5EED70050DED2849F47BF959D956850CE929851F0D8115F635B105EE2E4E15D04B2454BF6F4FADF034B10403119CD8E3B92FCC5BFE0001005FE3A38CC04D6153ED5834D6F2C083D048B7B3F8311ECADA0666BA15D54AE21F64EB809E33D4F4F1B20AB16A08DE0290F735B2A801F9BBBD99FFF2A82799BCA014A4B42A61EC8B7881C8383A68431FAD597194999325905BE022BF91245EB0B915A3C26F1D7FA3215FD25316BB68F7F7E569059E0B6132B9C63496A48606C212242E65974B5337A69A52A79DDED3CF41301807FD8A47040E73D2161AD10E709F5E08900B472D97639789EA2BB05EAFE79946340D23A3CDCC19F463489BA71BB17A8A89E8FEADE90B7B7DAB54FEC87BB57597E14335651D12B80401C4899C2B4E55791BFE5F9FE52AF0873997778782781B2BC50494A8EB62EA109270B3206DA764904F6554A9AA9122784A99</code></pre>
|
||||
<!-- end server_DH_inner_data_output -->
|
||||
<!-- start server_DH_inner_data -->
|
||||
<p>Generated payload (excluding transport headers/trailers):</p>
|
||||
<pre><code>0000 | BA 0D 89 B5 43 FE 8B 3B A6 4A AA 94 F0 20 39 D5
|
||||
0010 | 5E 62 38 8C AA 91 9A 98 37 CA 9A 0B 67 B5 1B BA
|
||||
0020 | C6 7D FE 85 03 00 00 00 FE 00 01 00 C7 1C AE B9
|
||||
<pre><code>0000 | BA 0D 89 B5 C3 7C 0E 95 D8 4F 2E FE D7 E8 CE 09
|
||||
0010 | 04 AB CD D8 97 B8 B7 61 52 BA 6B 70 A6 29 34 9B
|
||||
0020 | 02 22 2F A1 03 00 00 00 FE 00 01 00 C7 1C AE B9
|
||||
0030 | C6 B1 C9 04 8E 6C 52 2F 70 F1 3F 73 98 0D 40 23
|
||||
0040 | 8E 3E 21 C1 49 34 D0 37 56 3D 93 0F 48 19 8A 0A
|
||||
0050 | A7 C1 40 58 22 94 93 D2 25 30 F4 DB FA 33 6F 6E
|
||||
|
@ -532,23 +532,23 @@ answer = BA0D89B543FE8B3BA64AAA94F02039D55E62388CAA919A9837CA9A0B67B51BBAC67DFE8
|
|||
0100 | F4 7B F9 59 D9 56 85 0C E9 29 85 1F 0D 81 15 F6
|
||||
0110 | 35 B1 05 EE 2E 4E 15 D0 4B 24 54 BF 6F 4F AD F0
|
||||
0120 | 34 B1 04 03 11 9C D8 E3 B9 2F CC 5B FE 00 01 00
|
||||
0130 | 04 09 33 69 42 FA 3C 97 C6 AD 33 23 14 2F 46 D5
|
||||
0140 | 06 41 03 C0 31 CD 50 20 34 B9 FB C5 E9 42 93 E2
|
||||
0150 | 97 86 2C 8B 97 08 3A 68 3B D4 76 8E FA 2C 1A E4
|
||||
0160 | 6E C4 29 9D 1A 7C CB 10 7B 1B BA 8F A7 08 96 F1
|
||||
0170 | 2D 95 5D D3 86 A6 ED 21 94 4A 35 6F F1 36 3E 22
|
||||
0180 | 5B 62 B5 32 99 7B 00 38 F0 9F 35 30 E6 1A D4 7E
|
||||
0190 | AB B7 97 DE 59 2C 72 37 F6 82 CE 1E BF 1C F5 F9
|
||||
01A0 | 12 90 37 7D 53 F9 63 C9 DB 82 83 B1 C6 0D A2 1B
|
||||
01B0 | 24 79 47 8A 26 EF 2E 32 EA 08 44 21 B8 CA 88 87
|
||||
01C0 | 8E D6 A8 F5 6D FF 46 85 72 57 7A 77 D3 6B DF 0A
|
||||
01D0 | BA B7 27 DB 6D 6D 99 70 2A AB 34 6E 35 EF 14 00
|
||||
01E0 | 18 29 B2 F1 72 99 2C 2C 0D 5D 84 8B B2 30 08 E1
|
||||
01F0 | 50 63 5B F4 7B A1 43 06 29 CB F4 4F F5 8A 4A B4
|
||||
0200 | 97 CC A7 AA 7B 19 E9 12 01 BF 44 4A D2 A3 60 6F
|
||||
0210 | B4 56 07 87 B7 26 55 BB 14 A1 2B 71 59 14 DF 59
|
||||
0220 | 45 31 FA F3 BC E5 0B 22 6F 18 09 2E 43 C9 7C 4D
|
||||
0230 | FD BA 3A 65</code></pre>
|
||||
0130 | 5F E3 A3 8C C0 4D 61 53 ED 58 34 D6 F2 C0 83 D0
|
||||
0140 | 48 B7 B3 F8 31 1E CA DA 06 66 BA 15 D5 4A E2 1F
|
||||
0150 | 64 EB 80 9E 33 D4 F4 F1 B2 0A B1 6A 08 DE 02 90
|
||||
0160 | F7 35 B2 A8 01 F9 BB BD 99 FF F2 A8 27 99 BC A0
|
||||
0170 | 14 A4 B4 2A 61 EC 8B 78 81 C8 38 3A 68 43 1F AD
|
||||
0180 | 59 71 94 99 93 25 90 5B E0 22 BF 91 24 5E B0 B9
|
||||
0190 | 15 A3 C2 6F 1D 7F A3 21 5F D2 53 16 BB 68 F7 F7
|
||||
01A0 | E5 69 05 9E 0B 61 32 B9 C6 34 96 A4 86 06 C2 12
|
||||
01B0 | 24 2E 65 97 4B 53 37 A6 9A 52 A7 9D DE D3 CF 41
|
||||
01C0 | 30 18 07 FD 8A 47 04 0E 73 D2 16 1A D1 0E 70 9F
|
||||
01D0 | 5E 08 90 0B 47 2D 97 63 97 89 EA 2B B0 5E AF E7
|
||||
01E0 | 99 46 34 0D 23 A3 CD CC 19 F4 63 48 9B A7 1B B1
|
||||
01F0 | 7A 8A 89 E8 FE AD E9 0B 7B 7D AB 54 FE C8 7B B5
|
||||
0200 | 75 97 E1 43 35 65 1D 12 B8 04 01 C4 89 9C 2B 4E
|
||||
0210 | 55 79 1B FE 5F 9F E5 2A F0 87 39 97 77 87 82 78
|
||||
0220 | 1B 2B C5 04 94 A8 EB 62 EA 10 92 70 B3 20 6D A7
|
||||
0230 | 64 90 4F 65</code></pre>
|
||||
<p>Payload (de)serialization:</p>
|
||||
<pre><code>server_DH_inner_data#b5890dba nonce:int128 server_nonce:int128 g:int dh_prime:string g_a:string server_time:int = Server_DH_inner_data;</code></pre>
|
||||
<table class="table">
|
||||
|
@ -570,13 +570,13 @@ answer = BA0D89B543FE8B3BA64AAA94F02039D55E62388CAA919A9837CA9A0B67B51BBAC67DFE8
|
|||
<tr>
|
||||
<td>nonce</td>
|
||||
<td>4, 16</td>
|
||||
<td><code>43FE8B3BA64AAA94F02039D55E62388C</code></td>
|
||||
<td><code>C37C0E95D84F2EFED7E8CE0904ABCDD8</code></td>
|
||||
<td>Value generated by client in Step 1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>server_nonce</td>
|
||||
<td>20, 16</td>
|
||||
<td><code>AA919A9837CA9A0B67B51BBAC67DFE85</code></td>
|
||||
<td><code>97B8B76152BA6B70A629349B02222FA1</code></td>
|
||||
<td>Value received from server in Step 2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -594,13 +594,13 @@ answer = BA0D89B543FE8B3BA64AAA94F02039D55E62388CAA919A9837CA9A0B67B51BBAC67DFE8
|
|||
<tr>
|
||||
<td>g_a</td>
|
||||
<td>300, 260</td>
|
||||
<td><code>FE0001000409336942FA3C97C6AD3323</code> <code>142F46D5064103C031CD502034B9FBC5</code> <code>E94293E297862C8B97083A683BD4768E</code> <code>FA2C1AE46EC4299D1A7CCB107B1BBA8F</code> <code>A70896F12D955DD386A6ED21944A356F</code> <code>F1363E225B62B532997B0038F09F3530</code> <code>E61AD47EABB797DE592C7237F682CE1E</code> <code>BF1CF5F91290377D53F963C9DB8283B1</code> <code>C60DA21B2479478A26EF2E32EA084421</code> <code>B8CA88878ED6A8F56DFF468572577A77</code> <code>D36BDF0ABAB727DB6D6D99702AAB346E</code> <code>35EF14001829B2F172992C2C0D5D848B</code> <code>B23008E150635BF47BA1430629CBF44F</code> <code>F58A4AB497CCA7AA7B19E91201BF444A</code> <code>D2A3606FB4560787B72655BB14A12B71</code> <code>5914DF594531FAF3BCE50B226F18092E</code><br> <code>43C97C4D</code></td>
|
||||
<td><code>FE0001005FE3A38CC04D6153ED5834D6</code> <code>F2C083D048B7B3F8311ECADA0666BA15</code> <code>D54AE21F64EB809E33D4F4F1B20AB16A</code> <code>08DE0290F735B2A801F9BBBD99FFF2A8</code> <code>2799BCA014A4B42A61EC8B7881C8383A</code> <code>68431FAD597194999325905BE022BF91</code> <code>245EB0B915A3C26F1D7FA3215FD25316</code> <code>BB68F7F7E569059E0B6132B9C63496A4</code> <code>8606C212242E65974B5337A69A52A79D</code> <code>DED3CF41301807FD8A47040E73D2161A</code> <code>D10E709F5E08900B472D97639789EA2B</code> <code>B05EAFE79946340D23A3CDCC19F46348</code> <code>9BA71BB17A8A89E8FEADE90B7B7DAB54</code> <code>FEC87BB57597E14335651D12B80401C4</code> <code>899C2B4E55791BFE5F9FE52AF0873997</code> <code>778782781B2BC50494A8EB62EA109270</code><br> <code>B3206DA7</code></td>
|
||||
<td><code>g_a</code> diffie-hellman parameter</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>server_time</td>
|
||||
<td>560, 4</td>
|
||||
<td><code>FDBA3A65</code> (1698347773 in decimal)</td>
|
||||
<td><code>64904F65</code> (1699713124 in decimal)</td>
|
||||
<td>Server time</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -609,34 +609,34 @@ answer = BA0D89B543FE8B3BA64AAA94F02039D55E62388CAA919A9837CA9A0B67B51BBAC67DFE8
|
|||
<h5><a class="anchor" href="#7-client-computes-random-2048-bit-number-b-using-a-sufficient-amount-of-entropy-and-sends-the-server-a-message" id="7-client-computes-random-2048-bit-number-b-using-a-sufficient-amount-of-entropy-and-sends-the-server-a-message" name="7-client-computes-random-2048-bit-number-b-using-a-sufficient-amount-of-entropy-and-sends-the-server-a-message"><i class="anchor-icon"></i></a>7) Client computes random 2048-bit number <em>b</em> (using a sufficient amount of entropy) and sends the server a message</h5>
|
||||
<p>First, generate a secure random 2048-bit number b:</p>
|
||||
<!-- start b -->
|
||||
<pre><code>b = 37D557FE060941797BBA0A5A6759F2D6670F0C2AB97B48E5DAD4789FCCC0E6494793122EC0A092CFF8DA51B38C1ACD1BEDCE504C7D2720C269B2AB02FD2E7635DE76F5F2FA5B0932BB9B10A637E934EAB7F21CA21FA558110AD1275F96CBE4515F4E867F81FCD975EAA3B54A880BC4DBC43030066E0F451DE80DC71D7A5FFF0C1F17743E4F146F4A78E7B3E164E723CF0A31F51840C709C66ABAF1182F608800E571C07F9C7F79DB14863B6DAE3AC132B8DB265616EAA26109D310909837F7E06E079C0613966FE778496D05627F51CAB596087434622F9EBDED108C930399995CB2E1BBECEB307C3B0DA2A661357B52B2421F0151C89E356BCD38BB0AE798B2</code></pre>
|
||||
<pre><code>b = 181D6264A292CCD7816DD28BBB7E34415784C37DDB0C2938E70E19FAF324B4F5FF2BC310941ADE53A9BF714FBC4F975F437B3EE3F3C2D63EC464DF2A7C018A20D8F43A4311FCFAC6387E20A46A4B5FEB39C2CF4E67300CE9F405E5D2B6D643DEE2474D04D2C6965974CEEDA79F599BEE50321C69D5ED8A9B48C8B14101175CC02C88108957BE08832A3FC358B9D8624EC083B2E0705E7381300116E37D923AF263472340A9696D37D1F63D1F2292936C4C4C09EB3993E53B580AC1368D8CD173EDC86962D81B0C262BCD3230600BB6AA09D92BCBD6B1080802B0224B3D0AAEEDD8205A9003F1E2DFD575B1C80376EC2374E5CB0588C48EA0E738E920D92DFDA5</code></pre>
|
||||
<!-- end b -->
|
||||
<p>Then compute <code>g_b = pow(g, b) mod dh_prime</code></p>
|
||||
<!-- start g_b -->
|
||||
<pre><code>g_b = 914976B4519BE9B9509B28A435B5207706180582161A2E83A7A5E22AFD79D77E5B102B1121B8BD75C781045821A67D69966386A30A3D5B3FF614C925C238AE1AFAD611CC47E116147523E059FC4D17CBFB5E4760F6C7EC3BD0E399A91919E2D6478047A4E5270CF3D121A2EF397CA3DE99271C07D1DA27837C2B2399CC5B49FE69406EA1D1722DAA4154D09C4232DE03DE99091A67FECD4692E9C92B631B4ED2A45092D56C24B0943521A3FEE23F067C52C2B857E3A48D4F39DC8960B0392E567403405A9BC686C703255CA229BCCD3CF00242DE58558014EAE5C7B6BEAEC2BE4F960B86AFFE4A7929F6111186E1B132B8C9663AE0569329F61FC73532C886FA</code></pre>
|
||||
<pre><code>g_b = A1F6E1FFA5ED797C45EF5B244CAD1CEA42229C996C3F9F19E586C2AE339C87EFC6EB0C641CD19F5810F497F50FB5229DB251F46DE35C85A9166D336DB1E18DAA3A5F7ABA6365A0CA611672BBFD9B907C76C9A36D086779B8E19D22A715E2B22AF7C38EDA9562A8DB28910DF8681081BF746DE0B5F8BB8B2C180B9801412669F5B7EE4ED733B44BEA4B7DF657B879DDE6BE7BFA92A7978F5B09FEDB68673A29F077437976316DB955911E41CDE65230BB7EA3942F4D6D6574305F95FFF45EA5BC5D131883C767E6C3B62450DD62C646823B1EAD69D598FC2ACB8EC0EB5795BCF67C1E109CAB07E45E512A0197BAF4BF30EC272482040AD0E0C031B6BA6EB836C1</code></pre>
|
||||
<!-- end g_b -->
|
||||
<h6>7.1) generation of encrypted_data</h6>
|
||||
<!-- start client_DH_inner_data -->
|
||||
<p>Generated payload (excluding transport headers/trailers):</p>
|
||||
<pre><code>0000 | 54 B6 43 66 43 FE 8B 3B A6 4A AA 94 F0 20 39 D5
|
||||
0010 | 5E 62 38 8C AA 91 9A 98 37 CA 9A 0B 67 B5 1B BA
|
||||
0020 | C6 7D FE 85 00 00 00 00 00 00 00 00 FE 00 01 00
|
||||
0030 | 91 49 76 B4 51 9B E9 B9 50 9B 28 A4 35 B5 20 77
|
||||
0040 | 06 18 05 82 16 1A 2E 83 A7 A5 E2 2A FD 79 D7 7E
|
||||
0050 | 5B 10 2B 11 21 B8 BD 75 C7 81 04 58 21 A6 7D 69
|
||||
0060 | 96 63 86 A3 0A 3D 5B 3F F6 14 C9 25 C2 38 AE 1A
|
||||
0070 | FA D6 11 CC 47 E1 16 14 75 23 E0 59 FC 4D 17 CB
|
||||
0080 | FB 5E 47 60 F6 C7 EC 3B D0 E3 99 A9 19 19 E2 D6
|
||||
0090 | 47 80 47 A4 E5 27 0C F3 D1 21 A2 EF 39 7C A3 DE
|
||||
00A0 | 99 27 1C 07 D1 DA 27 83 7C 2B 23 99 CC 5B 49 FE
|
||||
00B0 | 69 40 6E A1 D1 72 2D AA 41 54 D0 9C 42 32 DE 03
|
||||
00C0 | DE 99 09 1A 67 FE CD 46 92 E9 C9 2B 63 1B 4E D2
|
||||
00D0 | A4 50 92 D5 6C 24 B0 94 35 21 A3 FE E2 3F 06 7C
|
||||
00E0 | 52 C2 B8 57 E3 A4 8D 4F 39 DC 89 60 B0 39 2E 56
|
||||
00F0 | 74 03 40 5A 9B C6 86 C7 03 25 5C A2 29 BC CD 3C
|
||||
0100 | F0 02 42 DE 58 55 80 14 EA E5 C7 B6 BE AE C2 BE
|
||||
0110 | 4F 96 0B 86 AF FE 4A 79 29 F6 11 11 86 E1 B1 32
|
||||
0120 | B8 C9 66 3A E0 56 93 29 F6 1F C7 35 32 C8 86 FA</code></pre>
|
||||
<pre><code>0000 | 54 B6 43 66 C3 7C 0E 95 D8 4F 2E FE D7 E8 CE 09
|
||||
0010 | 04 AB CD D8 97 B8 B7 61 52 BA 6B 70 A6 29 34 9B
|
||||
0020 | 02 22 2F A1 00 00 00 00 00 00 00 00 FE 00 01 00
|
||||
0030 | A1 F6 E1 FF A5 ED 79 7C 45 EF 5B 24 4C AD 1C EA
|
||||
0040 | 42 22 9C 99 6C 3F 9F 19 E5 86 C2 AE 33 9C 87 EF
|
||||
0050 | C6 EB 0C 64 1C D1 9F 58 10 F4 97 F5 0F B5 22 9D
|
||||
0060 | B2 51 F4 6D E3 5C 85 A9 16 6D 33 6D B1 E1 8D AA
|
||||
0070 | 3A 5F 7A BA 63 65 A0 CA 61 16 72 BB FD 9B 90 7C
|
||||
0080 | 76 C9 A3 6D 08 67 79 B8 E1 9D 22 A7 15 E2 B2 2A
|
||||
0090 | F7 C3 8E DA 95 62 A8 DB 28 91 0D F8 68 10 81 BF
|
||||
00A0 | 74 6D E0 B5 F8 BB 8B 2C 18 0B 98 01 41 26 69 F5
|
||||
00B0 | B7 EE 4E D7 33 B4 4B EA 4B 7D F6 57 B8 79 DD E6
|
||||
00C0 | BE 7B FA 92 A7 97 8F 5B 09 FE DB 68 67 3A 29 F0
|
||||
00D0 | 77 43 79 76 31 6D B9 55 91 1E 41 CD E6 52 30 BB
|
||||
00E0 | 7E A3 94 2F 4D 6D 65 74 30 5F 95 FF F4 5E A5 BC
|
||||
00F0 | 5D 13 18 83 C7 67 E6 C3 B6 24 50 DD 62 C6 46 82
|
||||
0100 | 3B 1E AD 69 D5 98 FC 2A CB 8E C0 EB 57 95 BC F6
|
||||
0110 | 7C 1E 10 9C AB 07 E4 5E 51 2A 01 97 BA F4 BF 30
|
||||
0120 | EC 27 24 82 04 0A D0 E0 C0 31 B6 BA 6E B8 36 C1</code></pre>
|
||||
<p>Payload (de)serialization:</p>
|
||||
<pre><code>client_DH_inner_data#6643b654 nonce:int128 server_nonce:int128 retry_id:long g_b:string = Client_DH_Inner_Data;</code></pre>
|
||||
<table class="table">
|
||||
|
@ -658,19 +658,19 @@ answer = BA0D89B543FE8B3BA64AAA94F02039D55E62388CAA919A9837CA9A0B67B51BBAC67DFE8
|
|||
<tr>
|
||||
<td>nonce</td>
|
||||
<td>4, 16</td>
|
||||
<td><code>43FE8B3BA64AAA94F02039D55E62388C</code></td>
|
||||
<td><code>C37C0E95D84F2EFED7E8CE0904ABCDD8</code></td>
|
||||
<td>Value generated by client in Step 1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>server_nonce</td>
|
||||
<td>20, 16</td>
|
||||
<td><code>AA919A9837CA9A0B67B51BBAC67DFE85</code></td>
|
||||
<td><code>97B8B76152BA6B70A629349B02222FA1</code></td>
|
||||
<td>Value received from server in Step 2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>g_b</td>
|
||||
<td>36, 260</td>
|
||||
<td><code>FE000100914976B4519BE9B9509B28A4</code> <code>35B5207706180582161A2E83A7A5E22A</code> <code>FD79D77E5B102B1121B8BD75C7810458</code> <code>21A67D69966386A30A3D5B3FF614C925</code> <code>C238AE1AFAD611CC47E116147523E059</code> <code>FC4D17CBFB5E4760F6C7EC3BD0E399A9</code> <code>1919E2D6478047A4E5270CF3D121A2EF</code> <code>397CA3DE99271C07D1DA27837C2B2399</code> <code>CC5B49FE69406EA1D1722DAA4154D09C</code> <code>4232DE03DE99091A67FECD4692E9C92B</code> <code>631B4ED2A45092D56C24B0943521A3FE</code> <code>E23F067C52C2B857E3A48D4F39DC8960</code> <code>B0392E567403405A9BC686C703255CA2</code> <code>29BCCD3CF00242DE58558014EAE5C7B6</code> <code>BEAEC2BE4F960B86AFFE4A7929F61111</code> <code>86E1B132B8C9663AE0569329F61FC735</code><br> <code>32C886FA</code></td>
|
||||
<td><code>FE000100A1F6E1FFA5ED797C45EF5B24</code> <code>4CAD1CEA42229C996C3F9F19E586C2AE</code> <code>339C87EFC6EB0C641CD19F5810F497F5</code> <code>0FB5229DB251F46DE35C85A9166D336D</code> <code>B1E18DAA3A5F7ABA6365A0CA611672BB</code> <code>FD9B907C76C9A36D086779B8E19D22A7</code> <code>15E2B22AF7C38EDA9562A8DB28910DF8</code> <code>681081BF746DE0B5F8BB8B2C180B9801</code> <code>412669F5B7EE4ED733B44BEA4B7DF657</code> <code>B879DDE6BE7BFA92A7978F5B09FEDB68</code> <code>673A29F077437976316DB955911E41CD</code> <code>E65230BB7EA3942F4D6D6574305F95FF</code> <code>F45EA5BC5D131883C767E6C3B62450DD</code> <code>62C646823B1EAD69D598FC2ACB8EC0EB</code> <code>5795BCF67C1E109CAB07E45E512A0197</code> <code>BAF4BF30EC272482040AD0E0C031B6BA</code><br> <code>6EB836C1</code></td>
|
||||
<td>Single-byte prefix denoting length, a 256-byte (2048-bit) string, and zero bytes of padding</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -684,47 +684,47 @@ answer = BA0D89B543FE8B3BA64AAA94F02039D55E62388CAA919A9837CA9A0B67B51BBAC67DFE8
|
|||
<!-- end client_DH_inner_data -->
|
||||
<p>The serialization of <em>Client_DH_Inner_Data</em> produces a string <strong>data</strong>. This is used to generate <strong>encrypted_data</strong> as specified in <a href="#7-client-computes-random-2048-bit-number-b-using-a-sufficient-amount-of-entropy-and-sends-the-server-a-message">step 6</a>, using the following inputs:</p>
|
||||
<!-- start client_DH_inner_data_input -->
|
||||
<pre><code>data = 54B6436643FE8B3BA64AAA94F02039D55E62388CAA919A9837CA9A0B67B51BBAC67DFE850000000000000000FE000100914976B4519BE9B9509B28A435B5207706180582161A2E83A7A5E22AFD79D77E5B102B1121B8BD75C781045821A67D69966386A30A3D5B3FF614C925C238AE1AFAD611CC47E116147523E059FC4D17CBFB5E4760F6C7EC3BD0E399A91919E2D6478047A4E5270CF3D121A2EF397CA3DE99271C07D1DA27837C2B2399CC5B49FE69406EA1D1722DAA4154D09C4232DE03DE99091A67FECD4692E9C92B631B4ED2A45092D56C24B0943521A3FEE23F067C52C2B857E3A48D4F39DC8960B0392E567403405A9BC686C703255CA229BCCD3CF00242DE58558014EAE5C7B6BEAEC2BE4F960B86AFFE4A7929F6111186E1B132B8C9663AE0569329F61FC73532C886FA
|
||||
padding = B93E0CD9CB863CBE8554B885
|
||||
tmp_aes_key = 3653556166227FF7E7BD25321B0AE7875E74D441E9E43BA3DF41EECD120219BE
|
||||
tmp_aes_iv = 65DEAC819763A72F155B15D022F049A8AC61F69E6F04E8764738496E9AD1C2F1</code></pre>
|
||||
<pre><code>data = 54B64366C37C0E95D84F2EFED7E8CE0904ABCDD897B8B76152BA6B70A629349B02222FA10000000000000000FE000100A1F6E1FFA5ED797C45EF5B244CAD1CEA42229C996C3F9F19E586C2AE339C87EFC6EB0C641CD19F5810F497F50FB5229DB251F46DE35C85A9166D336DB1E18DAA3A5F7ABA6365A0CA611672BBFD9B907C76C9A36D086779B8E19D22A715E2B22AF7C38EDA9562A8DB28910DF8681081BF746DE0B5F8BB8B2C180B9801412669F5B7EE4ED733B44BEA4B7DF657B879DDE6BE7BFA92A7978F5B09FEDB68673A29F077437976316DB955911E41CDE65230BB7EA3942F4D6D6574305F95FFF45EA5BC5D131883C767E6C3B62450DD62C646823B1EAD69D598FC2ACB8EC0EB5795BCF67C1E109CAB07E45E512A0197BAF4BF30EC272482040AD0E0C031B6BA6EB836C1
|
||||
padding = E4C9DF3FCFD8862F8F8F27D4
|
||||
tmp_aes_key = 4FA53BC11DD3562BFD6B93AF43E18E4B390140C64EB2CC7A49DC311AD30262A4
|
||||
tmp_aes_iv = 250F6BD507061310FE56F3AD7269A7C3396555B4A287D55FE4B463D26A99670D</code></pre>
|
||||
<!-- end client_DH_inner_data_input -->
|
||||
<p>Process:</p>
|
||||
<pre><code>data_with_hash := SHA1(data) + data + padding (0-15 random bytes such that total length is divisible by 16)
|
||||
encrypted_data := AES256_ige_encrypt (data_with_hash, tmp_aes_key, tmp_aes_iv);</code></pre>
|
||||
<p>Output:</p>
|
||||
<!-- start client_DH_inner_data_output -->
|
||||
<pre><code>encrypted_data = FFD817C837DF7E095D069EB0F61720391C9248546CF06942A0211F7C845798E2583182FB568AFEA3CA203BEC61A757FFBC40896F3A8E3E810477B41A3AA06D237AEB105D7AAF4049207F4F4B22EB68F8309D4877184A5B8B42566D4BD90B903EE70CE66102CD4F401D9ED38EDC960B6BFD9D8D55DDBBBC47069D6335960BE2EB16E4589DA47CE416D6066F9695EA648CF0F02793744C6ECC62C456DCBA21D721A7032F0372037509FDA1AB09927117037FCCE57E54F0543F5A5E395A2F432C7A34F17A2A38EAAD93574231DF204ECCCA7FD4CF5BA7CD28369F9DDDD936F9965B1F1D1CDEF538B4C7F2574C7E4F65F8F724B538145E45D93298FBA4461A148345006CBDB1E10EFBE528F7BE1371E7E074BD088284E3F0B4B84D8CEDF34419DC78F4B7805A55237E3E19D1C625BC61B0D527F92522D0ADD6EE8DDDB2F0840F769AA7BA506BBC992050CD3AF548124BE604</code></pre>
|
||||
<pre><code>encrypted_data = D1086649532561DEDF3D4A701A4001B60744335FABB19AB8EF47F9B319F5F1E8A49056ECC858305FEDA3AF3F021960AF7F141554A5AAEAA4DE2CFB2CC8B37085B17165A1C93050F446622EF42CB5D71F4C13C446B3C912CAA77DDEB16AD3E784CC58F47062F651EBA7B987A13C7D2F16393B64E02EBC19B39392DAE265D78A98554BC2E5EBAD07DCFD28DF880044234A99A394E46DC030AD2EAF6484FCD80163C2A613AC1847283CB0CCBBB7553424C6A90B361D279FB66CF71382553EE5FA0A46F921F3BF26D3D53DD288C9CCCC4A61FD8F6368D6D75AA1132758D915595E75C5884569AEF2037EF1865781263A00C9F81AD6CDEB8DAB6025530653DA65CF6E7FCB8CFF316259B738BD6F428F1BADC224D86FDB61D611E56B6CE44CF023964E092939FEA4798253260346AF102F1A15F2B5C69D52ACC492522283C0CE861AB079CB0A4E70668EA3796D84FACA6274EE</code></pre>
|
||||
<!-- end client_DH_inner_data_output -->
|
||||
<p>The length of the final string is 336 bytes.</p>
|
||||
<h6>7.2) set_client_DH_params query</h6>
|
||||
<!-- start set_client_DH_params -->
|
||||
<p>Sent payload (excluding transport headers/trailers):</p>
|
||||
<pre><code>0000 | 00 00 00 00 00 00 00 00 30 E7 06 00 01 BB 3A 65
|
||||
0010 | 78 01 00 00 1F 5F 04 F5 43 FE 8B 3B A6 4A AA 94
|
||||
0020 | F0 20 39 D5 5E 62 38 8C AA 91 9A 98 37 CA 9A 0B
|
||||
0030 | 67 B5 1B BA C6 7D FE 85 FE 50 01 00 FF D8 17 C8
|
||||
0040 | 37 DF 7E 09 5D 06 9E B0 F6 17 20 39 1C 92 48 54
|
||||
0050 | 6C F0 69 42 A0 21 1F 7C 84 57 98 E2 58 31 82 FB
|
||||
0060 | 56 8A FE A3 CA 20 3B EC 61 A7 57 FF BC 40 89 6F
|
||||
0070 | 3A 8E 3E 81 04 77 B4 1A 3A A0 6D 23 7A EB 10 5D
|
||||
0080 | 7A AF 40 49 20 7F 4F 4B 22 EB 68 F8 30 9D 48 77
|
||||
0090 | 18 4A 5B 8B 42 56 6D 4B D9 0B 90 3E E7 0C E6 61
|
||||
00A0 | 02 CD 4F 40 1D 9E D3 8E DC 96 0B 6B FD 9D 8D 55
|
||||
00B0 | DD BB BC 47 06 9D 63 35 96 0B E2 EB 16 E4 58 9D
|
||||
00C0 | A4 7C E4 16 D6 06 6F 96 95 EA 64 8C F0 F0 27 93
|
||||
00D0 | 74 4C 6E CC 62 C4 56 DC BA 21 D7 21 A7 03 2F 03
|
||||
00E0 | 72 03 75 09 FD A1 AB 09 92 71 17 03 7F CC E5 7E
|
||||
00F0 | 54 F0 54 3F 5A 5E 39 5A 2F 43 2C 7A 34 F1 7A 2A
|
||||
0100 | 38 EA AD 93 57 42 31 DF 20 4E CC CA 7F D4 CF 5B
|
||||
0110 | A7 CD 28 36 9F 9D DD D9 36 F9 96 5B 1F 1D 1C DE
|
||||
0120 | F5 38 B4 C7 F2 57 4C 7E 4F 65 F8 F7 24 B5 38 14
|
||||
0130 | 5E 45 D9 32 98 FB A4 46 1A 14 83 45 00 6C BD B1
|
||||
0140 | E1 0E FB E5 28 F7 BE 13 71 E7 E0 74 BD 08 82 84
|
||||
0150 | E3 F0 B4 B8 4D 8C ED F3 44 19 DC 78 F4 B7 80 5A
|
||||
0160 | 55 23 7E 3E 19 D1 C6 25 BC 61 B0 D5 27 F9 25 22
|
||||
0170 | D0 AD D6 EE 8D DD B2 F0 84 0F 76 9A A7 BA 50 6B
|
||||
0180 | BC 99 20 50 CD 3A F5 48 12 4B E6 04</code></pre>
|
||||
<pre><code>0000 | 00 00 00 00 00 00 00 00 F0 09 09 00 64 90 4F 65
|
||||
0010 | 78 01 00 00 1F 5F 04 F5 C3 7C 0E 95 D8 4F 2E FE
|
||||
0020 | D7 E8 CE 09 04 AB CD D8 97 B8 B7 61 52 BA 6B 70
|
||||
0030 | A6 29 34 9B 02 22 2F A1 FE 50 01 00 D1 08 66 49
|
||||
0040 | 53 25 61 DE DF 3D 4A 70 1A 40 01 B6 07 44 33 5F
|
||||
0050 | AB B1 9A B8 EF 47 F9 B3 19 F5 F1 E8 A4 90 56 EC
|
||||
0060 | C8 58 30 5F ED A3 AF 3F 02 19 60 AF 7F 14 15 54
|
||||
0070 | A5 AA EA A4 DE 2C FB 2C C8 B3 70 85 B1 71 65 A1
|
||||
0080 | C9 30 50 F4 46 62 2E F4 2C B5 D7 1F 4C 13 C4 46
|
||||
0090 | B3 C9 12 CA A7 7D DE B1 6A D3 E7 84 CC 58 F4 70
|
||||
00A0 | 62 F6 51 EB A7 B9 87 A1 3C 7D 2F 16 39 3B 64 E0
|
||||
00B0 | 2E BC 19 B3 93 92 DA E2 65 D7 8A 98 55 4B C2 E5
|
||||
00C0 | EB AD 07 DC FD 28 DF 88 00 44 23 4A 99 A3 94 E4
|
||||
00D0 | 6D C0 30 AD 2E AF 64 84 FC D8 01 63 C2 A6 13 AC
|
||||
00E0 | 18 47 28 3C B0 CC BB B7 55 34 24 C6 A9 0B 36 1D
|
||||
00F0 | 27 9F B6 6C F7 13 82 55 3E E5 FA 0A 46 F9 21 F3
|
||||
0100 | BF 26 D3 D5 3D D2 88 C9 CC CC 4A 61 FD 8F 63 68
|
||||
0110 | D6 D7 5A A1 13 27 58 D9 15 59 5E 75 C5 88 45 69
|
||||
0120 | AE F2 03 7E F1 86 57 81 26 3A 00 C9 F8 1A D6 CD
|
||||
0130 | EB 8D AB 60 25 53 06 53 DA 65 CF 6E 7F CB 8C FF
|
||||
0140 | 31 62 59 B7 38 BD 6F 42 8F 1B AD C2 24 D8 6F DB
|
||||
0150 | 61 D6 11 E5 6B 6C E4 4C F0 23 96 4E 09 29 39 FE
|
||||
0160 | A4 79 82 53 26 03 46 AF 10 2F 1A 15 F2 B5 C6 9D
|
||||
0170 | 52 AC C4 92 52 22 83 C0 CE 86 1A B0 79 CB 0A 4E
|
||||
0180 | 70 66 8E A3 79 6D 84 FA CA 62 74 EE</code></pre>
|
||||
<p>Payload (de)serialization:</p>
|
||||
<pre><code>set_client_DH_params#f5045f1f nonce:int128 server_nonce:int128 encrypted_data:string = Set_client_DH_params_answer;</code></pre>
|
||||
<table class="table">
|
||||
|
@ -746,7 +746,7 @@ encrypted_data := AES256_ige_encrypt (data_with_hash, tmp_aes_key, tmp_aes_iv);<
|
|||
<tr>
|
||||
<td>message_id</td>
|
||||
<td>8, 8</td>
|
||||
<td><code>30E7060001BB3A65</code></td>
|
||||
<td><code>F009090064904F65</code></td>
|
||||
<td>Message ID generated as specified <a href="/mtproto/description#message-identifier-msg-id">here »</a> (unixtime() << 32) + (N*4)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -764,19 +764,19 @@ encrypted_data := AES256_ige_encrypt (data_with_hash, tmp_aes_key, tmp_aes_iv);<
|
|||
<tr>
|
||||
<td>nonce</td>
|
||||
<td>24, 16</td>
|
||||
<td><code>43FE8B3BA64AAA94F02039D55E62388C</code></td>
|
||||
<td><code>C37C0E95D84F2EFED7E8CE0904ABCDD8</code></td>
|
||||
<td>Value generated by client in Step 1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>server_nonce</td>
|
||||
<td>40, 16</td>
|
||||
<td><code>AA919A9837CA9A0B67B51BBAC67DFE85</code></td>
|
||||
<td><code>97B8B76152BA6B70A629349B02222FA1</code></td>
|
||||
<td>Value received from server in Step 2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>encrypted_data</td>
|
||||
<td>56, 340</td>
|
||||
<td><code>FE500100FFD817C837DF7E095D069EB0</code> <code>F61720391C9248546CF06942A0211F7C</code> <code>845798E2583182FB568AFEA3CA203BEC</code> <code>61A757FFBC40896F3A8E3E810477B41A</code> <code>3AA06D237AEB105D7AAF4049207F4F4B</code> <code>22EB68F8309D4877184A5B8B42566D4B</code> <code>D90B903EE70CE66102CD4F401D9ED38E</code> <code>DC960B6BFD9D8D55DDBBBC47069D6335</code> <code>960BE2EB16E4589DA47CE416D6066F96</code> <code>95EA648CF0F02793744C6ECC62C456DC</code> <code>BA21D721A7032F0372037509FDA1AB09</code> <code>927117037FCCE57E54F0543F5A5E395A</code> <code>2F432C7A34F17A2A38EAAD93574231DF</code> <code>204ECCCA7FD4CF5BA7CD28369F9DDDD9</code> <code>36F9965B1F1D1CDEF538B4C7F2574C7E</code> <code>4F65F8F724B538145E45D93298FBA446</code> <code>1A148345006CBDB1E10EFBE528F7BE13</code> <code>71E7E074BD088284E3F0B4B84D8CEDF3</code> <code>4419DC78F4B7805A55237E3E19D1C625</code> <code>BC61B0D527F92522D0ADD6EE8DDDB2F0</code> <code>840F769AA7BA506BBC992050CD3AF548</code><br> <code>124BE604</code></td>
|
||||
<td><code>FE500100D1086649532561DEDF3D4A70</code> <code>1A4001B60744335FABB19AB8EF47F9B3</code> <code>19F5F1E8A49056ECC858305FEDA3AF3F</code> <code>021960AF7F141554A5AAEAA4DE2CFB2C</code> <code>C8B37085B17165A1C93050F446622EF4</code> <code>2CB5D71F4C13C446B3C912CAA77DDEB1</code> <code>6AD3E784CC58F47062F651EBA7B987A1</code> <code>3C7D2F16393B64E02EBC19B39392DAE2</code> <code>65D78A98554BC2E5EBAD07DCFD28DF88</code> <code>0044234A99A394E46DC030AD2EAF6484</code> <code>FCD80163C2A613AC1847283CB0CCBBB7</code> <code>553424C6A90B361D279FB66CF7138255</code> <code>3EE5FA0A46F921F3BF26D3D53DD288C9</code> <code>CCCC4A61FD8F6368D6D75AA1132758D9</code> <code>15595E75C5884569AEF2037EF1865781</code> <code>263A00C9F81AD6CDEB8DAB6025530653</code> <code>DA65CF6E7FCB8CFF316259B738BD6F42</code> <code>8F1BADC224D86FDB61D611E56B6CE44C</code> <code>F023964E092939FEA4798253260346AF</code> <code>102F1A15F2B5C69D52ACC492522283C0</code> <code>CE861AB079CB0A4E70668EA3796D84FA</code><br> <code>CA6274EE</code></td>
|
||||
<td>Encrypted client_DH_inner_data generated previously, serialized as a TL byte string</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -785,17 +785,17 @@ encrypted_data := AES256_ige_encrypt (data_with_hash, tmp_aes_key, tmp_aes_iv);<
|
|||
<h5><a class="anchor" href="#8-auth-key-generation" id="8-auth-key-generation" name="8-auth-key-generation"><i class="anchor-icon"></i></a>8) Auth key generation</h5>
|
||||
<p>The client computes the auth_key using formula <code>g_a^b mod dh_prime</code>:</p>
|
||||
<!-- start auth_key -->
|
||||
<pre><code>auth_key = C16FF603A488B8B9703763755643508071955FAD470B9B870456635CB789FFC3F5052CDBC0C538DDCD59527143C54A64DE9DA6C58CED3344E222DB84535A63B1F147457704F9B810C3946E71A507BE0ED95CB81ABF33043CD48EB988C308B85DDE70FE4667781B302EC74DF31DCDB7FCB2B530A39B86FE49786C356CED4FCB27A039C5F0CF9D14B0499F172BCDFBAA265A122B4C476218A2085F45E1762AF023F49E59F8FA6F5B6B0AB235C4FC1D6D6E10E3903BD3CB6D6F5EF9DBD0131F6022CF9AA5E9E58A63506E334F8D21CAB678C802412D564AD699C82893911CFB021950CFD6734478A445D268FC8DCFBF95068E064BAF0B5F7E495EB88B5DBC80808F</code></pre>
|
||||
<pre><code>auth_key = 0FC7E0DFBCB21E0EE679C03553B9A5718219AC9C60051FF5B7CE5845033C2442C690EEA49899986341FC025DBCFC0FF9B881E0A4C71BE1F1D9E5F12138282768CEC5D60BE5540D773A9476C38BBFB36AAB911E2E5CAC88DD0560E4723338BC90A5860B5FB92318BBF8595F6D979BE26051833578C3FD18B1E7649FE2123A6F4D8BC6838F8274EA2D5BA0EB5FB338517D89B5185B7EB510ADA875FAB40CF511A8FEE37CF005D839909DAC532D0C9E70F2A42186444E4659125433111062BDFD68EBEE3F6600684E7E54531797066860BBA1AAFA24D4594FBDA14A9022FA6F58BEB6221783B8FF061484D9CC31E71CA6DFBC22D0803C9F1B840E420BF9DEF733D9</code></pre>
|
||||
<!-- end auth_key -->
|
||||
<h5><a class="anchor" href="#9-final-server-reply" id="9-final-server-reply" name="9-final-server-reply"><i class="anchor-icon"></i></a>9) Final server reply</h5>
|
||||
<p>The server verifies and confirms that auth_key_hash is unique: since it's unique, it replies with the following:</p>
|
||||
<!-- start dh_gen_ok -->
|
||||
<p>Received payload (excluding transport headers/trailers):</p>
|
||||
<pre><code>0000 | 00 00 00 00 00 00 00 00 01 90 E8 40 FE BA 3A 65
|
||||
0010 | 90 00 00 00 34 F7 CB 3B 43 FE 8B 3B A6 4A AA 94
|
||||
0020 | F0 20 39 D5 5E 62 38 8C AA 91 9A 98 37 CA 9A 0B
|
||||
0030 | 67 B5 1B BA C6 7D FE 85 99 8D 45 B9 A5 F7 7F D5
|
||||
0040 | D4 3E 1B 7A BA 8C 47 29</code></pre>
|
||||
<pre><code>0000 | 00 00 00 00 00 00 00 00 01 3C 6C C3 64 90 4F 65
|
||||
0010 | 34 00 00 00 34 F7 CB 3B C3 7C 0E 95 D8 4F 2E FE
|
||||
0020 | D7 E8 CE 09 04 AB CD D8 97 B8 B7 61 52 BA 6B 70
|
||||
0030 | A6 29 34 9B 02 22 2F A1 27 77 0D 6F 63 9A 29 45
|
||||
0040 | 59 8B D2 BA C0 AC 0D DA</code></pre>
|
||||
<p>Payload (de)serialization:</p>
|
||||
<pre><code>dh_gen_ok#3bcbf734 nonce:int128 server_nonce:int128 new_nonce_hash1:int128 = Set_client_DH_params_answer;</code></pre>
|
||||
<table class="table">
|
||||
|
@ -817,13 +817,13 @@ encrypted_data := AES256_ige_encrypt (data_with_hash, tmp_aes_key, tmp_aes_iv);<
|
|||
<tr>
|
||||
<td>message_id</td>
|
||||
<td>8, 8</td>
|
||||
<td><code>0190E840FEBA3A65</code></td>
|
||||
<td><code>013C6CC364904F65</code></td>
|
||||
<td>Message ID generated as specified <a href="/mtproto/description#message-identifier-msg-id">here »</a> (unixtime() << 32) + (N*4)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>message_length</td>
|
||||
<td>16, 4</td>
|
||||
<td><code>90000000</code> (144 in decimal)</td>
|
||||
<td><code>34000000</code> (52 in decimal)</td>
|
||||
<td>Message body length</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -835,19 +835,19 @@ encrypted_data := AES256_ige_encrypt (data_with_hash, tmp_aes_key, tmp_aes_iv);<
|
|||
<tr>
|
||||
<td>nonce</td>
|
||||
<td>24, 16</td>
|
||||
<td><code>43FE8B3BA64AAA94F02039D55E62388C</code></td>
|
||||
<td><code>C37C0E95D84F2EFED7E8CE0904ABCDD8</code></td>
|
||||
<td>Value generated by client in Step 1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>server_nonce</td>
|
||||
<td>40, 16</td>
|
||||
<td><code>AA919A9837CA9A0B67B51BBAC67DFE85</code></td>
|
||||
<td><code>97B8B76152BA6B70A629349B02222FA1</code></td>
|
||||
<td>Value received from server in Step 2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>new_nonce_hash1</td>
|
||||
<td>56, 16</td>
|
||||
<td><code>998D45B9A5F77FD5D43E1B7ABA8C4729</code></td>
|
||||
<td><code>27770D6F639A2945598BD2BAC0AC0DDA</code></td>
|
||||
<td>The 128 lower-order bits of SHA1 of the byte string derived from the <code>new_nonce</code> string by adding a single byte with the value of 1, 2, or 3, and followed by another 8 bytes with <code>auth_key_aux_hash</code>. Different values are required to prevent an intruder from changing server response dh_gen_ok into dh_gen_retry.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
|
@ -845,11 +845,11 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/stories.togglePeerStoriesHidden">stories.togglePeerStoriesHidden</a></td>
|
||||
<td> </td>
|
||||
<td>Hide the active stories of a user, preventing them from being displayed on the action bar on the homescreen, see <a href="/api/stories#hiding-stories-of-other-users">here »</a> for more info.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/stories.applyBoost">stories.applyBoost</a></td>
|
||||
<td><a href="/api/stories#boosts">Boost »</a> a <a href="/api/channel">channel</a>, leveling it up and granting it permission to post <a href="/api/stories">stories »</a>.</td>
|
||||
<td><a href="/api/boost">Boost »</a> a <a href="/api/channel">channel</a>, leveling it up and granting it permission to post <a href="/api/stories">stories »</a>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
|
|
|
@ -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="/type/Booster" >Booster</a></li></ul></div>
|
||||
<h1 id="dev_page_title">Booster</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Info about a <a href="/api/stories#boosts">boost</a> made by a specific user.</p>
|
||||
<div id="dev_page_content"><p>Info about a <a href="/api/boost">boost</a> made by a specific user.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -67,13 +67,13 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/constructor/booster">booster</a></td>
|
||||
<td>Info about a <a href="/api/stories#boosts">boost</a> made by a specific user.</td>
|
||||
<td>Info about a <a href="/api/boost">boost</a> made by a specific user.</td>
|
||||
</tr>
|
||||
</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="#stories" id="stories" name="stories"><i class="anchor-icon"></i></a><a href="/api/stories">Stories</a></h4>
|
||||
<p>Telegram users and channels can easily post and view stories through the API.</p></div>
|
||||
<h4><a class="anchor" href="#channel-boosts" id="channel-boosts" name="channel-boosts"><i class="anchor-icon"></i></a><a href="/api/boost">Channel boosts</a></h4>
|
||||
<p>Telegram Premium users can grant their favorite channels additional features like the ability to post stories by giving them boosts.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@
|
|||
</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="#privacyrule" id="privacyrule" name="privacyrule"><i class="anchor-icon"></i></a><a href="/type/PrivacyRule">PrivacyRule</a></h4>
|
||||
<p>Privacy <strong>rules</strong> together with <a href="/api/privacy#privacy-rules">privacy</a> indicate <em>what</em> can or can't someone do and are specified by a <a href="/type/PrivacyKey">PrivacyKey</a> constructor, and its input counterpart <a href="/type/InputPrivacyKey">InputPrivacyKey</a>.</p>
|
||||
<p>Privacy <strong>rules</strong> together with <a href="/api/privacy#privacy-keys">privacy keys</a> indicate <em>what</em> can or can't someone do and are specified by a <a href="/type/PrivacyRule">PrivacyRule</a> constructor, and its input counterpart <a href="/type/InputPrivacyRule">InputPrivacyRule</a>.</p>
|
||||
<p>See the <a href="/api/privacy">privacy documentation »</a> for more info.</p>
|
||||
<h4><a class="anchor" href="#inputprivacyrule" id="inputprivacyrule" name="inputprivacyrule"><i class="anchor-icon"></i></a><a href="/type/InputPrivacyRule">InputPrivacyRule</a></h4>
|
||||
<p>Privacy <strong>rules</strong> indicate <em>who</em> can or can't do something and are specified by a <a href="/type/PrivacyRule">PrivacyRule</a>, and its input counterpart <a href="/type/InputPrivacyRule">InputPrivacyRule</a>.</p>
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>PrivacyRule</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Privacy rules together with privacy indicate what can or can't someone do and are specified by a PrivacyKey constructor, and its input counterpart InputPrivacyKey.">
|
||||
<meta property="description" content="Privacy rules together with privacy keys indicate what can or can't someone do and are specified by a PrivacyRule constructor, and its input counterpart InputPrivacyRule.">
|
||||
<meta property="og:title" content="PrivacyRule">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Privacy rules together with privacy indicate what can or can't someone do and are specified by a PrivacyKey constructor, and its input counterpart InputPrivacyKey.">
|
||||
<meta property="og:description" content="Privacy rules together with privacy keys indicate what can or can't someone do and are specified by a PrivacyRule constructor, and its input counterpart InputPrivacyRule.">
|
||||
<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">
|
||||
|
@ -115,11 +115,11 @@
|
|||
<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="#privacy" id="privacy" name="privacy"><i class="anchor-icon"></i></a><a href="/api/privacy">Privacy</a></h4>
|
||||
<p>Telegram allows users to specify granular privacy settings, choosing which users can or can't interact with them in certain ways.</p>
|
||||
<h4><a class="anchor" href="#privacykey" id="privacykey" name="privacykey"><i class="anchor-icon"></i></a><a href="/type/PrivacyKey">PrivacyKey</a></h4>
|
||||
<p>Privacy <strong>keys</strong> together with <a href="/api/privacy#privacy-rules">privacy rules »</a> indicate <em>what</em> can or can't someone do and are specified by a <a href="/type/PrivacyKey">PrivacyKey</a> constructor, and its input counterpart <a href="/type/InputPrivacyKey">InputPrivacyKey</a>.</p>
|
||||
<h4><a class="anchor" href="#privacyrule" id="privacyrule" name="privacyrule"><i class="anchor-icon"></i></a><a href="/type/PrivacyRule">PrivacyRule</a></h4>
|
||||
<p>Privacy <strong>rules</strong> together with <a href="/api/privacy#privacy-keys">privacy keys</a> indicate <em>what</em> can or can't someone do and are specified by a <a href="/type/PrivacyRule">PrivacyRule</a> constructor, and its input counterpart <a href="/type/InputPrivacyRule">InputPrivacyRule</a>.</p>
|
||||
<p>See the <a href="/api/privacy">privacy documentation »</a> for more info.</p>
|
||||
<h4><a class="anchor" href="#inputprivacykey" id="inputprivacykey" name="inputprivacykey"><i class="anchor-icon"></i></a><a href="/type/InputPrivacyKey">InputPrivacyKey</a></h4>
|
||||
<p>Privacy <strong>keys</strong> together with <a href="/api/privacy#privacy-rules">privacy rules »</a> indicate <em>what</em> can or can't someone do and are specified by a <a href="/type/PrivacyKey">PrivacyKey</a> constructor, and its input counterpart <a href="/type/InputPrivacyKey">InputPrivacyKey</a>.</p>
|
||||
<h4><a class="anchor" href="#inputprivacyrule" id="inputprivacyrule" name="inputprivacyrule"><i class="anchor-icon"></i></a><a href="/type/InputPrivacyRule">InputPrivacyRule</a></h4>
|
||||
<p>Privacy <strong>rules</strong> indicate <em>who</em> can or can't do something and are specified by a <a href="/type/PrivacyRule">PrivacyRule</a>, and its input counterpart <a href="/type/InputPrivacyRule">InputPrivacyRule</a>.</p>
|
||||
<p>See the <a href="/api/privacy">privacy documentation »</a> for more info.</p></div>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -631,7 +631,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td><a href="/constructor/updateStory">updateStory</a></td>
|
||||
<td> </td>
|
||||
<td>A new story was posted.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/constructor/updateReadStories">updateReadStories</a></td>
|
||||
|
@ -647,7 +647,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td><a href="/constructor/updateSentStoryReaction">updateSentStoryReaction</a></td>
|
||||
<td> </td>
|
||||
<td>Indicates we <a href="/api/stories#reactions">reacted to a story »</a>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
|
|
|
@ -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="/type/stories.BoostersList" >stories.BoostersList</a></li></ul></div>
|
||||
<h1 id="dev_page_title">stories.BoostersList</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Info about the users currently <a href="/api/stories#boosts">boosting</a> the channel.</p>
|
||||
<div id="dev_page_content"><p>Info about the users currently <a href="/api/boost">boosting</a> the channel.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -71,7 +71,7 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/constructor/stories.boostersList">stories.boostersList</a></td>
|
||||
<td>Info about the users currently <a href="/api/stories#boosts">boosting</a> the channel.</td>
|
||||
<td>Info about the users currently <a href="/api/boost">boosting</a> the channel.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -86,13 +86,13 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/method/stories.getBoostersList">stories.getBoostersList</a></td>
|
||||
<td>Obtain info about the users currently <a href="/api/stories#boosts">boosting</a> a channel, see <a href="/api/stories#boosts">here »</a> for more info about boosts.</td>
|
||||
<td>Obtain info about the users currently <a href="/api/boost">boosting</a> a channel, see <a href="/api/boost">here »</a> for more info about boosts.</td>
|
||||
</tr>
|
||||
</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="#stories" id="stories" name="stories"><i class="anchor-icon"></i></a><a href="/api/stories">Stories</a></h4>
|
||||
<p>Telegram users and channels can easily post and view stories through the API.</p></div>
|
||||
<h4><a class="anchor" href="#channel-boosts" id="channel-boosts" name="channel-boosts"><i class="anchor-icon"></i></a><a href="/api/boost">Channel boosts</a></h4>
|
||||
<p><a href="/api/premium">Telegram Premium</a> users can grant their favorite channels additional features like the ability to post <a href="/api/stories">stories</a> by giving them <strong>boosts</strong>.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -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="/type/stories.BoostsStatus" >stories.BoostsStatus</a></li></ul></div>
|
||||
<h1 id="dev_page_title">stories.BoostsStatus</h1>
|
||||
|
||||
<div id="dev_page_content"><p>The current <a href="/api/stories#boosts">boost status »</a> of a channel.</p>
|
||||
<div id="dev_page_content"><p>The current <a href="/api/boost">boost status »</a> of a channel.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -71,7 +71,7 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/constructor/stories.boostsStatus">stories.boostsStatus</a></td>
|
||||
<td>The current <a href="/api/stories#boosts">boost status »</a> of a channel.</td>
|
||||
<td>The current <a href="/api/boost">boost status »</a> of a channel.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -86,13 +86,13 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/method/stories.getBoostsStatus">stories.getBoostsStatus</a></td>
|
||||
<td>Get the current <a href="/api/stories#boosts">boost status</a> of a channel, see <a href="/api/stories#boosts">here »</a> for more info on boosts.</td>
|
||||
<td>Get the current <a href="/api/boost">boost status</a> of a channel, see <a href="/api/boost">here »</a> for more info on boosts.</td>
|
||||
</tr>
|
||||
</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="#stories" id="stories" name="stories"><i class="anchor-icon"></i></a><a href="/api/stories">Stories</a></h4>
|
||||
<p>Telegram users and channels can easily post and view stories through the API.</p></div>
|
||||
<h4><a class="anchor" href="#channel-boosts" id="channel-boosts" name="channel-boosts"><i class="anchor-icon"></i></a><a href="/api/boost">Channel boosts</a></h4>
|
||||
<p><a href="/api/premium">Telegram Premium</a> users can grant their favorite channels additional features like the ability to post <a href="/api/stories">stories</a> by giving them <strong>boosts</strong>.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -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="/type/stories.CanApplyBoostResult" >stories.CanApplyBoostResult</a></li></ul></div>
|
||||
<h1 id="dev_page_title">stories.CanApplyBoostResult</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Whether the specified channel can be <a href="/api/stories#boosts">boosted, see here for more info »</a>.</p>
|
||||
<div id="dev_page_content"><p>Whether the specified channel can be <a href="/api/boost">boosted, see here for more info »</a>.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -91,13 +91,13 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/method/stories.canApplyBoost">stories.canApplyBoost</a></td>
|
||||
<td>Check whether a channel can be <a href="/api/stories#boosts">boosted, see here for more info »</a>.</td>
|
||||
<td>Check whether a channel can be <a href="/api/boost">boosted, see here for more info »</a>.</td>
|
||||
</tr>
|
||||
</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="#stories" id="stories" name="stories"><i class="anchor-icon"></i></a><a href="/api/stories">Stories</a></h4>
|
||||
<p>Telegram users and channels can easily post and view stories through the API.</p></div>
|
||||
<h4><a class="anchor" href="#channel-boosts" id="channel-boosts" name="channel-boosts"><i class="anchor-icon"></i></a><a href="/api/boost">Channel boosts</a></h4>
|
||||
<p>Telegram Premium users can grant their favorite channels additional features like the ability to post stories by giving them boosts.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue