2019-08-15 20:25:16 +02:00
|
|
|
---
|
|
|
|
title: contacts.contacts
|
2019-12-27 17:48:04 +01:00
|
|
|
description: The current user's contact list and info on users.
|
2019-08-15 20:25:16 +02:00
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
|
|
---
|
|
|
|
# Constructor: contacts.contacts
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-27 17:48:04 +01:00
|
|
|
The current user's contact list and info on users.
|
2019-08-15 20:25:16 +02:00
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|---------------|----------|-------------|
|
|
|
|
|contacts|Array of [Contact](../types/Contact.md) | Yes|Contacts|
|
2019-12-27 17:48:04 +01:00
|
|
|
|saved\_count|[int](../types/int.md) | Yes|Number of contacts that were saved successfully|
|
2019-08-15 20:25:16 +02:00
|
|
|
|users|Array of [User](../types/User.md) | Yes|Users|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [contacts\_Contacts](../types/contacts_Contacts.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```php
|
|
|
|
$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'saved_count' => int, 'users' => [User, User]];
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
contacts_contacts={_='contacts.contacts', contacts={Contact}, saved_count=int, users={User}}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|