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