api.changeImportedContacts()
Changes imported contacts using the list of 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
Parameters
ChangeImportedContactsParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
contacts | The new list of contacts, contact's vCard are ignored and are not imported |
Returns
ApiResponse
interface:interface ApiResponse {
_: 'changeImportedContacts' | 'error'
airgram: Airgram
request: {
method: 'changeImportedContacts'
params: ChangeImportedContactsParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}