Skip to content
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

"message.chat.isGroup" returns undefined: #3253

Closed
1 task done
TVARecordings opened this issue Nov 19, 2024 · 2 comments
Closed
1 task done

"message.chat.isGroup" returns undefined: #3253

TVARecordings opened this issue Nov 19, 2024 · 2 comments

Comments

@TVARecordings
Copy link

Are you using the latest version of the library?

  • I have checked and am using the latest version of the library.

What type of session are you experiencing this issue on?

Multi-device and I have set multiDevice to true in my config OR am using the --multi-device flag

What type of host account are you experiencing this issue on?

Business account

Mode

My own code

Current Behavior

Returns undefined instead of true of false.

Expected Behavior

Return true or false

Steps To Reproduce

console.log(message.chat.isGroup = ${message.chat.isGroup})

create() code OR full CLI command + CONFIG

No response

DEBUG INFO

{
  "WA_VERSION": "2.3000.1018311685",
  "WA_AUTOMATE_VERSION": "4.74.0 UPDATE AVAILABLE: 4.74.1",
  "BROWSER_VERSION": "Chrome/131.0.6778.70",
  "START_TS": 1732010555491,
  "RAM_INFO": "Total: 68.62 GB | Free: 45.27 GB",
  "PPTR_VERSION": "23.6.0",
  "LATEST_VERSION": false,
  "CLI": false,
  "PATCH_HASH": "CACHED-3aa89",
  "LAUNCH_TIME_MS": 6450,
  "ACC_TYPE": "BUSINESS",
  "chats": 80,
  "messages": 148,
  "contacts": 13195,
  "isBiz": true,
  "isMd": true,
  "INSTANCE_ID": "8eeeeb49-0fe7-4f0f-a658-261073b0eee4"
}

Environment

- OS: Windows 10
- Node: 20.17.0
- npm: 10.8.3

Screenshots/Logs

No response

Anything else?

No response

smashah added a commit that referenced this issue Nov 21, 2024
@smashah
Copy link
Member

smashah commented Nov 21, 2024

@github-actions run

⚡ Release! ⚡
(async () => {
function exec(cmd) {
try {
	execSync(cmd, {stdio: 'inherit'})
}  catch (error) {
    console.log(`Status Code: ${error.status} with '${error.message}'`);
 }
}
//set the version type
process.env.VERS = "patch"

// 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 -D`);
exec(`npm run release-ci $VERS`);

// types only package
exec('npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN')
exec(`npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN && npm run types:publish `);
exec(`git commit -a -m 'updated types-only package'`);
exec(`git push --force`);

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

@smashah
Copy link
Member

smashah commented Nov 21, 2024

Changelog

🚀 Release 4.74.2 (2024-11-21)

@smashah smashah closed this as completed Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants