telegram-api
telegram-api copied to clipboard
maximum execution time error for react event loop
Hi, I created a bot using your SDK and but $loop->run(); not working and cod stop and after 60 second show this error
pls help for solve problem
Symfony\Component\Debug\Exception\FatalErrorException: Maximum execution time of 10 seconds exceeded in file F:\Programing\laravel\allMessangerBot\vendor\react\event-loop\src\StreamSelectLoop.php on line 274 Stack trace:
- Symfony\Component\Debug\Exception\FatalErrorException->() F:\Programing\laravel\allMessangerBot\vendor\react\event-loop\src\StreamSelectLoop.php:274
Hi!
This means that PHP is limited to run only for 10 seconds. This can be solved by overwriting the max_execution_time variable: https://www.php.net/manual/en/info.configuration.php#ini.max-execution-time
You can also ask your hoster whether he wants to increase this time limit, these kind of limitations are generally imposed to prevent heavy or long-running scripts from running.
@unreal4u I do not think it's up to this time because I've increased it and made no difference, and again it shows off the error !!
It's funny to use sdk for messaging that is very similar to a telegram, and it works, but it works for a broken telegram.
The line to the line that I've erased and the error occurs when the code below is to be executed $ loop-> run ();
If I delete the code above, there will be no errors and codes will run
I also used other sdks. They work fine, but I want to use your sdk because I'm comfortable with it and it's great.