diff --git a/data/web/corefork.telegram.org/api/auth.html b/data/web/corefork.telegram.org/api/auth.html index e192ec39b3..54c0e5a1cb 100644 --- a/data/web/corefork.telegram.org/api/auth.html +++ b/data/web/corefork.telegram.org/api/auth.html @@ -205,7 +205,7 @@ After obtaining the ID token, call account

On success, the account.verifyEmail method will return a account.emailVerifiedLogin constructor with an auth.sentCode constructor that should be handled as usual ».

-

If the user cannot access their email address and auth.sentCodeTypeEmailCode.reset_pending_date is not set, an email reset may be requested using auth.resetLoginEmail: this will populate

+

If the user cannot access their email address, an email reset may be requested using auth.resetLoginEmail.

To change the login email after login, pass emailVerifyPurposeLoginChange as purpose, following the exact same Google ID/Apple ID/email code login flow as above: on success, the account.verifyEmail method will return an account.emailVerified constructor.

Sign in/sign up

When user enters verification code, the auth.signIn method must be used to validate it and possibly sign user in.

diff --git a/data/web/corefork.telegram.org/api/folders.html b/data/web/corefork.telegram.org/api/folders.html index 2f1a4eafc8..0ac8720b54 100644 --- a/data/web/corefork.telegram.org/api/folders.html +++ b/data/web/corefork.telegram.org/api/folders.html @@ -78,13 +78,13 @@ The UI should then show a list of suggested folder combinations.

Once configuration is finished, apps call messages.updateDialogFilter to create or update existing folders.
As per the dialogFilter/dialogFilterChatlist 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.
Folders can also have up to dialogs_folder_pinned_limit_* pinned chats, as determined by the client configuration.

-

dialogFilterChatlist constructors are used to represent imported shareable folders.

+

dialogFilterChatlist constructors are used to represent imported shareable folders.

To reorder existing folders, messages.updateDialogFiltersOrder should be used with the IDs of the various dialog filters.

Premium users also have access to a dialogFilterDefault constructor, used only when reordering folders to indicate the default (all chats) folder.

To delete folders, use messages.updateDialogFilter without populating the filter flag field.

Clients can receive updateDialogFilter, updateDialogFilterOrder updates with new filter information, generated by other clients when modifying folder info.
Clients can also receive updateDialogFilters, in which case folder info should be refetched manually using messages.getDialogFilters.

-

Sharing folders

+

Shared folders

inputChatlistDialogFilter#f3e0da33 filter_id:int = InputChatlist;
 
 exportedChatlistInvite#0c5181ac flags:# title:string url:string peers:Vector<Peer> = ExportedChatlistInvite;
@@ -127,7 +127,7 @@ If the user can't join any of the peers of a folder, the folder can
 

Users that import a folder should retrieve additions made to the peer list by invoking chatlists.getChatlistUpdates at most every chatlist_update_period seconds (a client configuration parameter »).
If the returned missing_peers 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 peers parameter of chatlists.joinChatlistUpdates.
If after excluding inaccessible peers and peers deselected by the user the peers list is empty, invoke chatlists.hideChatlistUpdates instead of chatlists.joinChatlistUpdates.

-

When remvoing an imported folder, the list of included peers should be presented to the user prior to deletion, with the peers listed in chatlists.getLeaveChatlistSuggestions 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 chatlists.leaveChatlist to delete the folder, specifying in peers the list of channels and groups from the folder that should also be removed.

+

When removing an imported folder, the list of included peers should be presented to the user prior to deletion, with the peers listed in chatlists.getLeaveChatlistSuggestions 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 chatlists.leaveChatlist to delete the folder, specifying in peers the list of channels and groups from the folder that should also be removed.

Peer folders

The API also has another method for identifying groups of peers, used by archived chats.

Schema:

diff --git a/data/web/corefork.telegram.org/api/links.html b/data/web/corefork.telegram.org/api/links.html index 9c622f1ff2..c7c5b27b4e 100644 --- a/data/web/corefork.telegram.org/api/links.html +++ b/data/web/corefork.telegram.org/api/links.html @@ -158,7 +158,7 @@ These links can be generated even for profiles that don't have a username, and t

Chat folder links

-

Used to invite users to private groups and channels, see here for more info on how to generate such links ».

+

Used to invite users to private groups and channels, see here for more info on how to generate such links ».

t.me syntax:

t.me/addlist/<slug>

tg: syntax:

@@ -176,7 +176,7 @@ These links can be generated even for profiles that don't have a username, and t slug Required -Invite slug to check or import » +Invite slug to check or import » diff --git a/data/web/corefork.telegram.org/constructor/auth.sentCodeTypeEmailCode b/data/web/corefork.telegram.org/constructor/auth.sentCodeTypeEmailCode index c00b567187..55604c1a28 100644 --- a/data/web/corefork.telegram.org/constructor/auth.sentCodeTypeEmailCode +++ b/data/web/corefork.telegram.org/constructor/auth.sentCodeTypeEmailCode @@ -94,12 +94,12 @@ reset_available_period flags.3?int -  +The login email can be reset by invoking auth.resetLoginEmail and waiting for the specified amount of seconds. reset_pending_date flags.4?int -  +An email reset was already requested, and will occur at the specified date. @@ -108,6 +108,8 @@

Related pages

Pattern matching

Some methods require the client to verify if the data obtained from an external source matches a certain pattern.

+

auth.resetLoginEmail

+

Reset the login email ».

User Authorization

How to register a user's phone to start using the API.

diff --git a/data/web/corefork.telegram.org/method/chatlists.getLeaveChatlistSuggestions b/data/web/corefork.telegram.org/method/chatlists.getLeaveChatlistSuggestions index a594c0dc11..334c808dbf 100644 --- a/data/web/corefork.telegram.org/method/chatlists.getLeaveChatlistSuggestions +++ b/data/web/corefork.telegram.org/method/chatlists.getLeaveChatlistSuggestions @@ -4,28 +4,10 @@ chatlists.getLeaveChatlistSuggestions - + - + @@ -60,7 +42,8 @@ Bots can use this method">

chatlists.getLeaveChatlistSuggestions

-

+

Returns identifiers of pinned or always included chats from a chat folder imported using a chat folder deep link », which are suggested to be left when the chat folder is deleted.

+

+

Bots can use this method

+

Related pages

+

Deep links

+

Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.

diff --git a/data/web/corefork.telegram.org/method/chatlists.joinChatlistInvite b/data/web/corefork.telegram.org/method/chatlists.joinChatlistInvite index 6ef0f1afd3..8dcbb7320f 100644 --- a/data/web/corefork.telegram.org/method/chatlists.joinChatlistInvite +++ b/data/web/corefork.telegram.org/method/chatlists.joinChatlistInvite @@ -82,7 +82,7 @@ peers Vector<InputPeer> -List of new chats to join, fetched using chatlists.checkChatlistInvite and filtered as specified in the documentation ». +List of new chats to join, fetched using chatlists.checkChatlistInvite and filtered as specified in the documentation ». diff --git a/data/web/corefork.telegram.org/method/chatlists.joinChatlistUpdates b/data/web/corefork.telegram.org/method/chatlists.joinChatlistUpdates index bc73ed1c02..3913d7baea 100644 --- a/data/web/corefork.telegram.org/method/chatlists.joinChatlistUpdates +++ b/data/web/corefork.telegram.org/method/chatlists.joinChatlistUpdates @@ -82,7 +82,7 @@ peers Vector<InputPeer> -List of new chats to join, fetched using chatlists.getChatlistUpdates and filtered as specified in the documentation ». +List of new chats to join, fetched using chatlists.getChatlistUpdates and filtered as specified in the documentation ». diff --git a/data/web/corefork.telegram.org/method/chatlists.leaveChatlist b/data/web/corefork.telegram.org/method/chatlists.leaveChatlist index 69f774927c..1a51cacb15 100644 --- a/data/web/corefork.telegram.org/method/chatlists.leaveChatlist +++ b/data/web/corefork.telegram.org/method/chatlists.leaveChatlist @@ -4,34 +4,10 @@ chatlists.leaveChatlist - + - + @@ -66,7 +42,8 @@ Bots can use this method">

chatlists.leaveChatlist

-

+

Delete a folder imported using a chat folder deep link »

+

+

Bots can use this method

+

Related pages

+

Deep links

+

Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.

diff --git a/data/web/corefork.telegram.org/methods.html b/data/web/corefork.telegram.org/methods.html index 3a83dafae2..f86080758c 100644 --- a/data/web/corefork.telegram.org/methods.html +++ b/data/web/corefork.telegram.org/methods.html @@ -231,6 +231,10 @@ Verify an email address. +auth.resetLoginEmail +Reset the login email ». + + auth.checkPassword Try logging to an account protected by a 2FA password. @@ -302,6 +306,10 @@ auth.requestFirebaseSms Request an SMS code via Firebase. + +auth.importWebTokenAuthorization +Login by importing an authorization token +

Working with GDPR export

@@ -1050,6 +1058,10 @@ Upload a file and associate it to a chat (without actually sending it to the chat) +messages.getExtendedMedia +Get information about extended media + + messages.getDocumentByHash Get a document by its SHA256 hash, mainly used for gifs @@ -1565,6 +1577,10 @@ account.uploadWallPaper Create and upload a new wallpaper + +messages.setChatWallPaper +Set a custom wallpaper » in a specific private chat with another user. +

Working with web app bots »

@@ -1939,6 +1955,50 @@ folders.editPeerFolders Edit peers in peer folder + +chatlists.exportChatlistInvite +Export a folder », creating a chat folder deep link ». + + +chatlists.deleteExportedInvite +Delete a previously created chat folder deep link ». + + +chatlists.editExportedInvite +Edit a chat folder deep link ». + + +chatlists.getExportedInvites +List all chat folder deep links » associated to a folder + + +chatlists.checkChatlistInvite +Obtain information about a chat folder deep link ». + + +chatlists.joinChatlistInvite +Import a chat folder deep link », joining some or all the chats in the folder. + + +chatlists.getChatlistUpdates +Fetch new chats associated with an imported chat folder deep link ». Must be invoked at most every chatlist_update_period seconds (as per the related client configuration parameter »). + + +chatlists.joinChatlistUpdates +Join channels and supergroups recently added to a chat folder deep link ». + + +chatlists.hideChatlistUpdates +Dismiss new pending peers recently added to a chat folder deep link ». + + +chatlists.getLeaveChatlistSuggestions +Returns identifiers of pinned or always included chats from a chat folder imported using a chat folder deep link », which are suggested to be left when the chat folder is deleted. + + +chatlists.leaveChatlist +Delete a folder imported using a chat folder deep link » +

Working with games

@@ -2769,77 +2829,6 @@ Resolve a @username to get peer info - -

Other

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameDescription
messages.getExtendedMediaGet information about extended media
auth.importWebTokenAuthorizationLogin by importing an authorization token
auth.resetLoginEmailReset the login email ».
chatlists.exportChatlistInviteExport a folder », creating a chat folder deep link ».
chatlists.deleteExportedInviteDelete a previously created chat folder deep link ».
chatlists.editExportedInviteEdit a chat folder deep link ».
chatlists.getExportedInvitesList all chat folder deep links » associated to a folder
chatlists.checkChatlistInviteObtain information about a chat folder deep link ».
chatlists.joinChatlistInviteImport a chat folder deep link », joining some or all the chats in the folder.
chatlists.getChatlistUpdatesFetch new chats associated with an imported chat folder deep link ». Must be invoked at most every chatlist_update_period seconds (as per the related client configuration parameter »).
chatlists.joinChatlistUpdatesJoin channels and supergroups recently added to a chat folder deep link ».
chatlists.hideChatlistUpdatesDismiss new pending peers recently added to a chat folder deep link ».
chatlists.getLeaveChatlistSuggestions 
chatlists.leaveChatlist 
messages.setChatWallPaperSet a custom wallpaper » in a specific private chat with another user.
diff --git a/data/web/corefork.telegram.org/type/Updates.html b/data/web/corefork.telegram.org/type/Updates.html index f370377fbe..994a42f23d 100644 --- a/data/web/corefork.telegram.org/type/Updates.html +++ b/data/web/corefork.telegram.org/type/Updates.html @@ -550,7 +550,7 @@ chatlists.leaveChatlist -  +Delete a folder imported using a chat folder deep link » messages.setChatWallPaper