mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Update chats.ts
This commit is contained in:
@@ -777,6 +777,18 @@ export const makeChatsSocket = (config: SocketConfig) => {
|
|||||||
return appPatch(patch)
|
return appPatch(patch)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Star or Unstar a message
|
||||||
|
*/
|
||||||
|
const star = (jid, message, star) => {
|
||||||
|
return chatModify({
|
||||||
|
star: {
|
||||||
|
message,
|
||||||
|
star
|
||||||
|
}
|
||||||
|
}, jid);
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds label for the chats
|
* Adds label for the chats
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user