Skip to main content

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

NameTypeRequiredDescription
ChatlistInputChatlistDialogFilteryesFolder ID

Returns

[]PeerClass

Possible errors

CodeTypeDescription
400FILTER_ID_INVALIDThe specified filter ID is invalid.
400FILTER_NOT_SUPPORTEDThe specified filter cannot be used in this context.

References