contacts.getBlocked
Returns the list of blocked users.
func (c *Client) ContactsGetBlocked(ctx context.Context, request *ContactsGetBlockedRequest) (ContactsBlockedClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.ContactsGetBlocked(ctx, &tg.ContactsGetBlockedRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // ContactsBlockedClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
MyStoriesFrom | bool | — | Whether to fetch the story blocklist; if not set, will fetch the main blocklist. See here » for differences between the two. |
Offset | int | yes | The number of list elements to be skipped |
Limit | int | yes | The number of list elements to be returned |
Returns
References
- Official documentation
- Generated Go reference
- TL definition:
contacts.getBlocked#9a868f80