libraries/botbuilder-core/botbuilder/core/bot_framework_adapter.py
async def create_conversation(self, reference: ConversationReference, logic):
        """
        Starts a new conversation with a user. This is typically used to Direct Message (DM) a member
        of a group.
        :param reference:
        :param logic:
        :return:
        """
        try:
            if reference.service_url is None:
                raise TypeError('BotFrameworkAdapter.create_conversation(): reference.service_url cannot be None.')

            # Create conversation
            parameters = ConversationParameters(bot=reference.bot)
            client = self.create_connector_client(reference.service_url)

            resource_response = await client.conversations.create_conversation(parameters)
            request = TurnContext.apply_conversation_reference(Activity(), reference, is_incoming=True)
            request.conversation = ConversationAccount(id=resource_response.id)
            if resource_response.service_url:
                request.service_url = resource_response.service_url

            context = self.create_context(request)
            return await self.run_middleware(context, logic)

        except Exception as e:
            raise e
async def create_conversation(self, reference: ConversationReference, logic):
        """
        Starts a new conversation with a user. This is typically used to Direct Message (DM) a member
        of a group.
        :param reference:
        :param logic:
        :return:
        """
        try:
            if reference.service_url is None:
                raise TypeError('BotFrameworkAdapter.create_conversation(): reference.service_url cannot be None.')

            # Create conversation
            parameters = ConversationParameters(bot=reference.bot)
            client = self.create_connector_client(reference.service_url)

            resource_response = await client.conversations.create_conversation(parameters)
            request = TurnContext.apply_conversation_reference(Activity(), reference, is_incoming=True)
            request.conversation = ConversationAccount(id=resource_response.id)
            if resource_response.service_url:
                request.service_url = resource_response.service_url

            context = self.create_context(request)
            return await self.run_middleware(context, logic)

        except Exception as e:
            raise e
async def create_conversation ( self , reference : ConversationReference , logic ) : try : if reference . service_url is None : raise TypeError ( 'BotFrameworkAdapter.create_conversation(): reference.service_url cannot be None.' ) # Create conversation parameters = ConversationParameters ( bot = reference . bot ) client = self . create_connector_client ( reference . service_url ) resource_response = await client . conversations . create_conversation ( parameters ) request = TurnContext . apply_conversation_reference ( Activity ( ) , reference , is_incoming = True ) request . conversation = ConversationAccount ( id = resource_response . id ) if resource_response . service_url : request . service_url = resource_response . service_url context = self . create_context ( request ) return await self . run_middleware ( context , logic ) except Exception as e : raise e
Starts a new conversation with a user. This is typically used to Direct Message (DM) a member
        of a group.
        :param reference:
        :param logic:
        :return:
Starts a new conversation with a user . This is typically used to Direct Message ( DM ) a member of a group . : param reference : : param logic : : return :