I have code that returns me image resource ( it's GD library) like imagepng($this->image);.
And Telegram method sendPhoto.
Please, help me >< what can I do with this resource to send it to Telegram?
Documentation says
"Photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a photo from the Internet, or upload a new photo using multipart/form-data. More info on Sending Files ยป"
But I can't understand what I should make with this resource
sendPhotosends photo. check input_type - Morse