botframework-sdk
botframework-sdk copied to clipboard
DialogAction in C# ?
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.
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.
Nice :) thanks for the help !