Closed NightRannie closed 10 months ago
same issue here... Im trying to get unread messages using fetchMessages
When I run this script right after client.onready it works, but whenever I run the script in any other moment it's not working.
Duplicate of #1325
Is there an existing issue for this?
Describe the bug
the question happen to my whatsapp account From Android to IOS ,scan qrcode to login success, used chat.fetchMessages only get one message of e2e_notification, how to get all message
Expected behavior
get all message list
Steps to Reproduce the Bug or Issue
1 client.initialize 2 scan code 3 chat.fetchMessages
Relevant Code
const { clientId, options } = data const chat = await this.getChatById(options.chatId, clientId) const messages = await chat.fetchMessages({ limit: options.limit, // is 999 fromMe: false }) || []
Browser Type
Google Chrome
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
OS:electron vue for Window
Phone OS: iOS whatsapp-web.js version:1.22.1 WhatsApp Web version [run await client.getWWebVersion()]: Node.js Version:16.17.0
Additional context
No response