Feature request
I tried to send status
this code helps to get all broadcasts and user status among them
const contacts = await client.getAllContacts();
for (const contact of contacts) {
if (contact.id.server === 'broadcast' && contact.id._serialized !== 'status@broadcast') {
console.log(contact)
}
}
which mean status@broadcast is also broadcast
when sending message to broadcast evrything works just greate: text, media, location etc.
we need to add ability for 'status@broadcast' as:
await client.sendText("status@broadcast", "test");
and figure out how to do that.
let me help invastigate it if you need some help
i assume we need to select background color for text status, limit video length for 15 seconds etc.
i dont see any option to do that by whatsapp web write now
@itzharDev is this referring to the same status in #293 (like a Snapchat story)?
Yes. That's the story I'm talking about
From my investigation, I've found some status specific attributes for text statuses:
font: '1' (1/2/3/4 etc. represent different fonts)
textColor: 4294967295 (some random number - need to find the function that converts rgb to this special whatsapp number)
backgroundColor: 4294937228 (same)
__x_statusV3TextBg: "rgba(193, 160, 63, 255)"
great. let me know where it is ill try to figure it out
@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`);
var result = execSync(`npx auto-changelog -o ./tempchangelog.txt --commit-limit false --template ./compact-keepachangelog.hbs --stdout`).toString();
await postComment(result);
})();
@itzharDev Almost gave up on this one.
const statusResult = await client.postStatus('test!!!!');
console.log(statusResult);
// { status: 200, t: 1586626288 }
This feature is behind a paywall currently and will be GA on May 1, 2020. Please read the docs for more info.
https://open-wa.github.io/wa-automate-nodejs/classes/whatsapp.html#poststatus
Works perfectly
TODO:
@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`);
var result = execSync(`npx auto-changelog -o ./tempchangelog.txt --commit-limit false --template ./compact-keepachangelog.hbs --stdout`).toString();
await postComment(result);
})();
Closing for now as the initial issue is now resolved. If there are more problems please make a new issue.