feat: add message events for reactions

This commit is contained in:
Adhiraj Singh
2022-03-23 00:40:46 +05:30
parent 3a52f06c0f
commit 9fee7faaf6
3 changed files with 27 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
import type EventEmitter from 'events'
import { proto } from '../../WAProto'
import { AuthenticationCreds } from './Auth'
import { Chat, PresenceData } from './Chat'
import { Contact } from './Contact'
@@ -36,6 +37,7 @@ export type BaileysEventMap<T> = {
* the update will have type: "notify"
* */
'messages.upsert': { messages: WAMessage[], type: MessageUpdateType }
'messages.reaction': { key: WAMessageKey, reaction: proto.IReaction, operation: 'add' | 'remove' }
'message-receipt.update': MessageUserReceiptUpdate[]