Telegram BOT Api: how to send a photo using PHP?

后端 未结 6 1820
臣服心动
臣服心动 2020-12-24 09:32

The sendPhoto command require an argument photo defined as InputFile or String.

The API doc tells:

Photo to send. You can          


        
6条回答
  •  失恋的感觉
    2020-12-24 10:26

    /sendPhoto?chat_id=" -F photo="@/path/to/imagefile.jpeg" -F caption="TheImage" > /dev/null &';
    
    echo exec($BASH_Command);
    ?>
    

提交回复
热议问题