Open PavelFil opened 4 months ago
8.3
3.14
No response
In documentation we have the code $telegram->commandsHandler(false, ['timeout' => 30]);. But it doesn't work because the method commandsHandler doesn't take array as of second argument.
$telegram->commandsHandler(false, ['timeout' => 30]);
This is them code:
Telegram\Bot\Traits\CommandsHandler::commandsHandler(bool $webhook = false, ?RequestInterface $request = null): Update|array
There is no way to configure command handler to use ['timeout' => 30] param.
['timeout' => 30]
That functional was added on https://github.com/irazasyed/telegram-bot-sdk/pull/418 and removed at the moment.
PHP version
8.3
irazasyed/telegram-bot-sdk version
3.14
Laravel version (if any)
No response
Code To Reproduce the bug
In documentation we have the code
$telegram->commandsHandler(false, ['timeout' => 30]);
. But it doesn't work because the method commandsHandler doesn't take array as of second argument.This is them code:
There is no way to configure command handler to use
['timeout' => 30]
param.That functional was added on https://github.com/irazasyed/telegram-bot-sdk/pull/418 and removed at the moment.
Error stacktrace (if any)
No response