Skip to main content

chatlists.editExportedInvite

Edit a chat folder deep link ».

func (c *Client) ChatlistsEditExportedInvite(ctx context.Context, request *ChatlistsEditExportedInviteRequest) (*ExportedChatlistInvite, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.ChatlistsEditExportedInvite(ctx, &tg.ChatlistsEditExportedInviteRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *ExportedChatlistInvite
return nil
})

Parameters

NameTypeRequiredDescription
ChatlistInputChatlistDialogFilteryesFolder ID
Slugstringyesslug obtained from the chat folder deep link ».
TitlestringIf set, sets a new name for the link
Peers[]InputPeerClassIf set, changes the list of peers shared with the link

Returns

*ExportedChatlistInvite

Possible errors

CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.
400FILTER_ID_INVALIDThe specified filter ID is invalid.
400FILTER_NOT_SUPPORTEDThe specified filter cannot be used in this context.
400INVITE_SLUG_EMPTYThe specified invite slug is empty.
400INVITE_SLUG_EXPIREDThe specified chat folder link has expired.
400PEERS_LIST_EMPTYThe specified list of peers is empty.

References