The sendPhoto command require an argument photo defined as InputFile or String.
photo
InputFile or String
The API doc tells:
Photo to send. You can
/sendPhoto?chat_id=" -F photo="@/path/to/imagefile.jpeg" -F caption="TheImage" > /dev/null &'; echo exec($BASH_Command); ?>