defstudio / telegraph

Telegraph is a Laravel package for fluently interacting with Telegram Bots
MIT License
674 stars 116 forks source link

Ability to download/send larger files #591

Closed arbet closed 4 months ago

arbet commented 4 months ago

First of all, I absolutely love your package. It is so neatly well written and works much better than other established packages. Second, I get a curl timeout after 30 seconds when downloading/sending large files. Here is how to reproduce this:

$this->chat->video($file_path)->send(); or $this->chat->video($file_path)->dispatch();

After 30 seconds, I get an error since you are using the HTTP facade without giving me the option to increase the timeout. It would be great if we can add this to future versions.

In the meantime, how do you suggest I solve my problem?