MadelineProtoDocs/old_docs/API_docs_v11/constructors/contacts.importedContacts.md

42 lines
1.3 KiB
Markdown
Raw Normal View History

2020-06-16 17:50:25 +02:00
---
title: contacts.importedContacts
description: Info on succesfully imported contacts.
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/contacts_importedContacts.html
---
# Constructor: contacts.importedContacts
[Back to constructors index](index.md)
Info on succesfully imported contacts.
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|imported|Array of [ImportedContact](../types/ImportedContact.md) | Yes|List of succesfully imported contacts|
|retry\_contacts|Array of [long](../types/long.md) | Yes|List of contact ids that could not be imported due to system limitation and will need to be imported at a later date.<br>Parameter added in [Layer 13](https://core.telegram.org/api/layers#layer-13)|
|users|Array of [User](../types/User.md) | Yes|List of users|
### Type: [contacts.ImportedContacts](../types/contacts.ImportedContacts.md)
### Example:
```php
$contacts.importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact, ImportedContact], 'retry_contacts' => [long, long], 'users' => [User, User]];
```
Or, if you're into Lua:
```lua
contacts.importedContacts={_='contacts.importedContacts', imported={ImportedContact}, retry_contacts={long}, users={User}}
```