File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ export class MessageRaw {
3232 source_reply_id ?: string ;
3333 chatwoot ?: ChatwootMessage ;
3434 contextInfo ?: any ;
35+ status ?: wa . StatusMessage | any ;
3536}
3637
3738type MessageRawBoolean < T > = {
Original file line number Diff line number Diff line change @@ -976,6 +976,15 @@ export class BaileysStartupService extends WAStartupService {
976976 continue ;
977977 }
978978
979+ const status : Record < number , wa . StatusMessage > = {
980+ 0 : 'ERROR' ,
981+ 1 : 'PENDING' ,
982+ 2 : 'SERVER_ACK' ,
983+ 3 : 'DELIVERY_ACK' ,
984+ 4 : 'READ' ,
985+ 5 : 'PLAYED' ,
986+ } ;
987+
979988 messagesRaw . push ( {
980989 key : m . key ,
981990 pushName : m . pushName || m . key . remoteJid . split ( '@' ) [ 0 ] ,
@@ -984,6 +993,7 @@ export class BaileysStartupService extends WAStartupService {
984993 messageType : getContentType ( m . message ) ,
985994 messageTimestamp : m . messageTimestamp as number ,
986995 owner : this . instance . name ,
996+ status : m . status ? status [ m . status ] : null ,
987997 } ) ;
988998 }
989999
You can’t perform that action at this time.
0 commit comments