From b5831868223178ec9137f590072ce275c265350a Mon Sep 17 00:00:00 2001 From: lloydzhou Date: Thu, 4 Jan 2024 23:03:26 +0800 Subject: [PATCH] add card action --- server/routes/lark.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server/routes/lark.py b/server/routes/lark.py index 5ff623b4..c0addbbc 100644 --- a/server/routes/lark.py +++ b/server/routes/lark.py @@ -40,6 +40,7 @@ def get_bot(self, app_id): @hook.on_bot_event(event_type="card:action") def on_card_action(bot, token, data, *args, **kwargs): app.logger.error("on_card_action %r", (bot, token, data, *args)) + # TODO 将action中的按钮,或者选择的东西,重新组织成 command 继续走parser的逻辑 @hook.on_bot_message(message_type="text")