问题
I have a bot, let's say, NameOne in the bot framework. The app is already published an I wish to keep it that way. However, additionally, a customer wants the exact same bot but with different icon + Name. Is there a way to repackage this bot?
Note: Just adding it to manifest editor only changes the bot name + icon in the notifications and some other places, but not in the main chat area.
回答1:
There isn't an easy way to do this, no. Teams uses the App Id to distinguish the bot, so you'd have to:
Create a new Web App Bot in Azure with new AppId
Edit the AppId and AppPassword in your bot's code
Upload your edited bot to your new Web App Bot in Azure
Create/edit the new bot's manifest and publish to Teams
Judging by your other question, it looks like you want to do this at scale. Like I said, there isn't an easy way to do this currently. However, if you're trying to implement the current setup more programmatically, you can use ARM templates from the new deployment process to speed things up a little. Unfortunately, it doesn't appear that you can programmatically set branding for an app registration.
来源:https://stackoverflow.com/questions/55992247/is-it-possible-to-load-another-bot-with-different-branding-to-a-teams-app