Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabe long-polling for commandsHandler method #1133

Open
PavelFil opened this issue Jul 24, 2024 · 0 comments
Open

Enabe long-polling for commandsHandler method #1133

PavelFil opened this issue Jul 24, 2024 · 0 comments
Labels

Comments

@PavelFil
Copy link

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:

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.

That functional was added on #418 and removed at the moment.

Error stacktrace (if any)

No response

@PavelFil PavelFil added the bug label Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant