Skip to main content

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

NameTypeRequiredDescription
IDintyesFolder ID
FilterDialogFilterClassFolder info

Returns

bool

Possible errors

CodeTypeDescription
400CHATLIST_EXCLUDE_INVALIDThe specified exclude_peers are invalid.
400CHAT_ID_INVALIDThe provided chat id is invalid.
400FILTER_ID_INVALIDThe specified filter ID is invalid.
400FILTER_INCLUDE_EMPTYThe include_peers vector of the filter is empty.
400FILTER_TITLE_EMPTYThe title field of the filter is empty.
400MESSAGE_TOO_LONGThe provided message is too long.
400MSG_ID_INVALIDInvalid message ID provided.
400PEER_ID_INVALIDThe provided peer id is invalid.

References