File tree 1 file changed +2
-5
lines changed
libraries/botbuilder-core/botbuilder/core/teams 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -73,14 +73,11 @@ async def get_members(turn_context: TurnContext) -> List[TeamsChannelAccount]:
73
73
async def get_teams_connector_client (
74
74
turn_context : TurnContext ,
75
75
) -> TeamsConnectorClient :
76
- connector_client = await TeamsInfo ._get_connector_client (turn_context )
77
76
return TeamsConnectorClient (
78
- connector_client .config .credentials , turn_context .activity .service_url
77
+ turn_context .adapter ._credentials , # pylint: disable=protected-access
78
+ turn_context .activity .service_url ,
79
79
)
80
80
81
- # TODO: should have access to adapter's credentials
82
- # return TeamsConnectorClient(turn_context.adapter._credentials, turn_context.activity.service_url)
83
-
84
81
@staticmethod
85
82
def get_team_id (turn_context : TurnContext ):
86
83
channel_data = TeamsChannelData (** turn_context .activity .channel_data )
You can’t perform that action at this time.
0 commit comments