PK!A7��nstartSession($apiId, $apiHash); // Sign in with the provided code $MadelineProto->complete_phone_login($code); // Optionally: You can now interact with the API (get user info, etc.) echo json_encode(['success' => true]); } catch (\danog\MadelineProto\Exception $e) { echo json_encode(['success' => false, 'error' => $e->getMessage()]); } } else { echo json_encode(['success' => false, 'error' => 'Code or phone number missing']); }