always failed to send image using telegram API using PHP

前端 未结 2 1937
Happy的楠姐
Happy的楠姐 2021-01-26 05:04

I want to make a function to send an image using Telegram API (reference API: https://github.com/mgp25/Telegram-Bot-API/), but when I try to run this, I always get an error like

2条回答
  •  耶瑟儿~
    2021-01-26 05:41

    I think urlencode('http://127.0.0.1/mgp25/maldini.jpg'); is the problem. You should use your provider/public IP address. Or use a relative path.

提交回复
热议问题