Skip to main content

chatlists.deleteExportedInvite

Delete a previously created chat folder deep link ».

func (c *Client) ChatlistsDeleteExportedInvite(ctx context.Context, request *ChatlistsDeleteExportedInviteRequest) (bool, error)

Calling this method

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

res, err := api.ChatlistsDeleteExportedInvite(ctx, &tg.ChatlistsDeleteExportedInviteRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters

NameTypeRequiredDescription
ChatlistInputChatlistDialogFilteryesThe related folder
Slugstringyesslug obtained from the chat folder deep link ».

Returns

bool

Possible errors

CodeTypeDescription
400FILTER_ID_INVALIDThe specified filter ID is invalid.
400FILTER_NOT_SUPPORTEDThe specified filter cannot be used in this context.
400INVITE_SLUG_EXPIREDThe specified chat folder link has expired.
400INVITE_SLUG_INVALIDThe specified invitation slug is invalid.

References