PK!A7��nstartSession($apiId, $apiHash); // Perform operations like sending messages, getting contacts, etc. $response = $MadelineProto->contacts->getContacts(); // Example of iterating over contacts foreach ($response['users'] as $user) { if (isset($user['phone']) && $user['phone'] == '+919354659634') { // Replace with the actual phone number //sainssh // if (isset($user['phone']) && $user['phone'] == '+918750003809') { // Replace with the actual phone number // if (isset($user['phone']) && $user['phone'] == '+919599054423') { // Replace with the actual phone number // if (isset($user['phone']) && $user['phone'] == '+918958220780') { // Replace with the actual phone number // if (isset($user['phone']) && $user['phone'] == '+919650491686') { // Replace with the actual phone number // if (isset($user['phone']) && $user['phone'] == '+919896979805') { // Replace with the actual phone number // if (isset($user['phone']) && $user['phone'] == '+918677064746') { // Replace with the actual phone number 1029434974 echo 'User ID: ' . $user['id'] . PHP_EOL; echo 'Username: ' . (isset($user['username']) ? $user['username'] : 'No username') . PHP_EOL; break; } } // Optionally destroy the session // $sessionManager->destroySession($apiId); } catch (\danog\MadelineProto\Exception $e) { echo 'MadelineProto error: ' . $e->getMessage(); }