changeImportedContacts - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.coroutines / changeImportedContacts

changeImportedContacts

suspend fun TelegramFlow.changeImportedContacts(contacts: Array<Contact>?): ImportedContacts

Suspend function, which 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.

Parameters

contacts - The new list of contacts, contact’s vCard are ignored and are not imported.

Return ImportedContacts Represents the result of an ImportContacts request.