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
| Name | Type | Required | Description |
|---|---|---|---|
Chatlist | InputChatlistDialogFilter | yes | The folder |
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. |
| 400 | INPUT_CHATLIST_INVALID | The specified folder is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
chatlists.getChatlistUpdates#89419521