contacts.getSaved
Get all contacts, requires a takeout session, see here » for more info.
func (c *Client) ContactsGetSaved(ctx context.Context) ([]SavedPhoneContact, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.ContactsGetSaved(ctx)
if err != nil {
return err
}
_ = res // []SavedPhoneContact
return nil
})
Parameters
This method takes no parameters.
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | TAKEOUT_INVALID | The specified takeout ID is invalid. |
| 403 | TAKEOUT_REQUIRED | A takeout¹ session needs to be initialized first, see here » for more info². |
References
- Official documentation
- Generated Go reference
- TL definition:
contacts.getSaved#82f1e39f