WhiskeySockets / Baileys

Lightweight full-featured typescript/javascript WhatsApp Web API
https://baileys.whiskeysockets.io/
MIT License
3.68k stars 1.24k forks source link

[BUG] Star and Unstar Messages #538

Open satriowicaksn opened 9 months ago

satriowicaksn commented 9 months ago

Describe the bug Hi anyone know, how to star or unstar messages using this library ? also how to listen update from starred and unstarred messages using BaileysEventMap ?

To Reproduce Steps to reproduce the behavior:

  1. Created a new connection
  2. Try to star messages

Expected behavior We can use this functionality :

Additional context

I'm already using this to star message : sock.chatModify( { star: { messages: [{id: "STRINGOFMSGID": fromMe: false}], star: isStarred } }, jid );

but got error like method not allowed ??

My Reference why I use this function like that : https://github.com/WhiskeySockets/Baileys/pull/525

azudindaem commented 9 months ago

Sorry for the delay.. i forgot to edit chats.ts file.. this is the latest fixed

https://github.com/WhiskeySockets/Baileys/pull/539