Layer 220
method Users
contacts.setBlocked#94c65c76 flags:# my_stories_from:flags.0?true id:Vector<InputPeer> limit:int = Bool;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
MyStoriesFrom flags.0?true Whether to edit the story blocklist; if not set, will edit the main blocklist. See here for differences between the two.
Id Vector<InputPeer> Full content of the blocklist.
Limit int Maximum number of results to return, see pagination

Returns

Bool

Gogram Example

// ContactsSetBlocked - using Params struct
result, err := client.ContactsSetBlocked(&tg.ContactsSetBlockedParams{
    Id: []tg.InputPeer{&tg.InputPeerUser{UserID: int64(123456789)}},
    Limit: 0,

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