Api
Api copied to clipboard
cURL timeout broke the upload of files
Add curl timeout 5 sec #124 by McArrow was merged 23 days ago
This change was broke files upload, especially on not very fast upload channels:
Uncaught TelegramBot\Api\HttpException: Operation timed out after 5008 milliseconds with 0 bytes received.
When I try to override timeout whith curlopt:
$bot->setCurlOption(CURLOPT_TIMEOUT, 20);
nothing is happens, the timeout still 5 seconds.