Layer 220
method Users
chatlists.editExportedInvite#653db63d flags:# chatlist:InputChatlist slug:string title:flags.1?string peers:flags.2?Vector<InputPeer> = ExportedChatlistInvite;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Chatlist InputChatlist Folder ID
Slug string slug obtained from the chat folder deep link.
Title flags.1?string If set, sets a new name for the link
Peers Vector<InputPeer> If set, changes the list of peers shared with the link

Possible Errors

Code Type Description
400 CHANNEL_INVALID The provided channel is invalid.
400 FILTER_ID_INVALID The specified filter ID is invalid.
400 FILTER_NOT_SUPPORTED The specified filter cannot be used in this context.
400 INVITE_SLUG_EMPTY The specified invite slug is empty.
400 INVITE_SLUG_EXPIRED The specified chat folder link has expired.
400 PEERS_LIST_EMPTY The specified list of peers is empty.

Gogram Example

// ChatlistsEditExportedInvite - using Params struct
result, err := client.ChatlistsEditExportedInvite(&tg.ChatlistsEditExportedInviteParams{
    Chatlist: &tg.InputChatlist{},
    Slug: "...",

    // Optional fields:
    // Title: "...",
    // Peers: []tg.InputPeer{&tg.InputPeerUser{UserID: int64(123456789)}},
})
if err != nil {
    // handle error
}
// result is *tg.ExportedChatlistInvite