* 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.
13
*/
14
class ChangeImportedContacts extends TdFunction
15
{
16
public const TYPE_NAME = 'changeImportedContacts';
17
18
/**
19
* The new list of contacts, contact's vCard are ignored and are not imported.
20
*
21
* @var Contact[]
22
*/
23
protected array $contacts;
24
25
public function __construct(array $contacts)
26
{
27
$this->contacts = $contacts;
28
}
29
30
public static function fromArray(array $array): ChangeImportedContacts