microsoft / botframework-sdk

Bot Framework provides the most comprehensive experience for building conversation applications.
MIT License
7.47k stars 2.44k forks source link

Add command button in message box #6589

Closed Tuan-TIT closed 1 year ago

Tuan-TIT commented 1 year ago

image

Hi,

I tried to add command button like image above but It not work My config

 "composeExtensions": [
        {
            "botId": "{{state.fx-resource-bot.botId}}",
            "canUpdateConfiguration": false,
            "commands": [
                {
                    "id": "createCard",
                    "type": "action",
                    "title": "Add Message",
                    "description": "Add new message",
                    "initialRun": false,
                    "fetchTask": true,
                    "context": [
                      "compose",
                      "commandBox",
                      "message"
                    ]
                }
            ]
        }
    ]

What is my error? Or Could you give me document for this. Thanks

anishprasad01 commented 1 year ago

Hi @Tuan-TIT,

You appear to be using TeamsFx features. The samples and support for these features are found on the Teams samples repo. You might also want to take a look at something similar in the Teams conversation bot sample and the Teams suggested actions sample.

Tuan-TIT commented 1 year ago

Hi @anishprasad01,

Yes, I tried to apply Teams converation bot in the past. for my research, the "commandList" config just support to send the back message. But my case, I want to use command to open a popup (message extension)

Tuan-TIT commented 1 year ago

hello @anishprasad01 , are you received my message?

anishprasad01 commented 1 year ago

@Tuan-TIT,

You will be able to get more specific help with Teams features on the aforementioned Teams samples repo, or on StackOverflow. We do not have control over or support for TeamsFx code.

We ask that issues opened on this repo concern SDK bugs or feature requests only.