contacts.toggleTopPeers
Enable/disable top peers
func (c *Client) ContactsToggleTopPeers(ctx context.Context, enabled bool) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.ContactsToggleTopPeers(ctx, enabled)
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Enabled | bool | yes | Enable/disable |
Returns
bool
References
- Official documentation
- Generated Go reference
- TL definition:
contacts.toggleTopPeers#8514bdda