8000 Merge branch 'trboehre/teamsmeeting' of https://github.com/microsoft/… · ericmicrofocus/botbuilder-python@867d1fd · GitHub
[go: up one dir, main page]

Skip to content

Commit 867d1fd

Browse files
committed
Merge branch 'trboehre/teamsmeeting' of https://github.com/microsoft/botbuilder-python into trboehre/teamsmeeting
2 parents 899a325 + f045032 commit 867d1fd

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

libraries/botbuilder-core/botbuilder/core/teams/teams_activity_extensions.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ def teams_get_team_info(activity: Activity) -> TeamInfo:
4242
return None
4343

4444

45-
def teams_notify_user(activity: Activity):
45+
def teams_notify_user(
46+
activity: Activity, alert_in_meeting: bool = None, external_resource_url: str = None
47+
):
4648
if not activity:
4749
return
4850

@@ -51,6 +53,8 @@ def teams_notify_user(activity: Activity):
5153

5254
channel_data = TeamsChannelData().deserialize(activity.channel_data)
5355
channel_data.notification = NotificationInfo(alert=True)
56+
channel_data.notification.alert_in_meeting = alert_in_meeting
57+
channel_data.notification.external_resource_url = external_resource_url
5458
activity.channel_data = channel_data
5559

5660

libraries/botbuilder-schema/botbuilder/schema/teams/_models_py3.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,11 +946,22 @@ class NotificationInfo(Model):
946946

947947
_attribute_map = {
948948
"alert": {"key": "alert", "type": "bool"},
949+
"alert_in_meeting": {"key": "alertInMeeting", "type": "bool"},
950+
"external_resource_url": {"key": "externalResourceUrl", "type": "str"},
949951
}
950952

951-
def __init__(self, *, alert: bool = None, **kwargs) -> None:
953+
def __init__(
954+
self,
955+ *,
956+
alert: bool = None,
957+
alert_in_meeting: bool = None,
958+
external_resource_url: str = None,
959+
**kwargs
960+
) -> None:
952961
super(NotificationInfo, self).__init__(**kwargs)
953962
self.alert = alert
963+
self.alert_in_meeting = alert_in_meeting
964+
self.external_resource_url = external_resource_url
954965

955966

956967
class O365ConnectorCard(Model):

0 commit comments

Comments
 (0)
0