is possible to create a Message of type 'product' ?
https://github.com/Rhymen/go-whatsapp/blob/master/binary/proto/def.proto
https://blog.whatsapp.com/10000665/Introducing-Catalogs-for-Small-Businesses
https://www.youtube.com/watch?v=ugFIVoh9IEQ
I believe the quickest and easiest way would be to create the product message on the mobile device, forward to some user and use that message as a default to forward to other contacts
@marcelocecin I don't know about creation of the product but I know how to send the product to a number. Good idea.
can you share how to send the product ? thanks !
@marcelocecin Try this out.
https://github.com/smashah/sulla/commit/cb1712056842b4defe83a4ce6e118584119ec939
It's not in the client code yet.
@marcelocecin Untested. Try it out in v1.4.2 https://github.com/smashah/sulla/blob/a712ab638f732e85626896c16f4ee8c79f62fd8e/demo/index.ts#L47
@smashah it did not work:
error TypeError: Cannot read property '0' of undefined products[0].id
@github-actions run
âš¡ Release! âš¡
(async () => {
function exec(cmd) {
console.log(execSync(cmd).toString());
}
// Config
const gitUserEmail = "github-actions[bot]@users.noreply.github.com";
const gitUserName = "github-actions[bot]";
exec(`echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc`);
exec(`git config --global user.email "${gitUserEmail}"`);
exec(`git config --global user.name "${gitUserName}"`);
exec(`npm i`);
exec(`npm run release-ci`);
//comment on the issue
var result = execSync(`npx auto-changelog -o ./tempchangelog.txt --commit-limit false --template ./compact-keepachangelog.hbs --stdout`).toString();
await postComment(result);
//create changelog image
exec(`npm run release-image`);
exec(`git commit -a -m 'updated release-image'`);
exec(`git push --force`);
})();
Most helpful comment
@marcelocecin Untested. Try it out in v1.4.2 https://github.com/smashah/sulla/blob/a712ab638f732e85626896c16f4ee8c79f62fd8e/demo/index.ts#L47