-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add MetaAI (@bot) send/receive messages capability #1252
base: master
Are you sure you want to change the base?
Conversation
WhatsApp always sends secretMessage along with the text message
Thanks for your contribution. The next step is to wait for review and approval to merge it to main repository The community can help reacting with a thumb up (:thumbsup:) for approval and rocket (:rocket:) for who has tested it. To test this PR you can run the following command below:
|
this is good, but in whatsapp bussiness @bot is still a normal jid or sometimes a @c.us user |
Has anyone tried it? is it work? |
👍 👍 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Remove the jid map
- add Usync protocol support (to get bot info)
- add a store for message secrets (hard until Storage format is released)
- type formatting, linting
- Eliminate the need for @s.whatsapp.net entirely (whatsapp bots do not need that)
We should spearhead msmsg support as soon as possible. If @vphelipe isn't willing to apply the changes I mentioned, I'll look into implementing it myself instead. |
Aldo we need a better store based in mysql so we can handle the bot messages, polls etc |
yup, like in whatsmeow. This is coming before the end of this month (as I said we need message secret storage) |
What this PR does
Adds capability to send messages to MetaAI (@bot) via Baileys
Implements message decryption from @bot addresses
To send messages:
sock.sendMessage("867051314767696@bot", { text: 'Hi meta ai!' });
Important: getMessage must be configured in the socket for proper decryption of MetaAI and @bot messages.
Message sending ✅
Message receiving and decryption ✅
🇧🇷