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
| Name | Type | Required | Description |
|---|---|---|---|
Chatlist | InputChatlistDialogFilter | yes | Folder ID |
Slug | string | yes | slug obtained from the chat folder deep link ». |
Title | string | — | If set, sets a new name for the link |
Peers | []InputPeerClass | — | If set, changes the list of peers shared with the link |
Returns
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. |
References
- Official documentation
- Generated Go reference
- TL definition:
chatlists.editExportedInvite#653db63d