Comments (4)
Let's leave the issue opened, so you can see when it's ready and we can see what we haven't done yet :)
from whatsapp-http-api.
Hi!
you can save the session , and restart the docker container with the new websocket url, is that right ?
Yes, it's right. Only whatsapp sessions are saved, no other parameters. After restart you have to "start" as session again anyway and you can do it with different webhook url and events.
As for setting different webhook url to sessions ir change it after authentication - great idea, we'll add the functional so you'll be able
- set webhook url and events at the start of session (redefine default from docker)
- change them at anytime after
from whatsapp-http-api.
okay , great , thanks 🦖 :)
from whatsapp-http-api.
Hi! Now you can configure per session webhooks and it's possible to send different events to endpoints. Please read more about it https://waha.devlike.pro/docs/how-to/webhooks/
It's not possible to change the configuration tho without restarting the session, so you'll have to stop and start the session again in that case :(
Please create an issue if it's the case that you'd love to have, we decided to postpone that implementation a bit.
Here's an example:
POST /api/sessions/start
{
"name": "default",
"config": {
"webhooks": [
{
"url": "https://httpbin.org/post",
"events": [
"message"
],
"hmac": {
"key": "your-secret-key"
},
"retries": {
"delaySeconds": 2,
"attempts": 15
},
"customHeaders": [
{
"name": "X-My-Custom-Header",
"value": "Value"
}
]
}
]
}
}
from whatsapp-http-api.
Related Issues (20)
- [BUG][NOWEB] - Different behaviour in NOWEB and WEBJS HOT 3
- [BUG][WEBJS] - /api/{session}/chats?limit=100&offset=0 HOT 5
- [Feature Request][Dashboard] - Add Custom Headers to UI HOT 1
- [Feature Request] Block and unblock users / List in contact route
- [Feature Request] - Do not restart STOPPED sessions when WHATSAPP_RESTART_ALL_SESSIONS=True (keep track of session status) HOT 5
- [Feature Request] When a new version is updated, how can I save my account without having to scan the code again HOT 2
- [BUG] - security environment variables ignored HOT 4
- [BUG][WEBJS] - Once the session is connected, the message.reaction webhook event from long ago will be received HOT 3
- [BUG][WEBJS] - READ message.ack event on Group messages HOT 2
- [BUG][WEBJS] - dockor run issue after new update HOT 1
- [Feature Request] - new group invite HOT 1
- [Feature Request] - Mark chat as unread HOT 2
- [Feature Request] - add session.created | updated | deleted events
- [Feature Request] - show "me" for STOPPED session
- [BUG][WEBJS] - Unable to Send Poll HOT 1
- PRO Plan HOT 4
- [Feature Request] Reply a media - NOWEB, WEBJS HOT 2
- [BUG][NOWEB] - It seems that the sticker cannot be downloaded HOT 2
- [Feature Request] Bring a field informing replied message HOT 1
- [BUG][WEBJS] - api/sendImage to Channel issue HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whatsapp-http-api.