Forum Discussion
richturnbull
Feb 27, 2024Copper Contributor
Proactively messaging a users in a team
Hi, I am building a bot that can be installed into both the Team and Personal scope (RSC permissions). Once installed to a team, the bot needs to be able to message members of that team without first...
Dinesh-MSFT
Feb 28, 2024Former Employee
Hi richturnbull - Could you please refer this sample once - https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-conversation/csharp. The above sample sends messages to all the members of team but this does not use RSC permissions.
richturnbull
Feb 28, 2024Copper Contributor
Dinesh-MSFT Are you saying it's not possible with RSC? I'm just struggling to believe that a MS Teams app is that restrictive.. If it's not using RSC permissions then I'm assuming you are using Admin Consent?
Also do you have any examples in javascript? We're struggling to decipher the C# example. Thanks
- Dinesh-MSFTMar 01, 2024Former Employee
richturnbull - We do not have exact sample for your requirements. Please refer the nodeJS sample and the other sample which uses RSC permissions.
- Microsoft-Teams-Samples/samples/bot-conversation/nodejs at main · OfficeDev/Microsoft-Teams-Samples (github.com)
- Microsoft-Teams-Samples/samples/bot-receive-channel-messages-withRSC/nodejs at main · OfficeDev/Microsoft-Teams-Samples (github.com)