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
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.