Skip to content
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

Open
vaibhav-db opened this issue Oct 6, 2023 · 2 comments
Open

Single method invoke on multiple chat button #416

vaibhav-db opened this issue Oct 6, 2023 · 2 comments
Assignees

Comments

@vaibhav-db
Copy link
Contributor

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.

@robmoffat
Copy link
Member

Hi @vaibhav-db,

I'm not sure what this problem is about - what is the underlying issue?

@robmoffat
Copy link
Member

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants