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.getInfo() does not show any deliveries (while WhatsApp Primary on phone shows deliveries) #3096

Open
1 task done
guy4261 opened this issue Jun 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@guy4261
Copy link

guy4261 commented Jun 11, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

With my client connected, I get my chats, for one of them - my messages, for one of the messages - its info (using getInfo()), but it is empty (=no deliveries). The entire info object is empty.

> info
{
  delivery: [],
  deliveryRemaining: 0,
  played: [],
  playedRemaining: 0,
  read: [],
  readRemaining: 0
}

Expected behavior

As this message was read by other friends in my group, I'd expect seeing them.

This is described in the official docs:

Steps to Reproduce the Bug or Issue

var chats = await client.getChats();
chats = chats.filter(c => c["isGroup"]);
var chat = chats[0];

var msgs = await chat.fetchMessages({"fromMe": true, limit: 7}) // {limit: Number, Optional}
var msg = msgs[0];

var info = await msg.getInfo();
console.log(msg.body);
console.log(info.delivery);

Relevant Code

See repro steps

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

No, I am not using Multi Device

Environment

I'm using Mac OS Sonoma 14.2 (23C64).

My phone is an iPhone SE.

As for software versions:

$ npm --version
10.2.4

$ npm version
{
  npm: '10.2.4',
  node: '21.1.0',
  acorn: '8.10.0',
  ada: '2.7.2',
  ares: '1.20.1',
  base64: '0.5.0',
  brotli: '1.1.0',
  cjs_module_lexer: '1.2.2',
  cldr: '43.1',
  icu: '73.2',
  llhttp: '9.1.2',
  modules: '120',
  napi: '9',
  nghttp2: '1.57.0',
  openssl: '3.1.3',
  simdutf: '3.2.18',
  tz: '2023c',
  undici: '5.26.4',
  unicode: '15.0',
  uv: '1.46.0',
  uvwasi: '0.0.19',
  v8: '11.8.172.15-node.14',
  zlib: '1.2.11'
}

Additional context

No response

@guy4261 guy4261 added the bug Something isn't working label Jun 11, 2024
@guy4261
Copy link
Author

guy4261 commented Jun 12, 2024

Some updates -

  1. After trying getInfo over a larger amount of messages and chats, it is not always empty, but does tend to be inaccurate (empty/partial list compared to what I see on WhatsApp Primary).

  2. This is my client configuration. I'm using this webVersionCache.remotePath to overcome a bug (picked this from here). Perhaps that's part of my problem?

const client = new Client({
    authStrategy: new LocalAuth(),
    webVersionCache: {
        type: "remote",
        remotePath: "https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.2412.54.html",
    },
    puppeteer: {
        // args: ['--proxy-server=proxy-server-that-requires-authentication.example.com'],
        headless: false
    }
});
  1. When Chromium starts (I'm not running headless for now), WhatsApp Web asks for an update. Might this be related?

Screenshot 2024-06-12 at 8 54 07

Thanks! Hope this additional information helps.

Repository owner deleted a comment from Max899-sys Jun 16, 2024
Repository owner deleted a comment from Max899-sys Jun 16, 2024
Repository owner deleted a comment from erenn44 Jun 29, 2024
Repository owner deleted a comment from enfermeiro24hrs Jun 29, 2024
@sagirr

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants