Anton Voylenko
Anton Voylenko
Might be not possible, but check this out: https://github.com/pedroslopez/whatsapp-web.js/blob/f56d25f1c4cca15cb708b3e8b5532584c4bdf572/src/structures/Message.js#L470 This might be a good starting point for further analyses.
What exactly inside the session folder occupy the disk space?
I don't understand your request. What are you trying to archive?
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...
Might help you https://github.com/pedroslopez/whatsapp-web.js/issues/3326#issuecomment-2396828405
Here you go: ``` curl -X 'POST' \ 'http://127.0.0.1:3000/client/sendMessage/test' \ -H 'accept: */*' \ -H 'x-api-key: your_global_api_key_here' \ -H 'Content-Type: application/json' \ -d '{ "chatId": "[email protected]", "contentType": "string", "content": "Hello...
@damms005 the session name is passed as a part of URL as param: `http://127.0.0.1:3000/client/sendMessage/**test**` , in this case the session name is **test**
The swagger specification should be available on `http://localhost:2020/api-docs` in your case. Your next steps are: 1. Create a new wwebjs web session: `GET http://localhost:2020/session/start/test` 2. Get and scan the QR...
There is only one option to set the env variable for each configured session
Right, each wwebjs session uses just one webhook configuration. You might need an extra reserve proxy to handle your scenario.