PK!A7��nstartSession($apiId, $apiHash); $contact = [ '_' => 'inputPhoneContact', // 'client_id' => 807105545, 'client_id' => rand() << 32 | rand(), 'phone' => '+919354659634', // Phone number with country code 'first_name' => 'Saisnh1', // Placeholder first name 'last_name' => '' // Placeholder last name (optional) ]; // Import the contact $response = $MadelineProto->contacts->importContacts([ 'contacts' => [$contact], // Wrap the contact inside an array ]); print_r($response); // Check if the contact was imported successfully if (isset($response['users']) && count($response['users']) > 0) { foreach ($response['users'] as $user) { echo 'User imported successfully.' . PHP_EOL; echo 'User ID: ' . $user['id'] . PHP_EOL; echo 'Username: ' . (isset($user['username']) ? $user['username'] : 'No username') . PHP_EOL; } } else { echo 'No user found for the provided phone number, or import failed.' . PHP_EOL; } } catch (\danog\MadelineProto\Exception $e) { echo 'MadelineProto error: ' . $e->getMessage(); }