teleproto - v1.234.0
    Preparing search index...

    Interface AddContactParams

    Parameters for TelegramClient.addContact.

    interface AddContactParams {
        addPhonePrivacyException?: boolean;
        firstName: string;
        lastName?: string;
        note?: string | TextWithEntities;
        phone?: string;
    }
    Index
    addPhonePrivacyException?: boolean

    Allow the contact to see your phone number even if your privacy settings would hide it.

    firstName: string

    The contact's first name.

    lastName?: string

    The contact's last name.

    note?: string | TextWithEntities

    Private note about this contact, visible only to you.

    phone?: string

    The phone number to assign. Only needed when the user's number is hidden and you know it.