Interface ImportedContact

Describes a contact to import.

interface ImportedContact {
    @type: "importedContact";
    first_name: string;
    last_name: string;
    note: FormattedText;
    phone_number: string;
}

Properties

@type: "importedContact"
first_name: string

First name of the user; 1-64 characters.

last_name: string

Last name of the user; 0-64 characters.

Note to add about the user; 0-getOption("user_note_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed; pass null to keep the current user's note.

phone_number: string

Phone number of the user.