Commit 4a9a5f1f by Oleksandr Barabash

bot reference time measurement added

parent 569086f6
""" Message extension bot """
import asyncio
import time
import uuid
from asyncio import Future
from typing import Optional, Dict
......@@ -245,9 +246,12 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler):
return
# save conversation reference
start = time.time()
reference = await self.cosmos_client.create_conversation_reference(
turn_context
)
Log.d(TAG, "on_message_activity::create_conversation_reference::took:"
f"{time.time() - start}")
if turn_context.activity.value is not None:
return await self.handle_submit_action(turn_context)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment