mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
chat-utils: fix the clear chat chat mod
This commit is contained in:
@@ -4,7 +4,7 @@ import type { BufferedEventData } from './Events'
|
||||
import type { LabelActionBody } from './Label'
|
||||
import type { ChatLabelAssociationActionBody } from './LabelAssociation'
|
||||
import type { MessageLabelAssociationActionBody } from './LabelAssociation'
|
||||
import type { MinimalMessage } from './Message'
|
||||
import type { MinimalMessage, WAMessageKey } from './Message'
|
||||
|
||||
/** privacy settings in WhatsApp Web */
|
||||
export type WAPrivacyValue = 'all' | 'contacts' | 'contact_blacklist' | 'none'
|
||||
@@ -78,7 +78,9 @@ export type ChatModification =
|
||||
mute: number | null
|
||||
}
|
||||
| {
|
||||
clear: 'all' | { messages: { id: string, fromMe?: boolean, timestamp: number }[] }
|
||||
clear: boolean
|
||||
} | {
|
||||
deleteForMe: { deleteMedia: boolean, key: WAMessageKey, timestamp: number }
|
||||
}
|
||||
| {
|
||||
star: {
|
||||
|
||||
Reference in New Issue
Block a user