Skip to main content

contacts.resetTopPeerRating

Reset rating of top peer

func (c *Client) ContactsResetTopPeerRating(ctx context.Context, request *ContactsResetTopPeerRatingRequest) (bool, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.ContactsResetTopPeerRating(ctx, &tg.ContactsResetTopPeerRatingRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters

NameTypeRequiredDescription
CategoryTopPeerCategoryClassyesTop peer category
PeerInputPeerClassyesPeer whose rating should be reset

Returns

bool

Possible errors

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.

References