-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Labels
bugSomething isn't workingSomething isn't working
Description
Is there an existing issue for this?
- I have searched the existing issues.
Is this a problem caused by your code, or is it specifically because of the library?
- I have double-checked my code carefully.
Describe the bug.
When sending messages using client.sendMessage() or chat.sendMessage(), the library throws a TypeError: Cannot read properties of undefined (reading 'markedUnread') error. This occurs even when sendSeen: false is explicitly set in options, or when sendSeen is completely omitted from the options object.
Expected Behavior
client should send message smoothly
Steps to Reproduce the Bug or Issue
- Initialize a WhatsApp Web client
- Wait for client to be ready
- Attempt to send a message to an individual contact (not a group) using either:
client.sendMessage(contactId, message, options)chat.sendMessage(message, options)
- Error occurs during message sending
WhatsApp Account Type
Standard
Browser Type
Google chrome
Operation System Type
macos
Phone OS Type
Others
WhatsApp-Web.js Version
v1.34.4
WhatsApp Web Version
v1.34.4
Node.js Version
16
Authentication Strategy
LocalAuth
Additional Context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working