PK!A7��n new AppInfo([ 'api_id' => 'YOUR_API_ID', // Replace with your API ID from my.telegram.org 'api_hash' => 'YOUR_API_HASH', // Replace with your API Hash from my.telegram.org ]), 'connection_settings' => new Connection([ // Customize connection settings if needed, or leave empty for default settings ]) ]); // Initialize MadelineProto with the settings object $MadelineProto = new API('session.madeline', $settings); try { $MadelineProto->start(); // Start the session // Send a message using sendMessage $response = $MadelineProto->messages->sendMessage([ 'peer' => '6262498838', // Replace with the username or chat ID of the recipient // 'peer' => '6633462034', // Replace with the username or chat ID of the recipient // 'peer' => '6413886630', // Replace with the username or chat ID of the recipient // 'peer' => '780248687', // Replace with the username or chat ID of the recipient // 'peer' => '@ALAM_PERWEJ', // Replace with the username or chat ID of the recipient 'message' => 'Hello from Testing!', // The message you want to send ]); print_r($response); // Output the response for debugging } catch (\danog\MadelineProto\Exception $e) { echo 'MadelineProto error: ' . $e->getMessage(); }