- mute(chatId, time): Promise<{
expiration: number;
isMuted: boolean;
wid: WAJS.whatsapp.Wid;
}> Parameters
- chatId: string | WAJS.whatsapp.Wid
- time: {
expiration: number | Date;
} | {
duration: number;
}
Returns Promise<{
expiration: number;
isMuted: boolean;
wid: WAJS.whatsapp.Wid;
}>
Mute a chat, you can use duration or expiration For expiration, use unix timestamp (seconds only) For duration, use seconds