chatlists.leaveChatlist
Delete a folder imported using a chat folder deep link »
func (c *Client) ChatlistsLeaveChatlist(ctx context.Context, request *ChatlistsLeaveChatlistRequest) (UpdatesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.ChatlistsLeaveChatlist(ctx, &tg.ChatlistsLeaveChatlistRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Chatlist | InputChatlistDialogFilter | yes | Folder ID |
Peers | []InputPeerClass | yes | Also leave the specified channels and groups |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | FILTER_ID_INVALID | The specified filter ID is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
chatlists.leaveChatlist#74fae13a