PK!A7��n new AppInfo([ 'api_id' => '20741333', // Replace with your API ID from my.telegram.org 'api_hash' => '4938bc0912c8619b2a50be85143a7944', // Replace with your API Hash from my.telegram.org ]), 'connection_settings' => new Connection([ // Customize connection settings if needed, or leave empty for default settings ]) ]); $MadelineProto = new API('session.madeline', $settings); try { $MadelineProto->start(); // Start the session // Prepare media to send $media = [ [ '_' => 'inputMediaPhotoExternal', // Use this for sending a photo from an external URL 'url' => 'https://uolcareers.co.uk/wp-content/uploads/IMG-LOGO-HOMEPAGE.png' ] ]; // Send a multimedia message $response = $MadelineProto->messages->sendMultiMedia([ 'peer' => '1082186411', // Replace with the recipient's username or chat ID 'multi_media' => [ [ '_' => 'inputSingleMedia', // Required for each media entry 'media' => $media[0], // Reference the media prepared above 'message' => 'Here is a photo for you!' // Message caption ] ], 'message' => 'Check this out!' // The overall message body ]); // Output the response for debugging print_r($response); } catch (\danog\MadelineProto\Exception $e) { echo 'MadelineProto error: ' . $e->getMessage(); }