Api icon indicating copy to clipboard operation
Api copied to clipboard

cURL timeout broke the upload of files

Open hb220 opened this issue 8 years ago • 0 comments

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.

hb220 avatar Apr 21 '18 22:04 hb220