We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.17 and 4.x-dev
for v 3.17 Allowed memory size of .. exhausted in ... vendor\nutgram\nutgram\src\Handlers\CollectHandlers.php on line 97
// commit the handlers $this->handlers = array_merge_recursive($this->handlers, $this->groupHandlers);
Bug exists only if methods with pattern (onCallbackQueryData and onPreCheckoutQueryPayload) are used in logic on any group level
$bot->group([ Middleware\TestMiddlewareB::class, ], function(Nutgram $bot) { // works $bot->onCallbackQuery([Commands\TestHandler::class, 'test']); // error $bot->onCallbackQueryData('test', [Commands\TestHandler::class, 'test']); // OR // $bot->onPreCheckoutQueryPayload('test', [Commands\TestHandler::class, 'test']); $bot->group([ Middleware\TestMiddlewareC::class, Middleware\TestMiddlewareD::class, ], function(Nutgram $bot) { $bot->onCommand('start', Commands\TestHandler::class); // OR // $bot->onPreCheckoutQueryPayload('test', [Commands\TestHandler::class, 'test']); }); });
no errors for nesting groups
No response
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Nutgram version
3.17 and 4.x-dev
Describe the bug
for v 3.17
Allowed memory size of .. exhausted in ... vendor\nutgram\nutgram\src\Handlers\CollectHandlers.php on line 97
Bug exists only if methods with pattern (onCallbackQueryData and onPreCheckoutQueryPayload) are used in logic on any group level
To Reproduce
Expected behavior
no errors for nesting groups
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: