mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-01-16 06:40:42 +01:00
Update content of files
This commit is contained in:
parent
993dfa7611
commit
ad862bdd54
4 changed files with 7 additions and 5 deletions
|
@ -55,10 +55,11 @@
|
|||
|
||||
<a href='/method/messages.getCustomEmojiDocuments'>messages.getCustomEmojiDocuments</a>#d9ab0f54 document_id:<a href='/type/Vector%20t'>Vector</a><<a href='/type/long'>long</a>> = <a href='/type/Vector%20t'>Vector</a><<a href='/type/Document'>Document</a>>;</code></pre>
|
||||
<p>Custom emojis are a special kind of <a href="/api/entities">entity »</a>, containing just a <code>document_id</code>, which can be passed to <a href="/method/messages.getCustomEmojiDocuments">messages.getCustomEmojiDocuments</a> to fetch the <a href="/api/stickers">static, animated or video sticker emoji</a> that should be displayed to the user as described in the <a href="/api/stickers">stickers documentation</a>. </p>
|
||||
<p>Custom emoji documents will contain <a href="/constructor/documentAttributeCustomEmoji">documentAttributeCustomEmoji</a> attribute instead of a <a href="/constructor/documentAttributeSticker">documentAttributeSticker</a>, containing information on the associated emoji, whether the emoji can be used by non-premium users (<code>free</code>) and the associated <code>stickerset</code>.</p>
|
||||
<p>Custom emoji documents will contain <a href="/constructor/documentAttributeCustomEmoji">documentAttributeCustomEmoji</a> attribute instead of a <a href="/constructor/documentAttributeSticker">documentAttributeSticker</a>, containing information on the associated emoji (<code>alt</code>), whether the emoji can be used by non-premium users (<code>free</code>) and the associated <code>stickerset</code>.</p>
|
||||
<p>Note that when sending messages with attached custom emojis, the <a href="/constructor/messageEntityCustomEmoji">messageEntityCustomEmoji</a> <a href="/api/entities">entity »</a> must wrap exactly one regular emoji (the one contained in <a href="/constructor/documentAttributeCustomEmoji">documentAttributeCustomEmoji</a>.<code>alt</code>) in the related text, otherwise the server will ignore it. </p>
|
||||
<p>Like stickers, custom emojis are organized in <a href="/api/stickers#stickersets">stickersets</a>: see the <a href="/api/stickers">stickers documentation »</a> for more info on how to work with them.</p>
|
||||
<p>To send a message with one or more custom emojis, create and attach <a href="/constructor/messageEntityCustomEmoji">messageEntityCustomEmoji</a> <a href="/api/entities">entities »</a> to a message.<br>
|
||||
Note that you can attach a maximum of <code>message_animated_emoji_max</code> custom emojis, as specified by the <a href="/api/config#message-animated-emoji-max">appConfig field »</a>. </p></div>
|
||||
Note that you can attach a maximum of <code>message_animated_emoji_max</code> custom emojis, as specified by the <a href="/api/config#message-animated-emoji-max">appConfig field »</a>.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -135,7 +135,7 @@ The set <a href="/type/ChatReactions">ChatReactions</a> constructor can then be
|
|||
|
||||
<a href='/method/messages.sendReaction'>messages.sendReaction</a>#d30d78d4 flags:<a href='/type/%23'>#</a> big:flags.1?<a href='/constructor/true'>true</a> add_to_recent:flags.2?<a href='/constructor/true'>true</a> peer:<a href='/type/InputPeer'>InputPeer</a> msg_id:<a href='/type/int'>int</a> reaction:flags.0?<a href='/type/Vector%20t'>Vector</a><<a href='/type/Reaction'>Reaction</a>> = <a href='/type/Updates'>Updates</a>;</code></pre>
|
||||
<p>Recently used reactions can be fetched using <a href="/method/messages.getRecentReactions">messages.getRecentReactions</a>: the list can be cleared using <a href="/method/messages.clearRecentReactions">messages.clearRecentReactions</a>.<br>
|
||||
Users will receive an <a href="/constructor/updateRecentReactions">updateRecentReactions</a> update when the recent reaction list changes due to a call to <a href="/method/messages.sendReaction">messages.sendReaction</a> with the <code>add_to_recent</code> flag set: this updated should trigger a new call to <a href="/method/messages.getRecentReactions">messages.getRecentReactions</a> to refresh the locally cached list. </p>
|
||||
The <code>add_to_recent</code> flag of <a href="/method/messages.sendReaction">messages.sendReaction</a> must be set iff the user reacts to a message using the extended reactions menu (as opposed to the reaction bubble): this will update the recent reaction list, triggering an <a href="/constructor/updateRecentReactions">updateRecentReactions</a> update on other logged-in sessions: this update should trigger a new call to <a href="/method/messages.getRecentReactions">messages.getRecentReactions</a> to refresh the locally cached list. </p>
|
||||
<h3><a class="anchor" href="#featured-reactions" id="featured-reactions" name="featured-reactions"><i class="anchor-icon"></i></a>Featured reactions</h3>
|
||||
<pre><code><a href='/constructor/reactionEmoji'>reactionEmoji</a>#1b2286b8 emoticon:<a href='/type/string'>string</a> = <a href='/type/Reaction'>Reaction</a>;
|
||||
<a href='/constructor/reactionCustomEmoji'>reactionCustomEmoji</a>#8935fc73 document_id:<a href='/type/long'>long</a> = <a href='/type/Reaction'>Reaction</a>;
|
||||
|
|
|
@ -42,7 +42,8 @@
|
|||
<div class="dev_page_bread_crumbs"><ul class="breadcrumb clearfix"><li><a href="/api" >API</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/messageEntityCustomEmoji" >messageEntityCustomEmoji</a></li></ul></div>
|
||||
<h1 id="dev_page_title">messageEntityCustomEmoji</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Represents a custom emoji</p>
|
||||
<div id="dev_page_content"><p>Represents a custom emoji.<br>
|
||||
Note that this entity must wrap exactly one regular emoji (the one contained in <a href="/constructor/documentAttributeCustomEmoji">documentAttributeCustomEmoji</a>.<code>alt</code>) in the related text, otherwise the server will ignore it.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
<tr>
|
||||
<td><strong>add_to_recent</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>Add this reaction to the recent reactions list</td>
|
||||
<td>Add this reaction to the <a href="/api/reactions#recent-reactions">recent reactions list »</a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>peer</strong></td>
|
||||
|
|
Loading…
Reference in a new issue