Skip to main content

chatlists.getChatlistUpdates

Fetch new chats associated with an imported chat folder deep link ». Must be invoked at most every chatlist_update_period seconds (as per the related client configuration parameter »).

func (c *Client) ChatlistsGetChatlistUpdates(ctx context.Context, chatlist InputChatlistDialogFilter) (*ChatlistsChatlistUpdates, error)

Calling this method

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

res, err := api.ChatlistsGetChatlistUpdates(ctx, chatlist)
if err != nil {
return err
}
_ = res // *ChatlistsChatlistUpdates
return nil
})

Parameters

NameTypeRequiredDescription
ChatlistInputChatlistDialogFilteryesThe folder

Returns

*ChatlistsChatlistUpdates

Possible errors

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

References