Layer 220
ContactsSetBlocked
Replace the contents of an entire blocklist, see here for more info.
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
BoolGogram 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