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

Parameters

Name Type Description
ClientId long An arbitrary 64-bit integer: it should be set, for example, to an incremental number when using contacts. import Contacts, in order to retry importing only the contacts that weren't imported successfully, according to the client_ids returned in contacts. imported Contacts. retry_contacts.
Phone string Phone number
FirstName string Contact's first name
LastName string Contact's last name
Note flags.0?TextWithEntities A private note for this contact, only visible to us; see here for more info on contact notes.

Returns

InputContact

Gogram Example

// Creating InputPhoneContact constructor
obj := &tg.InputPhoneContact{
    ClientId: int64(1234567890),
    Phone: "Hello, World!",
    FirstName: "Hello, World!",
    LastName: "Hello, World!",

    // Optional fields:
    // Note: &tg.TextWithEntities{},
}