mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
patch messages.update
This commit is contained in:
@@ -147,5 +147,6 @@ export interface MessageStatusUpdate {
|
||||
type: WAMessageStatus
|
||||
}
|
||||
|
||||
export type WAMessageUpdate = { update: Partial<WAMessage>, key: proto.IMessageKey }
|
||||
|
||||
export type WAMessageCursor = { before: WAMessageKey | undefined } | { after: WAMessageKey | undefined }
|
||||
@@ -16,7 +16,7 @@ import { Contact } from './Contact'
|
||||
import { ConnectionState } from './Store'
|
||||
|
||||
import { GroupMetadata, ParticipantAction } from './GroupMetadata'
|
||||
import { MessageUpdateType, WAMessage } from './Message'
|
||||
import { MessageUpdateType, WAMessage, WAMessageKey, WAMessageUpdate } from './Message'
|
||||
|
||||
/** used for binary messages */
|
||||
export enum WAMetric {
|
||||
@@ -180,7 +180,7 @@ export type BaileysEventMap = {
|
||||
'contacts.update': Partial<Contact>[]
|
||||
|
||||
'messages.delete': { jid: string, ids: string[] } | { jid: string, all: true }
|
||||
'messages.update': Partial<WAMessage>[]
|
||||
'messages.update': WAMessageUpdate[]
|
||||
'messages.upsert': { messages: WAMessage[], type: MessageUpdateType }
|
||||
|
||||
'groups.update': Partial<GroupMetadata>[]
|
||||
|
||||
Reference in New Issue
Block a user