inputPhoneContact #

Phone contact.

Layer 223

inputPhoneContact#6a1dc4be flags:# client_id:long phone:string first_name:string last_name:string note:flags.0?TextWithEntities = InputContact;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
client_idlongAn 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.
phonestringPhone number
first_namestringContact's first name
last_namestringContact's last name
noteflags.0?TextWithEntitiesA private note for this contact, only visible to us; see here » for more info on contact notes.

Type #

InputContact

contacts.importContacts #

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.

contacts.importedContacts #

Info on successfully imported contacts.

Contact list #

Working with contacts.