Commit 87029a43 by Oleksandr Barabash

1.2.21, get_team_id (

parent 17a98179
......@@ -17,7 +17,7 @@ from botbuilder.schema import Activity, ActivityTypes, ResourceResponse, \
from botbuilder.schema.teams import (TaskModuleContinueResponse,
TaskModuleTaskInfo, TaskModuleResponse,
TaskModuleRequest)
from botbuilder.core.teams import TeamsActivityHandler
from botbuilder.core.teams import TeamsActivityHandler, TeamsInfo
from botframework.connector import Channels
from marshmallow import EXCLUDE, INCLUDE
......@@ -257,6 +257,12 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler):
str(turn_context.activity.conversation)
)
if turn_context.activity.channel_id == Channels.ms_teams:
team_details = await TeamsInfo.get_team_details(turn_context)
await turn_context.send_activity(
f"What is this ????: {team_details.aad_group_id}"
)
if turn_context.activity.members_removed:
# members were removed!
pass
......
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