From ce377121c5be160e2f96b46ee42996e19adeb74c Mon Sep 17 00:00:00 2001 From: Konstantin Plis Date: Thu, 9 Nov 2023 14:20:14 +0800 Subject: [PATCH] fix: cloudAdapter.update_conversation() add app_id parameter --- .../botbuilder-core/botbuilder/core/cloud_adapter_base.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libraries/botbuilder-core/botbuilder/core/cloud_adapter_base.py b/libraries/botbuilder-core/botbuilder/core/cloud_adapter_base.py index 56976ac94..c5eda9589 100644 --- a/libraries/botbuilder-core/botbuilder/core/cloud_adapter_base.py +++ b/libraries/botbuilder-core/botbuilder/core/cloud_adapter_base.py @@ -150,6 +150,7 @@ async def continue_conversation( # pylint: disable=arguments-differ self, reference: ConversationReference, callback: Callable, + bot_app_id: str, ): """ Sends a proactive message to a conversation. @@ -161,9 +162,12 @@ async def continue_conversation( # pylint: disable=arguments-differ :type reference: :class:`botbuilder.schema.ConversationReference` :param callback: The method to call for the resulting bot turn. :type callback: :class:`typing.Callable` + :param bot_app_id: The application Id of the bot. This is the appId returned by the Azure portal registration, + and is generally found in the `MicrosoftAppId` parameter in `config.py`. + :type bot_app_id: :class:`typing.str` """ return await self.process_proactive( - self.create_claims_identity(), + self.create_claims_identity(bot_app_id), get_continuation_activity(reference), None, callback, @@ -182,7 +186,7 @@ async def continue_conversation_with_claims( async def create_conversation( # pylint: disable=arguments-differ self, - bot_app_id: ConversationReference, + bot_app_id: str, callback: Callable[[TurnContext], Awaitable] = None, conversation_parameters: ConversationParameters = None, channel_id: str = None,