diff --git a/src/ZM/Context/Trait/BotActionTrait.php b/src/ZM/Context/Trait/BotActionTrait.php index da8df17a..4ca3f6d4 100644 --- a/src/ZM/Context/Trait/BotActionTrait.php +++ b/src/ZM/Context/Trait/BotActionTrait.php @@ -90,6 +90,10 @@ trait BotActionTrait BotMap::$bot_coroutines[$a->echo] = $co->getCid(); $response = $co->suspend(); if ($response instanceof ActionResponse) { + $handler = new AnnotationHandler(BotAction::class); + $handler->setRuleCallback(fn (BotAction $act) => ($act->action === '' || $act->action === $action) && $act->need_response); + // container()->set(ActionResponse::class, $response); + $handler->handleAll(); return $response; } return false;