Search code examples
botframeworkmicrosoft-teamsazure-bot-service

Set microsoft teams bot username on a per message basis


Is there a way to set the name of a Microsoft Teams bot on a per message basis?

Slack bots allow this and I would have expected teams to do the same, but I'm not seeing anything in the bot service api docs about it.

I've tried changing the from.name property of the ActivityObject but it gets ignored (why that property exists I'm not sure).


Solution

  • Per this answer:

    The ability to support overriding app settings, including bot name, icon, and messaging endpoint, on a per tenant basis is not currently supported. It is something we are considering, but we do not have a timeframe to share.

    The only way to accomplish this would be to design your architecture such that you're literally creating a new Bot Channels Registration with each message. I do not recommend this approach.