A TypeScript server agnostic Whatsapp's Official API framework
MIT License
Bot releases are visible (Hide)
Published by Secreto31126 about 2 years ago
Published by Secreto31126 about 2 years ago
Full Changelog: https://github.com/Secreto31126/whatsapp-api-js/compare/0.6.1-beta.0...0.6.1-beta.1
Published by Secreto31126 over 2 years ago
Full Changelog: https://github.com/Secreto31126/whatsapp-api-js/compare/0.5.0...0.6.1-beta.0
Published by Secreto31126 over 2 years ago
Easily log every call to sendMessage with the sent object by the bot. Useful for keeping track and debuging conversations between the bot and the client.
new WhatsAppAPI("TOKEN").logSentMessages((from, to) => console.log(`Sent message from phoneID ${from} to user ${to}`));
This option poped-up in the documentation, and even though the implementation from my code should be correct, it doesn't work. I tested it with the simplests commands and nothing. Maybe it's still not available 🤷♂️. Anyway, the code is there for when they decide to enable it.
Whatsapp.sendMessage(from, to, new Text("Hello World!"), "the-message-id-you-want-to-reply-to")
Now the default version of the API is v14.0 . This is the only breaking change from the previous version.
Minor changes to the repository. Better CI-CD, a new (and faster) documentation website, and last, but not least, there are unit tests for less than half of the code. I will consider increasing the coverage, sooner or later.
Full Changelog: https://github.com/Secreto31126/whatsapp-api-js/compare/v0.4.2...0.5.0
Published by Secreto31126 over 2 years ago
Full Changelog: https://github.com/Secreto31126/whatsapp-api-js/compare/0.5.0-beta.2...0.5.0-beta.3
Published by Secreto31126 over 2 years ago
Full Changelog: https://github.com/Secreto31126/whatsapp-api-js/compare/0.5.0-beta.1...0.5.0-beta.2
Published by Secreto31126 over 2 years ago
Full Changelog: https://github.com/Secreto31126/whatsapp-api-js/compare/0.5.0-beta.0...0.5.0-beta.1
Published by Secreto31126 over 2 years ago
Full Changelog: https://github.com/Secreto31126/whatsapp-api-js/compare/0.4.3-beta.2...0.5.0-beta.0
Published by Secreto31126 over 2 years ago
Full Changelog: https://github.com/Secreto31126/whatsapp-api-js/compare/v0.4.2...0.4.3-beta.2
Published by Secreto31126 over 2 years ago
Idk, I never in my life had so many ups and downs. Idk if I still need "cross-fetch", if the new req variable is a good idea and a lot more of things.
But one thing is certain: you can now run the code in Deno using https://esm.sh/[email protected] .
And that's all I care for.
Now, I can sleep...
Published by Secreto31126 over 2 years ago
Full Changelog: https://github.com/Secreto31126/whatsapp-api-js/compare/v0.3.0...v0.3.1
Published by Secreto31126 over 2 years ago
Full Changelog: https://github.com/Secreto31126/whatsapp-api-js/compare/v0.2.3...v0.3.0
Published by Secreto31126 over 2 years ago
Published by Secreto31126 over 2 years ago
Full Changelog: https://github.com/Secreto31126/whatsapp-api-js/compare/v0.2.1...v0.2.2
Published by Secreto31126 over 2 years ago
Even though it isn't mentioned in the API documentation, stickers and videos CAN take ids, and videos can also take captions. I discovered this reading the docs from Postman, but it didn't include stickers id neither, I had to test it to find out...
I ❤️ the documentation...
Full Changelog: https://github.com/Secreto31126/whatsapp-api-js/compare/v0.2.0...v0.2.1
Published by Secreto31126 over 2 years ago
Templates used to need a ButtonComponent per button. Now you only need 1 ButtonComponent for all the buttons. This also removed the need to include indexes and needing to specify the subtype for every component, reducing the complexity to use this class. It's a big breaking change, so I won't make the same mistake as with v0.0.4 and make it a big update :)
Full Changelog: https://github.com/Secreto31126/whatsapp-api-js/compare/v0.1.6...v0.2.0
Published by Secreto31126 over 2 years ago
Ops :)
Full Changelog: https://github.com/Secreto31126/whatsapp-api-js/compare/v0.1.5...v0.1.6
Published by Secreto31126 over 2 years ago
Full Changelog: https://github.com/Secreto31126/whatsapp-api-js/compare/v0.1.4...v0.1.5
Published by Secreto31126 over 2 years ago
So, seems like wa_id and phone properties can and must co-exist for contacts to work as expected. Solved it :)
The release also includes small jsdoc improvements.
Full Changelog: https://github.com/Secreto31126/whatsapp-api-js/compare/v0.1.3...v0.1.4
Published by Secreto31126 over 2 years ago
Added a documentation website, hosted in Firebase
Full Changelog: https://github.com/Secreto31126/whatsapp-api-js/compare/v0.1.2...v0.1.3