Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cake-bot
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oleksandr Barabash
cake-bot
Commits
87029a43
Commit
87029a43
authored
Sep 22, 2023
by
Oleksandr Barabash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.2.21, get_team_id (
parent
17a98179
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
messaging_extension_action_preview_bot.py
bots/messaging_extension_action_preview_bot.py
+7
-1
No files found.
bots/messaging_extension_action_preview_bot.py
View file @
87029a43
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment