8000 Merge pull request #76 from Microsoft/v-stgum/GDPR-updates · umarfarook882/botbuilder-python@8123a27 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8123a27

Browse files
authored
Merge pull request microsoft#76 from Microsoft/v-stgum/GDPR-updates
add UserAgent to new GDPR methods exposed on BotFrameworkAdapter
2 parents f3402f9 + 90ee573 commit 8123a27

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/botbuilder-core/botbuilder/core/bot_framework_adapter.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ async def delete_conversation_member(self, context: BotContext, member_id: str)
138138
service_url = context.request.service_url
139139
conversation_id = context.request.conversation.id
140140
client = ConnectorClient(self._credentials, service_url)
141+
client.config.add_user_agent(USER_AGENT)
141142
return await client.conversations.delete_conversation_member_async(conversation_id, member_id)
142143
except AttributeError as attr_e:
143144
raise attr_e
@@ -164,6 +165,7 @@ async def get_activity_members(self, context: BotContext, activity_id: str):
164165
service_url = context.request.service_url
165166
conversation_id = context.request.conversation.id
166167
client = ConnectorClient(self._credentials, service_url)
168+
client.config.add_user_agent(USER_AGENT)
167169
return await client.conversations.get_activity_members_async(conversation_id, activity_id)
168170
except Exception as e:
169171
raise e
@@ -183,6 +185,7 @@ async def get_conversation_members(self, context: BotContext):
183185
service_url = context.request.service_url
184186
conversation_id = context.request.conversation.id
185187
client = ConnectorClient(self._credentials, service_url)
188+
client.config.add_user_agent(USER_AGENT)
186189
return await client.conversations.get_conversation_members_async(conversation_id)
187190
except Exception as e:
188191
raise e
@@ -197,4 +200,5 @@ async def get_conversations(self, service_url: str, continuation_token: str=None
197200
:return:
198201
"""
199202
client = ConnectorClient(self._credentials, service_url)
203+
client.config.add_user_agent(USER_AGENT)
200204
return await client.conversations.get_conversations_async(continuation_token)

0 commit comments

Comments
 (0)
0