mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-17 07:50:59 +00:00
feat: Add '_routed_by_rule' variable to form action in Lark and Telegram adapters
This commit is contained in:
@@ -940,7 +940,10 @@ class LarkAdapter(abstract_platform_adapter.AbstractMessagePlatformAdapter):
|
|||||||
message_chain=message_chain,
|
message_chain=message_chain,
|
||||||
adapter=self,
|
adapter=self,
|
||||||
pipeline_uuid=pipeline_uuid,
|
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())
|
schedule_on_app_loop(add_form_action_query())
|
||||||
|
|||||||
@@ -309,7 +309,10 @@ class TelegramAdapter(abstract_platform_adapter.AbstractMessagePlatformAdapter):
|
|||||||
message_chain=message_chain,
|
message_chain=message_chain,
|
||||||
adapter=self,
|
adapter=self,
|
||||||
pipeline_uuid=pipeline_uuid,
|
pipeline_uuid=pipeline_uuid,
|
||||||
variables={'_dify_form_action': form_action_data},
|
variables={
|
||||||
|
'_dify_form_action': form_action_data,
|
||||||
|
'_routed_by_rule': True,
|
||||||
|
},
|
||||||
)
|
)
|
||||||
except Exception:
|
except Exception:
|
||||||
await self.logger.error(f'Error in telegram callback query: {traceback.format_exc()}')
|
await self.logger.error(f'Error in telegram callback query: {traceback.format_exc()}')
|
||||||
|
|||||||
Reference in New Issue
Block a user