Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

postBacks with the Bot Framework #895

Closed
fbessez opened this issue Jun 22, 2017 · 0 comments
Closed

postBacks with the Bot Framework #895

fbessez opened this issue Jun 22, 2017 · 0 comments

Comments

@fbessez
Copy link

fbessez commented Jun 22, 2017

Hey,

I know in slackBots, that on a postBack, you can handle it with controller.on('postback_text', doThis) but how do i create a postBack in the botFramework such that the controller runs doThis.

As far as I know, any postBack on Bot Framework is returned as a user message so you would need to use controller.hears('postback_text', 'message_received', doThis) which is problematic as it will also hear a user simply typing in 'postback_text'.

https://stackoverflow.com/questions/44571198/bot-framework-event-for-postbacks says that we can use triggerActions as a work-around, but how does this work within the botkit framework?

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants