Is it possible to load another bot with different branding to a Teams app?

别说谁变了你拦得住时间么 提交于 2019-12-13 16:41:56

问题


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:

  1. Create a new Web App Bot in Azure with new AppId

  2. Edit the AppId and AppPassword in your bot's code

  3. Upload your edited bot to your new Web App Bot in Azure

  4. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!