Skip to main content

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

NameTypeRequiredDescription
MyStoriesFromboolWhether to fetch the story blocklist; if not set, will fetch the main blocklist. See here » for differences between the two.
OffsetintyesThe number of list elements to be skipped
LimitintyesThe number of list elements to be returned

Returns

ContactsBlockedClass

References