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

Create group function is not working #2807

Open
princesoniversatile opened this issue Sep 16, 2024 · 0 comments
Open

Create group function is not working #2807

princesoniversatile opened this issue Sep 16, 2024 · 0 comments
Labels
bug Something isn't working needs triage Needs avaliation

Comments

@princesoniversatile
Copy link

princesoniversatile commented Sep 16, 2024

Description

Error [TypeError]: window.Store.createGroup is not a function
at window.WAPI.window.WAPI.createGroup (evaluate at Whatsapp.initService (D:\Running Projects\Group Message Testing\node_modules\venom-bot\dist\api\whatsapp.js:80:29), :0:52106)
at #evaluate (D:\Running Projects\Group Message Testing\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\ExecutionContext.js:222:56)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ExecutionContext.evaluate (D:\Running Projects\Group Message Testing\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\ExecutionContext.js:117:16)
at async IsolatedWorld.evaluate (D:\Running Projects\Group Message Testing\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\IsolatedWorld.js:124:16)
at async CdpFrame.evaluate (D:\Running Projects\Group Message Testing\node_modules\puppeteer-core\lib\cjs\puppeteer\api\Frame.js:353:20)
at async CdpPage.evaluate (D:\Running Projects\Group Message Testing\node_modules\puppeteer-core\lib\cjs\puppeteer\api\Page.js:841:20)
at async Whatsapp.createGroup (D:\Running Projects\Group Message Testing\node_modules\venom-bot\dist\api\layers\group.layer.js:278:16)
at async D:\Running Projects\Group Message Testing\index.js:349:5

Environment

  • Venom version(s): [e.g. 2.0.27, 2.2.1]
  • Browser: [e.g. Chrome 87, Chromium 85]
  • OS: [e.g. OSX 10.13.4, Windows 10]
  • Node version: [e.g. Node 8, Node 14]

Steps to Reproduce

  1. [First Step]
  2. [Second Step]
  3. [and so on...]

Log Output

Code

async (req, res) => {


  try {
    if (!clientInstance) {
      return res.status(500).json({ error: 'WhatsApp session not started' })
    }

    await clientInstance.createGroup('New Group', [
      '[email protected]',
      '[email protected]'
      // '[email protected]'
    ])

    res.json({ success: true, Data: 'Group Created' })
  } catch (error) {
    console.error(error)
    res.status(500).json({ error: error.text })
  }
})
@princesoniversatile princesoniversatile added bug Something isn't working needs triage Needs avaliation labels Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage Needs avaliation
Projects
None yet
Development

No branches or pull requests

1 participant