Quiero los datos (es decir, el valor dentro de la matriz de opciones) dentro del conjunto de opciones rojo cuando seleccioné y hice clic en el btn, mantuve una imagen y agregué el envío de acción como acción. Enviar ya que ese es mi caso de uso, estoy bastante confundido cómo puedo hacer eso , Aquí está la carga útil de la tarjeta
{ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.2", "body": [ { "type": "Input.ChoiceSet", "id": "myColor2", "style": "expanded", "value": "1", "choices": [ { "title": "Red", "value": "1" } ] }, { "type": "Image", "altText": "it's a image", "url": "https://media.istockphoto.com/vectors/bhutanese-ngultrum-btn-vector-id1304476894", "width": "100px", "height": "100px", "horizontalAlignment": "Left", "selectAction": { "type": "Action.Submit", "id": "btn", "title": "btn" } } ]}
Una vez enviado haciendo clic en el icono, el bot debería recibir una actividad de tipo message pero sin texto. Los datos que desea están en la propiedad de value .
{ "activity": { "channelData": { "postBack": true, "clientActivityID": "<REMOVED>", "clientTimestamp": "2022-04-05T18:43:17.348Z" }, "type": "message", "value": { "myColor2": "1" }, "channelId": "emulator", "from": { "id": "<REMOVED>", "name": "", "role": "user" }, "locale": "en-us", "localTimestamp": "2022-04-05T11:43:17-07:00", "localTimezone": "America/Los_Angeles", "timestamp": "2022-04-05T18:43:17.408Z", "id": "<REMOVED>", "recipient": { "id": "<REMOVED>", "name": "Bot", "role": "bot" }, "conversation": { "id": "<REMOVED>" }, "serviceUrl": "http://localhost:3212" }, "id": "<REMOVED>", "timestamp": 1649184197408 }