Skip to content

changeImportedContacts

Sahri Riza Umami edited this page Jun 25, 2018 · 1 revision

Changes imported contacts using the list of current user contacts saved on the device.
Imports newly added contacts and, if at least the file database is enabled, deletes recently deleted contacts. Query result depends on the result of the previous query, so only one query is possible at the same time.

changeImportedContacts(phone_number, first_name, last_name, user_id, callback, data)
Field Type Description
phone_number string Phone number of the user.
first_name string First name of the user; 1-255 characters in length.
last_name string Last name of the user.
user_id int32 Identifier of the user, if known; otherwise 0.

Example

  • Changes imported contacts using the list of current user contacts saved on the device.

    changeImportedContacts('621234567890', 'Si', 'Anu', 133780085)

    Response:

    {
      ["@type"] = "importedContacts",
      importer_count = {
        [0] = 0
      },
      user_ids = {
        [0] = 133780085
      }
    }

Frequently Asked Questions
The Functions

Clone this wiki locally