mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-01-20 16:15:08 +01:00
Update content of files
This commit is contained in:
parent
02540787cb
commit
ed31438e0d
9 changed files with 45 additions and 60 deletions
|
@ -118,9 +118,9 @@
|
|||
<h4><a class="anchor" href="#schema-changes" id="schema-changes" name="schema-changes"><i class="anchor-icon"></i></a>Schema changes</h4>
|
||||
<h5><a class="anchor" href="#new-methods" id="new-methods" name="new-methods"><i class="anchor-icon"></i></a>New Methods</h5>
|
||||
<ul>
|
||||
<li>Added <a href="/method/stories.getStoryReactionsList">stories.getStoryReactionsList</a> - </li>
|
||||
<li>Added <a href="/method/channels.updateEmojiStatus">channels.updateEmojiStatus</a> - </li>
|
||||
<li>Added <a href="/method/account.getChannelDefaultEmojiStatuses">account.getChannelDefaultEmojiStatuses</a> - </li>
|
||||
<li>Added <a href="/method/stories.getStoryReactionsList">stories.getStoryReactionsList</a> - Get the <a href="/api/reactions">reaction</a> list of a <a href="/api/stories">story</a> posted to a channel, along with the sender of each reaction.</li>
|
||||
<li>Added <a href="/method/channels.updateEmojiStatus">channels.updateEmojiStatus</a> - Set an <a href="/api/emoji-status">emoji status</a> for a channel.</li>
|
||||
<li>Added <a href="/method/account.getChannelDefaultEmojiStatuses">account.getChannelDefaultEmojiStatuses</a> - Get a list of default suggested <a href="/api/emoji-status">channel emoji statuses</a>.</li>
|
||||
<li>Added <a href="/method/account.getChannelRestrictedStatusEmojis">account.getChannelRestrictedStatusEmojis</a> - Returns fetch the full list of <a href="/api/custom-emoji">custom emoji IDs »</a> that cannot be used in <a href="/api/emoji-status">channel emoji statuses »</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>
|
||||
|
|
|
@ -297,15 +297,27 @@ Note that this should be done transparently in a map UI, not in the usual inline
|
|||
|
||||
<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>;
|
||||
|
||||
<a href='/constructor/storyReaction'>storyReaction</a>#6090d6d5 peer_id:<a href='/type/Peer'>Peer</a> date:<a href='/type/int'>int</a> reaction:<a href='/type/Reaction'>Reaction</a> = <a href='/type/StoryReaction'>StoryReaction</a>;
|
||||
|
||||
<a href='/constructor/stories.storyViewsList'>stories.storyViewsList</a>#59d78fc5 flags:<a href='/type/%23'>#</a> count:<a href='/type/int'>int</a> views_count:<a href='/type/int'>int</a> forwards_count:<a href='/type/int'>int</a> reactions_count:<a href='/type/int'>int</a> views:<a href='/type/Vector%20t'>Vector</a><<a href='/type/StoryView'>StoryView</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>> next_offset:flags.0?<a href='/type/string'>string</a> = <a href='/type/stories.StoryViewsList'>stories.StoryViewsList</a>;
|
||||
|
||||
<a href='/constructor/stories.storyReactionsList'>stories.storyReactionsList</a>#aa5f789c flags:<a href='/type/%23'>#</a> count:<a href='/type/int'>int</a> reactions:<a href='/type/Vector%20t'>Vector</a><<a href='/type/StoryReaction'>StoryReaction</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>> next_offset:flags.0?<a href='/type/string'>string</a> = <a href='/type/stories.StoryReactionsList'>stories.StoryReactionsList</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>
|
||||
<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>;
|
||||
|
||||
<a href='/method/stories.getStoryViewsList'>stories.getStoryViewsList</a>#7ed23c57 flags:<a href='/type/%23'>#</a> just_contacts:flags.0?<a href='/constructor/true'>true</a> reactions_first:flags.2?<a href='/constructor/true'>true</a> forwards_first:flags.3?<a href='/constructor/true'>true</a> peer:<a href='/type/InputPeer'>InputPeer</a> q:flags.1?<a href='/type/string'>string</a> id:<a href='/type/int'>int</a> offset:<a href='/type/string'>string</a> limit:<a href='/type/int'>int</a> = <a href='/type/stories.StoryViewsList'>stories.StoryViewsList</a>;
|
||||
|
||||
<a href='/method/stories.getStoryReactionsList'>stories.getStoryReactionsList</a>#b9b2881f flags:<a href='/type/%23'>#</a> forwards_first:flags.2?<a href='/constructor/true'>true</a> peer:<a href='/type/InputPeer'>InputPeer</a> id:<a href='/type/int'>int</a> reaction:flags.0?<a href='/type/Reaction'>Reaction</a> offset:flags.1?<a href='/type/string'>string</a> limit:<a href='/type/int'>int</a> = <a href='/type/stories.StoryReactionsList'>stories.StoryReactionsList</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 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>
|
||||
<p>To get the reaction list of a <a href="/api/stories">story</a> posted as a user, use <a href="/method/stories.getStoryViewsList">stories.getStoryViewsList</a>, see <a href="#fetching-the-viewer-list">here »</a> for more info on how to use the method.<br>
|
||||
To get the reaction list of a <a href="/api/stories">story</a> posted as a channel, use <a href="/method/stories.getStoryReactionsList">stories.getStoryReactionsList</a>, see <a href="#fetching-the-viewer-list">here »</a> for more info on how to use the method (the parameters and behavior is pretty much the same as for <a href="/method/stories.getStoryViewsList">stories.getStoryViewsList</a>, the only difference is that the viewer list cannot be fetched with it). </p>
|
||||
<h3><a class="anchor" href="#stealth-mode" id="stealth-mode" name="stealth-mode"><i class="anchor-icon"></i></a>Stealth mode</h3>
|
||||
<p><a href="/api/premium">Premium users</a> may enable <a href="https://telegram.org/tour/stories#stealth-mode">stealth mode</a>, erasing their views from any stories they opened in the past <a href="/api/config#stories-stealth-past-period"><code>stories_stealth_past_period</code> seconds »</a>, and hiding their views on stories for the next <a href="/api/config#stories-stealth-future-period"><code>stories_stealth_future_period</code> seconds »</a>, as specified by the <a href="/api/config#client-configuration">client configuration »</a>.</p>
|
||||
<p>Schema:</p>
|
||||
|
|
|
@ -4,24 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>account.getChannelDefaultEmojiStatuses</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Get a list of default suggested channel emoji statuses.
|
||||
Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
hash
|
||||
long
|
||||
Hash for pagination,…">
|
||||
<meta property="description" content="Get a list of default suggested channel emoji statuses.">
|
||||
<meta property="og:title" content="account.getChannelDefaultEmojiStatuses">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Get a list of default suggested channel emoji statuses.
|
||||
Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
hash
|
||||
long
|
||||
Hash for pagination,…">
|
||||
<meta property="og:description" content="Get a list of default suggested channel emoji statuses.">
|
||||
<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">
|
||||
|
@ -95,7 +81,9 @@ Hash for pagination,…">
|
|||
<h3><a class="anchor" href="#bots-can-use-this-method" id="bots-can-use-this-method" name="bots-can-use-this-method"><i class="anchor-icon"></i></a>Bots can use this method</h3>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#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></div>
|
||||
<p>How to fetch results from large lists of objects.</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>
|
||||
<p>Telegram allows users to set an emoticon or a custom emoji as status, to show next to their name in chats and profiles.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@
|
|||
<tr>
|
||||
<td><strong>for_profile</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.1?<a href="/constructor/true">true</a></td>
|
||||
<td> </td>
|
||||
<td>Whether to change the accent color emoji pattern of the profile page; otherwise, the accent color and emoji pattern of messages will be changed.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>channel</strong></td>
|
||||
|
|
|
@ -4,32 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>stories.getStoryReactionsList</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
flags
|
||||
#
|
||||
Flags, see TL conditional fields
|
||||
forwards_first
|
||||
flags.2?true
|
||||
|
||||
peer
|
||||
InputPeer…">
|
||||
<meta property="description" content="Get the reaction list of a story posted to a channel, along with the sender of each reaction. Can only be used by channel admins.">
|
||||
<meta property="og:title" content="stories.getStoryReactionsList">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
flags
|
||||
#
|
||||
Flags, see TL conditional fields
|
||||
forwards_first
|
||||
flags.2?true
|
||||
|
||||
peer
|
||||
InputPeer…">
|
||||
<meta property="og:description" content="Get the reaction list of a story posted to a channel, along with the sender of each reaction. Can only be used by channel admins.">
|
||||
<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,9 @@ InputPeer…">
|
|||
<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.getStoryReactionsList" >stories.getStoryReactionsList</a></li></ul></div>
|
||||
<h1 id="dev_page_title">stories.getStoryReactionsList</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Get the <a href="/api/reactions">reaction</a> list of a <a href="/api/stories">story</a> posted to a channel, along with the sender of each reaction.</p>
|
||||
<p>Can only be used by channel admins.</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 170 <b class="caret"></b></a>
|
||||
|
@ -97,27 +77,27 @@ InputPeer…">
|
|||
<tr>
|
||||
<td><strong>forwards_first</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.2?<a href="/constructor/true">true</a></td>
|
||||
<td> </td>
|
||||
<td>If set, returns forwards and reposts first, then reactions, then other views; otherwise returns interactions sorted just by interaction date.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>peer</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/InputPeer">InputPeer</a></td>
|
||||
<td> </td>
|
||||
<td>Channel</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td> </td>
|
||||
<td><a href="/api/stories">Story</a> ID</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>reaction</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.0?<a href="/type/Reaction">Reaction</a></td>
|
||||
<td> </td>
|
||||
<td>Get only reactions of this type</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>offset</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.1?<a href="/type/string">string</a></td>
|
||||
<td> </td>
|
||||
<td>Offset for pagination (taken from the <code>next_offset</code> field of the returned <a href="/type/stories.StoryReactionsList">stories.StoryReactionsList</a>); empty in the first request.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>limit</strong></td>
|
||||
|
@ -130,8 +110,13 @@ InputPeer…">
|
|||
<p><a href="/type/stories.StoryReactionsList">stories.StoryReactionsList</a></p>
|
||||
<h3><a class="anchor" href="#bots-can-use-this-method" id="bots-can-use-this-method" name="bots-can-use-this-method"><i class="anchor-icon"></i></a>Bots can use this method</h3>
|
||||
<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="#storiesstoryreactionslist" id="storiesstoryreactionslist" name="storiesstoryreactionslist"><i class="anchor-icon"></i></a><a href="/type/stories.StoryReactionsList">stories.StoryReactionsList</a></h4>
|
||||
<h4><a class="anchor" href="#pagination-in-the-api" id="pagination-in-the-api" name="pagination-in-the-api"><i class="anchor-icon"></i></a><a href="/api/offsets">Pagination in the API</a></h4>
|
||||
<p>How to fetch results from large lists of objects.</p></div>
|
||||
<p>How to fetch results from large lists of objects.</p>
|
||||
<h4><a class="anchor" href="#message-reactions" id="message-reactions" name="message-reactions"><i class="anchor-icon"></i></a><a href="/api/reactions">Message reactions</a></h4>
|
||||
<p>Telegram allows users to react on any message using specific emojis, triggering cute lottie animations.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -81,12 +81,12 @@
|
|||
<tr>
|
||||
<td><strong>reactions_first</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.2?<a href="/constructor/true">true</a></td>
|
||||
<td>Whether to return <a href="/constructor/storyView">storyView</a> info about users that reacted to the story (i.e. if set, the server will first sort results by view date as usual, and then also additionally sort the list by putting <a href="/constructor/storyView">storyView</a>s with an associated reaction first in the list).</td>
|
||||
<td>Whether to return <a href="/constructor/storyView">storyView</a> info about users that reacted to the story (i.e. if set, the server will first sort results by view date as usual, and then also additionally sort the list by putting <a href="/constructor/storyView">storyView</a>s with an associated reaction first in the list). Ignored if <code>forwards_first</code> is set.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>forwards_first</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.3?<a href="/constructor/true">true</a></td>
|
||||
<td> </td>
|
||||
<td>If set, returns forwards and reposts first, then reactions, then other views; otherwise returns interactions sorted just by interaction date.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>peer</strong></td>
|
||||
|
|
|
@ -3111,15 +3111,15 @@ Look for updates of telegram's terms of service…">
|
|||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/method/stories.getStoryReactionsList">stories.getStoryReactionsList</a></td>
|
||||
<td> </td>
|
||||
<td>Get the <a href="/api/reactions">reaction</a> list of a <a href="/api/stories">story</a> posted to a channel, along with the sender of each reaction.<br><br>Can only be used by channel admins.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/channels.updateEmojiStatus">channels.updateEmojiStatus</a></td>
|
||||
<td> </td>
|
||||
<td>Set an <a href="/api/emoji-status">emoji status</a> for a channel.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/account.getChannelDefaultEmojiStatuses">account.getChannelDefaultEmojiStatuses</a></td>
|
||||
<td> </td>
|
||||
<td>Get a list of default suggested <a href="/api/emoji-status">channel emoji statuses</a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/account.getChannelRestrictedStatusEmojis">account.getChannelRestrictedStatusEmojis</a></td>
|
||||
|
|
|
@ -605,7 +605,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/channels.updateEmojiStatus">channels.updateEmojiStatus</a></td>
|
||||
<td> </td>
|
||||
<td>Set an <a href="/api/emoji-status">emoji status</a> for a channel.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
|
|
|
@ -101,7 +101,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/account.getChannelDefaultEmojiStatuses">account.getChannelDefaultEmojiStatuses</a></td>
|
||||
<td> </td>
|
||||
<td>Get a list of default suggested <a href="/api/emoji-status">channel emoji statuses</a>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue