From 7fabed4d305093e56174eb52e7cc8eed832127ea Mon Sep 17 00:00:00 2001 From: Attels Date: Mon, 12 Aug 2024 18:41:04 +0400 Subject: [PATCH] Returning callback to get activity on proactive message send --- libraries/botbuilder-core/botbuilder/core/bot_adapter.py | 2 +- libraries/botbuilder-core/botbuilder/core/cloud_adapter_base.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/botbuilder-core/botbuilder/core/bot_adapter.py b/libraries/botbuilder-core/botbuilder/core/bot_adapter.py index 5ab04eafb..33ba45666 100644 --- a/libraries/botbuilder-core/botbuilder/core/bot_adapter.py +++ b/libraries/botbuilder-core/botbuilder/core/bot_adapter.py @@ -182,4 +182,4 @@ async def run_pipeline( else: # callback to caller on proactive case if callback is not None: - await callback(context) + return await callback(context) diff --git a/libraries/botbuilder-core/botbuilder/core/cloud_adapter_base.py b/libraries/botbuilder-core/botbuilder/core/cloud_adapter_base.py index 454861257..ba59e3ba0 100644 --- a/libraries/botbuilder-core/botbuilder/core/cloud_adapter_base.py +++ b/libraries/botbuilder-core/botbuilder/core/cloud_adapter_base.py @@ -296,7 +296,7 @@ async def process_proactive( ) # Run the pipeline - await self.run_pipeline(context, logic) + return await self.run_pipeline(context, logic) async def process_activity( self,