@@ -138,6 +138,7 @@ async def delete_conversation_member(self, context: BotContext, member_id: str)
138
138
service_url = context .request .service_url
139
139
conversation_id = context .request .conversation .id
140
140
client = ConnectorClient (self ._credentials , service_url )
141
+ client .config .add_user_agent (USER_AGENT )
141
142
return await client .conversations .delete_conversation_member_async (conversation_id , member_id )
142
143
except AttributeError as attr_e :
143
144
raise attr_e
@@ -164,6 +165,7 @@ async def get_activity_members(self, context: BotContext, activity_id: str):
164
165
service_url = context .request .service_url
165
166
conversation_id = context .request .conversation .id
166
167
client = ConnectorClient (self ._credentials , service_url )
168
+ client .config .add_user_agent (USER_AGENT )
167
169
return await client .conversations .get_activity_members_async (conversation_id , activity_id )
168
170
except Exception as e :
169
171
raise e
@@ -183,6 +185,7 @@ async def get_conversation_members(self, context: BotContext):
183
185
service_url = context .request .service_url
184
186
conversation_id = context .request .conversation .id
185
187
client = ConnectorClient (self ._credentials , service_url )
188
+ client .config .add_user_agent (USER_AGENT )
186
189
return await client .conversations .get_conversation_members_async (conversation_id )
187
190
except Exception as e :
188
191
raise e
@@ -197,4 +200,5 @@ async def get_conversations(self, service_url: str, continuation_token: str=None
197
200
:return:
198
201
"""
199
202
client = ConnectorClient (self ._credentials , service_url )
203
+ client .config .add_user_agent (USER_AGENT )
200
204
return await client .conversations .get_conversations_async (continuation_token )
0 commit comments