@open-wa/wa-automate-types-only 4.43.1 → 4.43.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/model/message.d.ts +16 -0
- package/package.json +1 -1
@@ -141,6 +141,10 @@ export interface Message {
|
|
141
141
|
* Is the message a "view once" message
|
142
142
|
*/
|
143
143
|
isViewOnce: boolean;
|
144
|
+
/**
|
145
|
+
* Use this to traverse the quote chain.
|
146
|
+
*/
|
147
|
+
quoteMap: QuoteMap;
|
144
148
|
/**
|
145
149
|
* The URL of the file after being uploaded to the cloud using a cloud upload message preprocessor.
|
146
150
|
*/
|
@@ -163,6 +167,18 @@ export interface Message {
|
|
163
167
|
"buttonText": string;
|
164
168
|
};
|
165
169
|
}
|
170
|
+
export interface QuoteMap {
|
171
|
+
[messageId: string]: {
|
172
|
+
/**
|
173
|
+
* The body of the message
|
174
|
+
*/
|
175
|
+
body: string;
|
176
|
+
/**
|
177
|
+
* The message ID of the message that was quoted. Null if no message was quoted.
|
178
|
+
*/
|
179
|
+
quotes?: MessageId;
|
180
|
+
};
|
181
|
+
}
|
166
182
|
export interface MessageInfoInteraction {
|
167
183
|
/**
|
168
184
|
* The contact ID of the contact that interacted with the message.
|