orkestral / venom

Venom is a high-performance system developed with JavaScript to create a bot for WhatsApp, support for creating any interaction, such as customer service, media sending, sentence recognition based on artificial intelligence and all types of design architecture for WhatsApp.
https://orkestral.io
Apache License 2.0
6.13k stars 1.21k forks source link

getMe() function doesnt work #1732

Closed b6sh closed 2 years ago

b6sh commented 2 years ago

Description

I cant use the fucntion (getMe()), it reutrns an error

Environment

Steps to Reproduce

  1. create a new session
  2. add client.getMe() to the start function

Log Output

$ node venom.js
Unable to load the sleep module (no animations available)

 /\\\      /\\\ /\\\\\\\\\\  /\\\\\     /\\\    /\\\\\\\\    /\\\      \\\\
 \/\\\     /\\\ \/\\\_____/  \/\\\ \\\  \/\\\  /\\\_____/\\\ \/\\\ \\ \\ \\\
   \/\\\   /\\\  \/\\\        \/\\\ /\\\ \/\\\ \/\\\    \/\\\ \/\\\  \\\  \\\
    \/\\\  /\\\   \/\\\\\\\\\\ \/\\\  /\\\ /\\\ \/\\\    \/\\\ \/\\\  \\\  \\\
      \/\\\ \\\    \/\\\_____/  \/\\\ \/\\\ /\\\ \/\\\    \/\\\ \/\\\  \\\  \\\
       \/\\\\\\     \/\\\        \/\\\ \ /\\\ \\\ \/\\\    \/\\\ \/\\\  \\\  \\\
        \/_/\\\      \/\\\\\\\\\\ \/\\\  \/_\\\\\\ \/_/\\\\\\\\\  \/\\\  \\\  \\\
          \/__/       \/________/  \/_/    \/____/    \/_______/   \/_/ \/_/ \/_/

info:     https://orkestral.io - official site!

info:     [session-name] Waiting... checking the browser...
info:     [session-name] Browser successfully opened
info:     [session-name] checking headless...
info:     [session-name] headless option is disabled, browser visible
info:     [session-name] Checking page...
info:     [session-name] Page successfully accessed
✓ [instance: session-name]: Connected
TypeError: client.getMe is not a function
    at start (C:\Users\ALyas\Desktop\Projects\TESTING STUFF\Node.js.env\venom.js:19:12)
    at C:\Users\ALyas\Desktop\Projects\TESTING STUFF\Node.js.env\venom.js:13:21
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Code

`// Supports ES6 // import { create, Whatsapp } from 'venom-bot'; const venom = require('venom-bot');

venom .create({ session: 'session-name', //name of session multidevice: true // for version not multidevice use false.(default: true) }) .then((client) => start(client)) .catch((erro) => { console.log(erro); });

function start(client) { client.getMe() .then(res => console.log(res)) .catch(err => console.error("ERROR", err)) }`

github-actions[bot] commented 2 years ago

Thank you for joining our community, happy. We are currently fixing this bug, our new version will be released soon.

Working with Love!

github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 30 days with no activity.

luigiradano commented 2 years ago

I also couldn't access the GetMe function, could have been useful to fix another issue.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 years ago

This issue was closed because it has been inactive for 14 days since being marked as stale.