whatsapp-api-js

A TypeScript server agnostic Whatsapp's Official API framework

MIT License

Downloads
7.4K
Stars
142
Committers
10

Bot releases are hidden (Show)

whatsapp-api-js - Bug fixes

Published by Secreto31126 about 2 years ago

What's Changed

Full Changelog: https://github.com/Secreto31126/whatsapp-api-js/compare/0.6.1-beta.0...0.6.1-beta.1

whatsapp-api-js - 0.6.1-beta.0

Published by Secreto31126 over 2 years ago

whatsapp-api-js - Logger, replies and other bunch of things

Published by Secreto31126 over 2 years ago

What's Changed

Logger

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}`));

Reply

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")

Version bump

Now the default version of the API is v14.0 . This is the only breaking change from the previous version.

Git

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

whatsapp-api-js - Just testing the new Actions

Published by Secreto31126 over 2 years ago

whatsapp-api-js - Improved logSentMessages

Published by Secreto31126 over 2 years ago

What's Changed

Full Changelog: https://github.com/Secreto31126/whatsapp-api-js/compare/0.5.0-beta.1...0.5.0-beta.2

whatsapp-api-js - Easily log sendMessage requests

Published by Secreto31126 over 2 years ago

whatsapp-api-js - Reply to message support and bumped to v14.0

Published by Secreto31126 over 2 years ago

What's Changed

Full Changelog: https://github.com/Secreto31126/whatsapp-api-js/compare/0.4.3-beta.2...0.5.0-beta.0

whatsapp-api-js - New beta versions

Published by Secreto31126 over 2 years ago

whatsapp-api-js - Improved code porting to other Javascript's enviroments

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...

whatsapp-api-js - Quality of Life

Published by Secreto31126 over 2 years ago

What's Changed

Full Changelog: https://github.com/Secreto31126/whatsapp-api-js/compare/v0.3.0...v0.3.1

whatsapp-api-js - QR Codes Support

Published by Secreto31126 over 2 years ago

whatsapp-api-js - Bug fix for Template.Parameter

Published by Secreto31126 over 2 years ago

whatsapp-api-js - Error's messages improvement

Published by Secreto31126 over 2 years ago

whatsapp-api-js - ID support for Stickers and Videos objects

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

whatsapp-api-js - Template.ButtonComponent improvement

Published by Secreto31126 over 2 years ago

What's Changed

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

whatsapp-api-js - Bug fix for Handlers.post()

Published by Secreto31126 over 2 years ago

whatsapp-api-js - Statuses updates support

Published by Secreto31126 over 2 years ago

What's Changed

Full Changelog: https://github.com/Secreto31126/whatsapp-api-js/compare/v0.1.4...v0.1.5

whatsapp-api-js - Phone class bug solved

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.

What's Changed

Full Changelog: https://github.com/Secreto31126/whatsapp-api-js/compare/v0.1.3...v0.1.4

whatsapp-api-js - Documentation Website

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