-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
* along with WPPConnect. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
import { Wid } from './wid'; | ||
import { Chat } from './chat'; | ||
import { Contact } from './contact'; | ||
import { MessageType } from './enum'; | ||
|
@@ -30,6 +31,7 @@ export interface Message { | |
*/ | ||
subtype: string; | ||
t: number; | ||
/** profile alias chosen by the sender */ | ||
notifyName: string; | ||
from: string; | ||
to: string; | ||
|
@@ -39,6 +41,7 @@ export interface Message { | |
invis: boolean; | ||
isNewMsg: boolean; | ||
star: boolean; | ||
kicNotified: boolean; | ||
recvFresh: boolean; | ||
interactiveAnnotations: any[]; | ||
clientUrl: string; | ||
|
@@ -53,9 +56,40 @@ export interface Message { | |
width: number; | ||
height: number; | ||
broadcast: boolean; | ||
mentionedJidList: any[]; | ||
/** array of the users who were mentioned in this message; given in the serialized format: "[email protected]" / "[email protected]" */ | ||
mentionedJidList: string[]; | ||
isVcardOverMmsDocument: boolean; | ||
/** exists when `type` is set to {@link MessageType.VCARD}; it is the name of the sent contact */ | ||
vcardFormattedName?: string; | ||
isForwarded: boolean; | ||
labels: any[]; | ||
hasReaction: boolean; | ||
productHeaderImageRejected: boolean; | ||
lastPlaybackProgress: number; | ||
isDynamicReplyButtonsMsg: boolean; | ||
isCarouselCard: boolean; | ||
parentMsgId: any; //TODO: specify the type, `null` spotted often | ||
isMdHistoryMsg: boolean; | ||
stickerSentTs: number; | ||
isAvatar: boolean; | ||
lastUpdateFromServerTs: number; | ||
invokedBotWid: null | WID; | ||
Check failure on line 75 in src/api/model/message.ts GitHub Actions / build
Check failure on line 75 in src/api/model/message.ts GitHub Actions / build
Check failure on line 75 in src/api/model/message.ts GitHub Actions / build
Check failure on line 75 in src/api/model/message.ts GitHub Actions / build
Check failure on line 75 in src/api/model/message.ts GitHub Actions / build
Check failure on line 75 in src/api/model/message.ts GitHub Actions / build
Check failure on line 75 in src/api/model/message.ts GitHub Actions / lint
Check failure on line 75 in src/api/model/message.ts GitHub Actions / lint
Check failure on line 75 in src/api/model/message.ts GitHub Actions / lint
Check failure on line 75 in src/api/model/message.ts GitHub Actions / lint
Check failure on line 75 in src/api/model/message.ts GitHub Actions / lint
|
||
invokedBotWid: null; //TODO: amend this type definition | ||
Check failure on line 76 in src/api/model/message.ts GitHub Actions / build
Check failure on line 76 in src/api/model/message.ts GitHub Actions / build
Check failure on line 76 in src/api/model/message.ts GitHub Actions / build
Check failure on line 76 in src/api/model/message.ts GitHub Actions / build
Check failure on line 76 in src/api/model/message.ts GitHub Actions / lint
Check failure on line 76 in src/api/model/message.ts GitHub Actions / lint
Check failure on line 76 in src/api/model/message.ts GitHub Actions / lint
|
||
bizBotType: null; //TODO: amend this type definition | ||
botResponseTargetId: null; //TODO: amend this type definition | ||
botPluginType: null; //TODO: amend this type definition | ||
botPluginReferenceIndex: null; //TODO: amend this type definition | ||
botPluginSearchProvider: null; //TODO: amend this type definition | ||
botPluginSearchUrl: null; //TODO: amend this type definition | ||
botPluginSearchQuery: null; //TODO: amend this type definition | ||
botPluginMaybeParent: boolean; | ||
botReelPluginThumbnailCdnUrl: null; //TODO: amend this type definition | ||
botMsgBodyType: null; //TODO: amend this type definition | ||
requiresDirectConnection: null; //TODO: amend this type definition | ||
bizContentPlaceholderType: null; //TODO: amend this type definition | ||
hostedBizEncStateMismatch: boolean; | ||
senderOrRecipientAccountTypeHosted: boolean; | ||
placeholderCreatedWhenAccountIsHosted: boolean; | ||
labels?: any[]; | ||
sender: Contact; | ||
timestamp: number; | ||
content: string; | ||
|
@@ -70,6 +104,7 @@ export interface Message { | |
chat: Chat; | ||
lastSeen: null | number | boolean; | ||
chatId: string; | ||
fromMe: boolean; | ||
/** | ||
* @deprecated Use the `quotedMsgId` attribute in `getMessageById` to get the message details | ||
*/ | ||
|