MadelineProtoDocs/old_docs/API_docs_v30/constructors/contacts.contacts.md

42 lines
1.0 KiB
Markdown
Raw Permalink Normal View History

2020-06-16 17:50:25 +02:00
---
title: contacts.contacts
description: The current user's contact list and info on users.
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/contacts_contacts.html
---
# Constructor: contacts.contacts
[Back to constructors index](index.md)
The current user's contact list and info on users.
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|contacts|Array of [Contact](../types/Contact.md) | Yes|Contact list|
|saved\_count|[int](../types/int.md) | Yes|Number of contacts that were saved successfully|
|users|Array of [User](../types/User.md) | Yes|User list|
### 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}}
```