MadelineProtoDocs/docs/API_docs/constructors/inputPhoneContact.md
2024-05-01 14:53:46 +02:00

33 lines
1.3 KiB
Markdown

---
title: "inputPhoneContact"
description: "Phone contact."
nav_exclude: true
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputPhoneContact
[Back to constructors index](/API_docs/constructors/index.html)
Phone contact.
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|client\_id|[long](/API_docs/types/long.html) | Yes|An arbitrary 64-bit integer: it should be set, for example, to an incremental number when using [contacts.importContacts](../methods/contacts.importContacts.html), in order to retry importing only the contacts that weren't imported successfully, according to the client\_ids returned in [contacts.importedContacts](../constructors/contacts.importedContacts.html).`retry_contacts`.|
|phone|[string](/API_docs/types/string.html) | Yes|Phone number|
|first\_name|[string](/API_docs/types/string.html) | Yes|Contact's first name|
|last\_name|[string](/API_docs/types/string.html) | Yes|Contact's last name|
### Type: [InputContact](/API_docs/types/InputContact.html)
### Example:
```
$inputPhoneContact = ['_' => 'inputPhoneContact', 'client_id' => long, 'phone' => 'string', 'first_name' => 'string', 'last_name' => 'string'];
```