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
550714c4f7
commit
7feccd3427
2 changed files with 6 additions and 4 deletions
|
@ -76,8 +76,9 @@ In the UI, folders are typically represented as tabs. </p>
|
|||
<p>The boolean under the <a href="/api/config#dialog-filters-tooltip"><code>dialog_filters_tooltip</code> JSON key</a> in the result of <a href="/method/help.getAppConfig">help.getAppConfig</a> can be used to determine whether a folder tooltip should be presented to the user right away.<br>
|
||||
The UI should then show a list of suggested folder combinations. </p>
|
||||
<p>Once configuration is finished, apps call <a href="/method/messages.updateDialogFilter">messages.updateDialogFilter</a> to create or update existing folders.<br>
|
||||
As per the <a href="/constructor/dialogFilter">dialogFilter</a> constructor, folders have multiple flags that can be combined to determine which chats should be included in (or excluded from) the folder.<br>
|
||||
As per the <a href="/constructor/dialogFilter">dialogFilter</a>/<a href="/constructor/dialogFilterChatlist">dialogFilterChatlist</a> constructors, folders have multiple flags that can be combined to determine which chats should be included in (or excluded from) the folder, which emoji to use as icon for the folder and its name.<br>
|
||||
Folders can also have up to <code>dialogs_folder_pinned_limit_*</code> pinned chats, as determined by the <a href="/api/config#client-configuration">client configuration</a>.</p>
|
||||
<p><a href="/constructor/dialogFilterChatlist">dialogFilterChatlist</a> constructors are used to represent imported <a href="#sharing-folders">shareable folders</a>. </p>
|
||||
<p>To reorder existing folders, <a href="/method/messages.updateDialogFiltersOrder">messages.updateDialogFiltersOrder</a> should be used with the IDs of the various dialog filters.</p>
|
||||
<p><a href="/api/premium">Premium</a> users also have access to a <a href="/constructor/dialogFilterDefault">dialogFilterDefault</a> constructor, used only when reordering folders to indicate the default (all chats) folder. </p>
|
||||
<p>To delete folders, use <a href="/method/messages.updateDialogFilter">messages.updateDialogFilter</a> without populating the <code>filter</code> flag field. </p>
|
||||
|
@ -125,7 +126,8 @@ If the user can't join any of the <code>peers</code> of a folder, the folder can
|
|||
<p>The maximum number of shareable folders that a <a href="/api/premium">Premium</a>/non-<a href="/api/premium">Premium</a> user may join is specified by the <code>chatlists_joined_limit_default</code>/<code>chatlists_joined_limit_premium</code> <a href="/api/config#chatlists-joined-limit-default">client configuration parameters »</a>. </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#chatlist-update-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> list is empty, invoke <a href="/method/chatlists.hideChatlistUpdates">chatlists.hideChatlistUpdates</a> instead of <a href="/method/chatlists.joinChatlistUpdates">chatlists.joinChatlistUpdates</a>. </p>
|
||||
If after excluding inaccessible peers and peers deselected by the user the <code>peers</code> list is empty, invoke <a href="/method/chatlists.hideChatlistUpdates">chatlists.hideChatlistUpdates</a> instead of <a href="/method/chatlists.joinChatlistUpdates">chatlists.joinChatlistUpdates</a>.</p>
|
||||
<p>When remvoing an imported folder, the list of included peers should be presented to the user prior to deletion, with the peers listed in <a href="/method/chatlists.getLeaveChatlistSuggestions">chatlists.getLeaveChatlistSuggestions</a> already pre-marked for deletion: the user may then choose to delete or keep some or all of the groups and channels of the folder when invoking <a href="/method/chatlists.leaveChatlist">chatlists.leaveChatlist</a> to delete the folder, specifying in <code>peers</code> the list of channels and groups from the folder that should also be removed.</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>
|
||||
|
|
|
@ -59,8 +59,8 @@
|
|||
<li>Added <a href="/method/chatlists.getChatlistUpdates">chatlists.getChatlistUpdates</a> - Fetch new chats associated with an imported <a href="/api/links#chat-folder-links">chat folder deep link »</a>. Must be invoked at most every <code>chatlist_update_period</code> seconds (as per the related <a href="/api/config#chatlist-update-period">client configuration parameter »</a>).</li>
|
||||
<li>Added <a href="/method/chatlists.joinChatlistUpdates">chatlists.joinChatlistUpdates</a> - Join channels and supergroups recently added to a <a href="/api/links#chat-folder-links">chat folder deep link »</a>.</li>
|
||||
<li>Added <a href="/method/chatlists.hideChatlistUpdates">chatlists.hideChatlistUpdates</a> - Dismiss new pending peers recently added to a <a href="/api/links#chat-folder-links">chat folder deep link »</a>.</li>
|
||||
<li>Added <a href="/method/chatlists.getLeaveChatlistSuggestions">chatlists.getLeaveChatlistSuggestions</a> - </li>
|
||||
<li>Added <a href="/method/chatlists.leaveChatlist">chatlists.leaveChatlist</a> - </li>
|
||||
<li>Added <a href="/method/chatlists.getLeaveChatlistSuggestions">chatlists.getLeaveChatlistSuggestions</a> - Returns identifiers of pinned or always included chats from a chat folder imported using a <a href="/api/links#chat-folder-links">chat folder deep link »</a>, which are suggested to be left when the chat folder is deleted.</li>
|
||||
<li>Added <a href="/method/chatlists.leaveChatlist">chatlists.leaveChatlist</a> - Delete a folder imported using a <a href="/api/links#chat-folder-links">chat folder deep link »</a></li>
|
||||
<li>Added <a href="/method/bots.reorderUsernames">bots.reorderUsernames</a> - Reorder usernames associated to a bot we own.</li>
|
||||
<li>Added <a href="/method/bots.toggleUsername">bots.toggleUsername</a> - Activate or deactivate a purchased <a href="https://fragment.com">fragment.com</a> username associated to a bot we own.</li>
|
||||
<li>Added <a href="/method/messages.setChatWallPaper">messages.setChatWallPaper</a> - Set a custom <a href="/api/wallpapers">wallpaper »</a> in a specific private chat with another user.</li>
|
||||
|
|
Loading…
Add table
Reference in a new issue