From cd9a10b8eca851ddd595bb3a38b7cf15e93e6a50 Mon Sep 17 00:00:00 2001 From: Vinny Date: Thu, 24 Oct 2024 13:35:26 -0300 Subject: [PATCH] fix: Add 'isViewOnce' in message interface (#2359) --- src/api/model/message.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api/model/message.ts b/src/api/model/message.ts index be3674872..a283c3299 100644 --- a/src/api/model/message.ts +++ b/src/api/model/message.ts @@ -55,6 +55,8 @@ export interface Message { mediaKeyTimestamp: number; width: number; height: number; + /** exists when `type` is set to {@link MessageType.VIDEO} || {@link MessageType.IMAGE} */ + isViewOnce?: boolean; broadcast: boolean; /** array of the users who were mentioned in this message; given in the serialized format: "xxxxxxxxxx@c.us" / "xxxxxxxxxx@g.us" */ mentionedJidList: string[];