File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
libraries/botbuilder-core/botbuilder/core/teams Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -107,9 +107,12 @@ async def get_members(turn_context: TurnContext) -> List[TeamsChannelAccount]:
107107 async def get_teams_connector_client (
108108 turn_context : TurnContext ,
109109 ) -> TeamsConnectorClient :
110+ # A normal connector client is retrieved in order to use the credentials
111+ # while creating a TeamsConnectorClient below
112+ connector_client = await TeamsInfo ._get_connector_client (turn_context )
113+
110114 return TeamsConnectorClient (
111- turn_context .adapter ._credentials , # pylint: disable=protected-access
112- turn_context .activity .service_url ,
115+ connector_client .config .credentials , turn_context .activity .service_url ,
113116 )
114117
115118 @staticmethod
You can’t perform that action at this time.
0 commit comments