feat: Add '_routed_by_rule' variable to form action in Lark and Telegram adapters

This commit is contained in:
fdc310
2026-05-30 12:22:00 +08:00
parent b96f209b98
commit 60e5b873ee
2 changed files with 8 additions and 2 deletions

View File

@@ -940,7 +940,10 @@ class LarkAdapter(abstract_platform_adapter.AbstractMessagePlatformAdapter):
message_chain=message_chain,
adapter=self,
pipeline_uuid=pipeline_uuid,
variables={'_dify_form_action': form_action_data},
variables={
'_dify_form_action': form_action_data,
'_routed_by_rule': True,
},
)
schedule_on_app_loop(add_form_action_query())

View File

@@ -309,7 +309,10 @@ class TelegramAdapter(abstract_platform_adapter.AbstractMessagePlatformAdapter):
message_chain=message_chain,
adapter=self,
pipeline_uuid=pipeline_uuid,
variables={'_dify_form_action': form_action_data},
variables={
'_dify_form_action': form_action_data,
'_routed_by_rule': True,
},
)
except Exception:
await self.logger.error(f'Error in telegram callback query: {traceback.format_exc()}')