Comments (4)
Let me check if it works the way you described and WhatsApp sends the extra
back to us - in that case we could add extra
field in the payload as well.
Do you think it's safe to use extra
with some custom logic? It can looks suspicious from WA side, but it's up to you.
from whatsapp-http-api.
Sure, thanks a lot. Here's the related PR: pedroslopez/whatsapp-web.js#600
Since it's supported by the Whatsapp web library itself, it shouldn't be a security concern. Let me know what do you think.
Also, I'd be more than happy to work on this if you can guide me a bit.
from whatsapp-http-api.
It doesn't' work - no my_custom_key
gets back in the payload (likely WhatsApp start to cleanup the payload on WhatsApp Web before encrypting it)
from whatsapp-http-api.
It's possible to do it this way tho
extra: {
quotedMsg: {
my_custom_key: 'some-value',
},
},
in that case we get back it in _data
"quotedMsg": {
"my_custom_key": "some-value"
},
But I'm not sure about "blocking" concerns - changing payload can be detected by end clients pretty easily
I wouldn't suggest to use that feature and stick to original one only, but if you 100% wish to do that - we can do that!
With that you'll be able to also add self: "in"
in that payload to detect messages from the app (not from other sources) #304
I'd strongly recommend using extral database for that tho, but it's up to you, we can add it on our side, not a problem!
from whatsapp-http-api.
Related Issues (20)
- [Feature Request]Get Chats with NOWEB HOT 1
- [BUG][WEBJS] - payload._data.self missing in Webhook body HOT 11
- [Feature Request] White label option for swagger documentation HOT 1
- Can't install with docker HOT 3
- can we add WhatsApp call events in webhook of NOWEB Engine response ? [Feature Request]
- Send message in broadcast? HOT 2
- how to use/access it on VPS HOT 5
- [Feature Request] Additional features on GET /api/{session}/chats
- [BUG][WEBJS] - Session not starting HOT 23
- [BUG][NOWEB] - Attachment: file.data & file.url is not working HOT 2
- Stop session when QR is not valid (after some 3-4 QRs) HOT 2
- About protecting starting a session with the same name HOT 2
- [BUG][WEBJS] - GitHub Connection Error in Webhook Configuration: ECONNREFUSED When Fetching Version Information HOT 2
- [Feature Request] (Web) Get labels and get contacts by label id
- [Feature Request] [Dashboard] - show environment variables for server
- [Feature Request] Improving the status sending feature HOT 6
- [BUG][WEBJS] - Unable to send video HOT 4
- Get contact info for NOWEB HOT 1
- [BUG][NOWEB] - Send document with caption doesn't receive the download link
- Group Message Sent by participants Delete for Everyone
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.