TelegramBot / Api

Native PHP Wrapper for Telegram BOT API
MIT License
1.07k stars 324 forks source link

Bad Request: IMAGE_PROCESS_FAILED #302

Closed hostbox2 closed 3 years ago

hostbox2 commented 3 years ago

Good day.

$this->bot->sendPhoto( $callback->getMessage()->getChat()->getId(), // curl_file_create($innerFilePath) new \CURLFile($innerFilePath) );

Previously, this code worked without problems, the file was sent. The link to the file is exactly correct, I checked with my hands, the file exists.

Worked in the variant: curl_file_create($innerFilePath) Now it doesn't work either way.

Images in PNG format, from 30 to 250 KB (in different ways)

The logs contain the error: Bad Request: IMAGE_PROCESS_FAILED

Library version latest: v2.3.17

All other functions (sendMessage, sendChatAction) work perfectly