mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-03-14 21:09:36 +01:00
Update content of files
This commit is contained in:
parent
9d4fff3811
commit
ca6c3e69ac
2 changed files with 23 additions and 6 deletions
|
@ -274,7 +274,14 @@ While <a href="/method/help.getConfig">help.getConfig</a> returns MTProto-specif
|
|||
],
|
||||
"hidden_members_group_size_min": 100,
|
||||
"premium_gift_attach_menu_icon": true,
|
||||
"premium_gift_text_field_icon": false
|
||||
"premium_gift_text_field_icon": false,
|
||||
"chatlist_invites_limit_default": 3,
|
||||
"chatlist_invites_limit_premium": 100,
|
||||
"chatlists_joined_limit_default": 2,
|
||||
"chatlists_joined_limit_premium": 20,
|
||||
"chatlist_update_period": 300,
|
||||
"small_queue_max_active_operations_count": 5,
|
||||
"large_queue_max_active_operations_count": 2
|
||||
}</code></pre>
|
||||
<p>Typical fields included in the resulting JSON object are: </p>
|
||||
<h4><a class="anchor" href="#emojies-animated-zoom" id="emojies-animated-zoom" name="emojies-animated-zoom"><i class="anchor-icon"></i></a><code>emojies_animated_zoom</code></h4>
|
||||
|
@ -413,6 +420,13 @@ Note that the stickerset can be fetched using <a href="/constructor/inputSticker
|
|||
<p>Whether a gift icon should be shown in the attachment menu in private chats with users, offering the current user to gift a <a href="/api/premium">Telegram Premium</a> subscription to the other user in the chat. (boolean)</p>
|
||||
<h4><a class="anchor" href="#premium-gift-text-field-icon" id="premium-gift-text-field-icon" name="premium-gift-text-field-icon"><i class="anchor-icon"></i></a><code>premium_gift_text_field_icon</code></h4>
|
||||
<p>Whether a gift icon should be shown in the text bar in private chats with users (ie like the <code>/</code> icon in chats with bots), offering the current user to gift a <a href="/api/premium">Telegram Premium</a> subscription to the other user in the chat. Can only be true if <code>premium_gift_attach_menu_icon</code> is also true. (boolean)</p>
|
||||
<h4><a class="anchor" href="#chatlist-invites-limit-default" id="chatlist-invites-limit-default" name="chatlist-invites-limit-default"><i class="anchor-icon"></i></a><code>chatlist_invites_limit_default</code></h4>
|
||||
<h4><a class="anchor" href="#chatlist-invites-limit-premium" id="chatlist-invites-limit-premium" name="chatlist-invites-limit-premium"><i class="anchor-icon"></i></a><code>chatlist_invites_limit_premium</code></h4>
|
||||
<h4><a class="anchor" href="#chatlists-joined-limit-default" id="chatlists-joined-limit-default" name="chatlists-joined-limit-default"><i class="anchor-icon"></i></a><code>chatlists_joined_limit_default</code></h4>
|
||||
<h4><a class="anchor" href="#chatlists-joined-limit-premium" id="chatlists-joined-limit-premium" name="chatlists-joined-limit-premium"><i class="anchor-icon"></i></a><code>chatlists_joined_limit_premium</code></h4>
|
||||
<h4><a class="anchor" href="#chatlist-update-period" id="chatlist-update-period" name="chatlist-update-period"><i class="anchor-icon"></i></a><code>chatlist_update_period</code></h4>
|
||||
<h4><a class="anchor" href="#small-queue-max-active-operations-count" id="small-queue-max-active-operations-count" name="small-queue-max-active-operations-count"><i class="anchor-icon"></i></a><code>small_queue_max_active_operations_count</code></h4>
|
||||
<h4><a class="anchor" href="#large-queue-max-active-operations-count" id="large-queue-max-active-operations-count" name="large-queue-max-active-operations-count"><i class="anchor-icon"></i></a><code>large_queue_max_active_operations_count</code></h4>
|
||||
<h3><a class="anchor" href="#suggestions" id="suggestions" name="suggestions"><i class="anchor-icon"></i></a>Suggestions</h3>
|
||||
<p>The API can return a set of useful suggestions for users of graphical clients. </p>
|
||||
<h4><a class="anchor" href="#basic-suggestions" id="basic-suggestions" name="basic-suggestions"><i class="anchor-icon"></i></a>Basic suggestions</h4>
|
||||
|
|
|
@ -94,9 +94,8 @@ Clients can also receive <a href="/constructor/updateDialogFilters">updateDialog
|
|||
|
||||
<a href='/constructor/chatlists.chatlistInviteAlready'>chatlists.chatlistInviteAlready</a>#fa87f659 filter_id:<a href='/type/int'>int</a> missing_peers:<a href='/type/Vector%20t'>Vector</a><<a href='/type/Peer'>Peer</a>> already_peers:<a href='/type/Vector%20t'>Vector</a><<a href='/type/Peer'>Peer</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/chatlists.ChatlistInvite'>chatlists.ChatlistInvite</a>;
|
||||
<a href='/constructor/chatlists.chatlistInvite'>chatlists.chatlistInvite</a>#1dcd839d flags:<a href='/type/%23'>#</a> title:<a href='/type/string'>string</a> emoticon:flags.0?<a href='/type/string'>string</a> peers:<a href='/type/Vector%20t'>Vector</a><<a href='/type/Peer'>Peer</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/chatlists.ChatlistInvite'>chatlists.ChatlistInvite</a>;
|
||||
<a href='/constructor/chatlists.chatlistUpdates'>chatlists.chatlistUpdates</a>#93bd878d missing_peers:<a href='/type/Vector%20t'>Vector</a><<a href='/type/Peer'>Peer</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/chatlists.ChatlistUpdates'>chatlists.ChatlistUpdates</a>;
|
||||
|
||||
<a href='/constructor/updateChannelParticipant'>updateChannelParticipant</a>#985d3abb flags:<a href='/type/%23'>#</a> via_chatlist:flags.3?<a href='/constructor/true'>true</a> channel_id:<a href='/type/long'>long</a> date:<a href='/type/int'>int</a> actor_id:<a href='/type/long'>long</a> user_id:<a href='/type/long'>long</a> prev_participant:flags.0?<a href='/type/ChannelParticipant'>ChannelParticipant</a> new_participant:flags.1?<a href='/type/ChannelParticipant'>ChannelParticipant</a> invite:flags.2?<a href='/type/ExportedChatInvite'>ExportedChatInvite</a> qts:<a href='/type/int'>int</a> = <a href='/type/Update'>Update</a>;
|
||||
<a href='/constructor/chatlists.chatlistUpdates'>chatlists.chatlistUpdates</a>#93bd878d missing_peers:<a href='/type/Vector%20t'>Vector</a><<a href='/type/Peer'>Peer</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/chatlists.ChatlistUpdates'>chatlists.ChatlistUpdates</a>;
|
||||
|
||||
---functions---
|
||||
|
||||
|
@ -118,9 +117,13 @@ Clients can also receive <a href="/constructor/updateDialogFilters">updateDialog
|
|||
<p>Folders may be shared using <a href="/api/links#chat-folder-links">chat folder deep links</a>.<br>
|
||||
These links are generated by invoking <a href="/method/chatlists.exportChatlistInvite">chatlists.exportChatlistInvite</a>, passing the ID of the folder that should be exported, along with a list of <code>peers</code> that should be included in the shared folder.<br>
|
||||
Only channels and groups/supergroups may be specified in the <code>peers</code> array; these channels and groups must be public, or the user must have permission to manage invite links. Basic groups will automatically be <a href="/api/channel#migration">converted to supergroups</a> when invoking the method.<br>
|
||||
An optional name may also be specified for the shared link using <code>title</code>. </p>
|
||||
<p>Use <a href="/method/chatlists.checkChatlistInvite">chatlists.checkChatlistInvite</a> to obtain information about a chat folder deep link before importing it with <a href="/method/chatlists.joinChatlistInvite">chatlists.joinChatlistInvite</a>, specifying which <code>peers</code> to add to the imported folder. </p>
|
||||
<p>Use <a href="/method/chatlists.getExportedInvites">chatlists.getExportedInvites</a> to list all share links generated for a folder, use <a href="/method/chatlists.editExportedInvite">chatlists.editExportedInvite</a> to edit the title or set of peers shared with the links and <a href="/method/chatlists.deleteExportedInvite">chatlists.deleteExportedInvite</a> to revoke an exported link. </p>
|
||||
An optional name for the shared link may also be specified using <code>title</code>. </p>
|
||||
<p>Use <a href="/method/chatlists.getExportedInvites">chatlists.getExportedInvites</a> to list all links generated for a folder, use <a href="/method/chatlists.editExportedInvite">chatlists.editExportedInvite</a> to edit the title or list of <code>peers</code> of a specific link and <a href="/method/chatlists.deleteExportedInvite">chatlists.deleteExportedInvite</a> to revoke an exported link, preventing new users from importing it. </p>
|
||||
<p>Use <a href="/method/chatlists.checkChatlistInvite">chatlists.checkChatlistInvite</a> to obtain information about a chat folder deep link before importing it with <a href="/method/chatlists.joinChatlistInvite">chatlists.joinChatlistInvite</a>, specifying in <code>peers</code> which channels and groups to join (excluding inaccessible channels/supergroups, i.e. the user may not join a supergroup/channel where they were banned, corresponding to a <a href="/constructor/channelForbidden">channelForbidden</a> constructor).<br>
|
||||
If the user can't join any of the <code>peers</code> of a folder, the folder can't be imported.</p>
|
||||
<p>Users that import a folder should retrieve additions made to the peer list by invoking <a href="/method/chatlists.getChatlistUpdates">chatlists.getChatlistUpdates</a> at most every <code>chatlist_update_period</code> seconds (a <a href="/api/config#chatlistupdate-period">client configuration parameter »</a>).<br>
|
||||
If the returned <code>missing_peers</code> list is non-empty, the client should present it to the user, who may choose to join all or a subset of them (excluding inaccessible channels/supergroups), passing them to the <code>peers</code> parameter of <a href="/method/chatlists.joinChatlistUpdates">chatlists.joinChatlistUpdates</a>.<br>
|
||||
If, after excluding inaccessible peers and peers deselected by the user, the <code>peers</code> parameter is empty, invoke <a href="/method/chatlists.hideChatlistUpdates">chatlists.hideChatlistUpdates</a> instead of <a href="/method/chatlists.joinChatlistUpdates">chatlists.joinChatlistUpdates</a>. </p>
|
||||
<h3><a class="anchor" href="#peer-folders" id="peer-folders" name="peer-folders"><i class="anchor-icon"></i></a>Peer folders</h3>
|
||||
<p>The API also has another method for identifying groups of peers, used by archived chats.</p>
|
||||
<p>Schema:</p>
|
||||
|
|
Loading…
Add table
Reference in a new issue