chatlists.getLeaveChatlistSuggestions
Returns identifiers of pinned or always included chats from a chat folder imported using a chat folder deep link », which are suggested to be left when the chat folder is deleted.
func (c *Client) ChatlistsGetLeaveChatlistSuggestions(ctx context.Context, chatlist InputChatlistDialogFilter) ([]PeerClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.ChatlistsGetLeaveChatlistSuggestions(ctx, chatlist)
if err != nil {
return err
}
_ = res // []PeerClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Chatlist | InputChatlistDialogFilter | yes | Folder ID |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | FILTER_ID_INVALID | The specified filter ID is invalid. |
| 400 | FILTER_NOT_SUPPORTED | The specified filter cannot be used in this context. |
References
- Official documentation
- Generated Go reference
- TL definition:
chatlists.getLeaveChatlistSuggestions#fdbcd714