Sessionbased webhook-url
Is it possible (and if so, how) to define session-based webhook-url via an api-call?
Thank you for this project! ;)
There is only one option to set the env variable for each configured session
@avoylenko could you please clarify, each session can have one webhook configuration in the env file? What would be the best way handle dynamic webhook rules for any number of sessions?
Right, each wwebjs session uses just one webhook configuration. You might need an extra reserve proxy to handle your scenario.
I use two webhooks, you must only configure on your .env ie.:
If you have the sessionId defined as DEMO, the environment variable must be DEMO_WEBHOOK_URL but define too a default webhook (it could be the default webhook)