- A bot cannot be configured to present a distinct name depending on the tenant. It is necessary to deploy a separate bot for each tenant if you opt for personalized branding on the bot.
Also, if you use this below option while creating an app registration, you can use your bot in multitenant after deploying in any tenant, but the name would be the same. - Microsoft Teams does not directly support sending messages to groups. Instead, the sender (in this case, the bot) is responsible for obtaining the addresses of all recipients and then sending the message to each one individually. To achieve this, you can use the fetch the team roster feature to get the list of all members in the team. Once you have the list, you can send each user a direct message.
Here is a sample code snippet for fetching the team roster:
let teamDetails = await connector.fetchTeamDetailsAsync(turnContext.Activity.TeamsGetTeamInfo().Id);
And here is a sample code snippet for sending a direct message:
var response = MessageFactory.Text($"Welcome to the team {member.Name}!");
await turnContext.SendActivityAsync(response);
- By default, bots do not have the ability to act on behalf of a user. All messages sent by a bot are perceived as coming from the bot itself, not from a specific user or entity.
Thanks,
Prasad Das
*************************************************************************
If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.