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)
- [BUG][NOWEB] - Poll was sent but always returns an exception - lastest version (2024.5.13) HOT 2
- [BUG][WEBJS] - if I start the container from our docker-compose.yaml session does not go from status: STARTING to status: SCAN_QR_CODE HOT 18
- [BUG][NOWEB] - Kick Participants HOT 2
- [Feature Request]
- [BUG][WEBJS] - message.reaction event for webhook doesnt work HOT 1
- [BUG][NOWEB] - stopped uploading status (story) HOT 2
- [BUG][WEBJS] - Sessions disapper after restart HOT 4
- [BUG][NOWEB] - Presence keeps on typing after sending message. HOT 1
- [BUG][WEBJS] - Session not starting. QR code scan continuously fails. HOT 16
- [Feature Request] Make WAHA Dashboard available in Core version as well HOT 1
- [BUG][NOWEB + WEBJS] - Receive Location in dedicated message - message.location (one time + live updates) HOT 4
- [Feature Request] WAHA - serve https traffic HOT 2
- [Feature Request] Support limit/pagination on /chats and /contacts endpoints HOT 2
- [BUG] - Build ARM docker image version
- [Feature Request] white label - check the links in examples HOT 1
- [BUG][NOWEB] - Unable to get chats HOT 5
- [BUG][WEBJS] - Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default') HOT 4
- [Feature Request] Publish Dashboard as static release files
- [BUG][WEBJS] - container not start HOT 4
- [BUG][WEBJS] - Sender presence keeps on typing after sending message. HOT 2
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.