Layer 220
method Users
messages.updateDialogFilter#1ad4a04a flags:# id:int filter:flags.0?DialogFilter = Bool;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Id int Folder ID
Filter flags.0?DialogFilter 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.

Gogram Example

// MessagesUpdateDialogFilter - using Params struct
result, err := client.MessagesUpdateDialogFilter(&tg.MessagesUpdateDialogFilterParams{
    Id: 0,

    // Optional fields:
    // Filter: &tg.DialogFilter{},
})
if err != nil {
    // handle error
}
// result is *tg.Bool