messages.updateDialogFilter
Update folder
func (c *Client) MessagesUpdateDialogFilter(ctx context.Context, request *MessagesUpdateDialogFilterRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesUpdateDialogFilter(ctx, &tg.MessagesUpdateDialogFilterRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ID | int | yes | Folder ID |
Filter | DialogFilterClass | — | Folder info |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | CHATLIST_EXCLUDE_INVALID | The specified exclude_peers are invalid. |
| 400 | CHAT_ID_INVALID | The provided chat id is invalid. |
| 400 | FILTER_ID_INVALID | The specified filter ID is invalid. |
| 400 | FILTER_INCLUDE_EMPTY | The include_peers vector of the filter is empty. |
| 400 | FILTER_TITLE_EMPTY | The title field of the filter is empty. |
| 400 | MESSAGE_TOO_LONG | The provided message is too long. |
| 400 | MSG_ID_INVALID | Invalid message ID provided. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.updateDialogFilter#1ad4a04a