$bot_url = "Ваш бот";
$url = $bot_url . "sendPhoto?chat_id=Ваш чат ID" ;
$post_fields = array('chat_id' => $chat_id, 'photo' => new CURLFile(realpath($path1)) );
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPHEADER, array( "Content-Type:multipart/form-data" ));
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);
$output = curl_exec($ch);