GroupMetadata was only loaded for the first couple chats, so you could not access it on older group chats without performing an action that would update its state
close#264
As of WhatsApp Web v2.2035.12, the structure of the return value for `uploadMedia()` now returns an object that contains the previously returned data in its `mediaEntry` property.
fix#318
* Added Option to Custom User Agent in Client
* Update Typescript Index
* Delete Variable UserAgent From Client
* Update Variable UserAgent to userAgent
After this commit, previews for links will be enabled by default. To disable it, use linkPreview: false as an option when sending the message.
close#98
New "change_battery" event is triggered when the battery percentage changes. Has current battery percentage and charging state as object param.
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
Messages created by the current client don't have attatched media on message_create because it is still being uploaded and sent. This event allows you to detect when the media has been properly sent so it can be downloaded.
close#111
After this commit, chats will be automatically marked as seen when a message is sent to it. If this is not the intended behavior, `sendSeen: false` can be set as part of the options object.
You can also manually mark a conversation as seen by calling the sendSeen() function on the Chat.
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
This allows you to listen for user joins or leaves, description updates, subject updates, picture updates, and group settings updates.
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
Implements ack change detection, making it possible to know when messages have been delivered, read, etc.
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
* feat : Check if the given number is a whatsapp number
- Avoids sending message to non whatsapp number
- Gets the id of the user from whatsapp server rather than generating on client