-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Single method invoke on multiple chat button #416
Comments
Hi @vaibhav-db, I'm not sure what this problem is about - what is the underlying issue? |
From discussion the idea of this would be a non-static approach to dispatching the action. i.e when the user clicks a button, we could pass the label of the button into a method call. This would mean that we could dynamically create buttons according to the need, rather than statically defining them in the code. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Single method invoke on multiple chat button
Description of Problem:
...Currently we have one to one mapping with chat button and its method
e.g. for poll bot, all poll option we have created separate methods, instant of we can used single method and depend up the button text we will act.
Potential Solutions:
We will create ChatButtonWorkflowResolverFactory similar to ChatVariableWorkflowResolverFactory and pass ChatButton reference to method parameter.
The text was updated successfully, but these errors were encountered: