contacts.setBlocked
Replace the contents of an entire blocklist, see here for more info ».
func (c *Client) ContactsSetBlocked(ctx context.Context, request *ContactsSetBlockedRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.ContactsSetBlocked(ctx, &tg.ContactsSetBlockedRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
MyStoriesFrom | bool | — | Whether to edit the story blocklist; if not set, will edit the main blocklist. See here » for differences between the two. |
ID | []InputPeerClass | yes | Full content of the blocklist. |
Limit | int | yes | Maximum number of results to return, see pagination |
Returns
bool
References
- Official documentation
- Generated Go reference
- TL definition:
contacts.setBlocked#94c65c76