如何使用Bot Framework v3更新Microsoft Teams消息扩展机器人的说明与悬停文本
Got it, let's break down how to make those two configuration tweaks for your Teams message extension using Bot Framework v3. Both changes are managed in your Teams app manifest file, so it's pretty straightforward once you know the right fields to edit:
The "about text" (the detailed description users see when checking out your extension's info) is stored in your Teams app manifest's composeExtensions section. Here's what to do:
- Open your
manifest.jsonfile (the core config file for your Teams app) - Find the
composeExtensionsarray — there should be one entry linked to your message extension bot - Locate the
descriptionfield inside that entry, then replace its value with your updated about text - Example snippet to reference:
"composeExtensions": [ { "botId": "12345678-1234-1234-1234-1234567890ab", "commands": [/* Your existing command definitions */], "description": "Your updated detailed about text goes here — this is what users see when they view your extension's full details." } ]
The text that pops up when users hover over your message extension's icon is controlled by the tooltip field in the same composeExtensions entry. Here's how to adjust it:
- In the same
composeExtensionsobject from the previous step, look for thetooltipfield (if it's missing, just add it to the object) - Set its value to your desired hover text
- Example snippet with the updated tooltip:
"composeExtensions": [ { "botId": "12345678-1234-1234-1234-1234567890ab", "title": "Your Extension's Display Name", "tooltip": "Updated hover text right here!", // This is what shows when users hover over the icon "commands": [/* Your existing command definitions */], "description": "Your updated about text" } ]
Once you've edited both fields, save the manifest.json file. Then repackage your Teams app (zip it together with your app icons if they're part of the package) and upload the updated zip file to Teams to push the changes live.
内容的提问来源于stack exchange,提问作者Mayuresh Jaiswal

