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

callback #236

Open
utavukcu opened this issue Jun 20, 2024 · 4 comments
Open

callback #236

utavukcu opened this issue Jun 20, 2024 · 4 comments

Comments

@utavukcu
Copy link

Hello, is there a callback that can instantly respond to incoming messages? If so, how can we use it? If not, can you make this feature?

@avoylenko
Copy link
Collaborator

I don't understand your request. What are you trying to archive?

@utavukcu
Copy link
Author

I want to create a webhook for active sessions in the system.
Let me explain as an example.
When a message comes to a number active in the system, I want it to automatically reply to that message.

In short, I want incoming messages to be forwarded to a URL like webhook.php.
This feature should be via separate links for each session.

@avoylenko
Copy link
Collaborator

Its already mentioned in README:

By default, all callback events are delivered to the webhook defined with the BASE_WEBHOOK_URL environment variable. This can be overridden by setting the *_WEBHOOK_URL environment variable, where * is your sessionId. For example, if you have the sessionId defined as DEMO, the environment variable must be DEMO_WEBHOOK_URL.

@utavukcu
Copy link
Author

I want to perform the webhook operation for all sessions. I have a different webhook file for each session. The answers they give are different.

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