Search code examples
botframeworktelegram-bot

suggestedAction issue with telegram


I'm trying to add suggestedAction to communicate with telegram bot in this way:

"suggestedActions": { "actions": [ { "type": "imBack", "title": "Blue", "value": "color:blue" }, { "type": "imBack", "title": "Red", "value": "color:red" }, { "type": "imBack", "title": "Green", "value": "color:green" } ] }

and when user taps on button (green button, for example ) bot returns not a value (color:green) as expected but a title (Green)

With the skype bot the same code works well.


Solution

  • That's how suggested actions work with Telegram. Each channel is responsible for its own implementations. You could try designing your bot so that the title is the same as what you want your bot to return, or you could try using adaptive cards instead.