Layer 220
ContactsResetTopPeerRating
Reset rating of top peer
method
Users
contacts.resetTopPeerRating#1ae373ac category:TopPeerCategory peer:InputPeer = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Category | TopPeerCategory | Top peer category |
| Peer | InputPeer | Peer whose rating should be reset |
Returns
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
Gogram Example
// ContactsResetTopPeerRating - positional arguments result, err := client.ContactsResetTopPeerRating(&tg.TopPeerCategory{}, &tg.InputPeerUser{UserID: int64(123456789)}) if err != nil { // handle error } // result is *tg.Bool