Skip to main content

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

NameTypeRequiredDescription
EnabledboolyesEnable/disable

Returns

bool

References