Phone contact.
inputPhoneContact#6a1dc4be flags:# client_id:long phone:string first_name:string last_name:string note:flags.0?TextWithEntities = InputContact;
| Name | Type | Description |
|---|---|---|
| flags | # | Flags, see TL conditional fields |
| client_id | long | An arbitrary 64-bit integer: it should be set, for example, to an incremental number when using contacts.importContacts, in order to retry importing only the contacts that weren't imported successfully, according to the client_ids returned in contacts.importedContacts.retry_contacts. |
| phone | string | Phone number |
| first_name | string | Contact's first name |
| last_name | string | Contact's last name |
| note | flags.0?TextWithEntities |
Imports contacts: saves a full list on the server, adds already registered contacts to the contact list, returns added contacts and their info.
Use contacts.addContact to add Telegram contacts without actually using their phone number.
Info on successfully imported contacts.