maletor
maletor

Reputation: 7122

Bot connector API: Send message to aadObjectId directly

Is there a way to send a bot message directly to an Azure Active Directory Object ID?

Upvotes: 0

Views: 463

Answers (1)

Abhijit
Abhijit

Reputation: 541

You can send message using proactive messaging as Trinetra mentioned in his comments. To send Proactive message basically you need user ID in case you want to send it to 1:1 and team/channel id in case you want to send it in channel or to team. I assume your scenario is 1:1 - for this to get user id you can use following line of code

var member = await TeamsInfo.GetMemberAsync(turnContext, turnContext.Activity.From.Id, cancellationToken);

For more details please refer this documentation.

Upvotes: 1

Related Questions