botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

DialogAction in C# ?

Open shiglet opened this issue 9 years ago • 2 comments

Hi, Is there a way to bind a function to a button in a Card in C#? Like dialogAction in Nodejs ?

I want to call a certain method from my dialog when a button is hit. Thanks.

shiglet avatar Apr 14 '17 08:04 shiglet

For the channels that support it, you can use postBack (see more here) as the action type, to send a message back to the bot that is hidden from the user. You can then catch hidden message and call a function from there. You could even use a scorable to make sure the hidden message is parsed correctly. Example of scorable here.

BenjaBobs avatar Apr 18 '17 08:04 BenjaBobs

Nice :) thanks for the help !

shiglet avatar Apr 18 '17 09:04 shiglet