Skip to content

feat: add optional viewMode and associationType property to Message interface#2755

Merged
manfe merged 2 commits intowppconnect-team:masterfrom
SchulteV2:master
Apr 23, 2026
Merged

feat: add optional viewMode and associationType property to Message interface#2755
manfe merged 2 commits intowppconnect-team:masterfrom
SchulteV2:master

Conversation

@SchulteV2
Copy link
Copy Markdown
Contributor

@SchulteV2 SchulteV2 commented Apr 23, 2026

An example:

{
  "id": "<REDACTED_MESSAGE_KEY>",
  "viewed": false,
  "type": "unknown",
  "t": 1776858554,
  "clientReceivedTsMillis": 1776858554692,
  "notifyName": "<REDACTED_NAME>",
  "from": "<REDACTED_JID>",
  "to": "<REDACTED_JID>",
  "ack": 1,
  "invis": false,
  "isNewMsg": true,
  "star": false,
  "kicNotified": false,
  "recvFresh": true,
  "isFromTemplate": false,
  "isAdsMedia": false,
  "pollInvalidated": false,
  "isSentCagPollCreation": false,
  "latestEditMsgKey": null,
  "latestEditSenderTimestampMs": null,
  "mentionedJidList": [],
  "groupMentions": [],
  "isEventCanceled": false,
  "eventInvalidated": false,
  "isVcardOverMmsDocument": false,
  "futureproofBuffer": {},
  "futureproofParams": {
    "info": {
      "type": "chat",
      "externalId": "<REDACTED_EXTERNAL_ID>",
      "ts": 1776858554,
      "edit": -1,
      "isHsm": false,
      "count": null,
      "pushname": "<REDACTED_NAME>",
      "username": null,
      "displayName": null,
      "senderPn": {
        "server": "c.us",
        "user": "<REDACTED_PHONE>",
        "_serialized": "<REDACTED_JID>"
      },
      "senderLid": null,
      "recipientLid": null,
      "recipientPn": null,
      "peerRecipientPn": null,
      "peerRecipientLid": null,
      "peerRecipientUsername": null,
      "recipientLatestLid": null,
      "recipientUsername": null,
      "participant": null,
      "participantLid": null,
      "participantPn": null,
      "participantUsername": null,
      "category": null,
      "chat": {
        "server": "lid",
        "user": "<REDACTED_LID_USER>",
        "_serialized": "<REDACTED_JID>"
      },
      "author": {
        "server": "lid",
        "user": "<REDACTED_LID_USER>",
        "_serialized": "<REDACTED_JID>"
      },
      "originalBotRecipient": null,
      "clientReceivedTsMillis": 1776858554692,
      "msgProcessStartTsMillis": 1776858554692,
      "accountLid": {
        "server": "lid",
        "user": "<REDACTED_LID_USER>",
        "_serialized": "<REDACTED_JID>"
      }
    },
    "paymentInfo": null,
    "e2eInfo": {
      "retryCount": 0,
      "e2eType": "pkmsg",
      "hideFail": false
    },
    "bizInfo": {
      "verifiedNameCert": null,
      "verifiedLevel": null,
      "verifiedNameSerial": -1,
      "privacyMode": null
    },
    "hsmInfo": null,
    "msgMeta": {
      "isUnavailable": false,
      "isViewOnceUnavailable": false,
      "isHostedMsgUnavailable": false,
      "type": "media",
      "pollType": null,
      "origin": null,
      "rawTs": "1776858554",
      "urlNumber": false,
      "urlText": false,
      "statusMentioned": false,
      "appdata": null
    },
    "rcat": null,
    "reportingTokenInfo": {
      "stanzaTs": 1776858554,
      "reportingTag": "<REDACTED_TOKEN_BYTES>"
    }
  },
  "isForwarded": false,
  "isQuestion": false,
  "questionReplyQuotedMessage": null,
  "questionResponsesCount": 0,
  "readQuestionResponsesCount": 0,
  "forwardsCount": 0,
  "hasReaction": false,
  "newsletterAdminProfile": null,
  "parentMsgKey": {
    "fromMe": false,
    "remote": {
      "server": "lid",
      "user": "<REDACTED_LID_USER>",
      "_serialized": "<REDACTED_JID>"
    },
    "id": "<REDACTED_MESSAGE_ID>",
    "_serialized": "<REDACTED_MESSAGE_KEY>"
  },
  "associationType": "UNKNOWN",
  "viewMode": "HIDDEN",
  "messageSecret": "<REDACTED_SECRET_BYTES>",
  "productHeaderImageRejected": false,
  "lastPlaybackProgress": 0,
  "isDynamicReplyButtonsMsg": false,
  "isCarouselCard": false,
  "parentMsgId": null,
  "callSilenceReason": null,
  "isVideoCall": false,
  "callDuration": null,
  "callCreator": null,
  "callParticipants": null,
  "isCallLink": null,
  "callLinkToken": null,
  "terminatedByDeviceSwitch": null,
  "selfOtherDeviceConnected": null,
  "isMdHistoryMsg": false,
  "stickerSentTs": 0,
  "isAvatar": false,
  "lastUpdateFromServerTs": 0,
  "invokedBotWid": null,
  "bizBotType": null,
  "botResponseTargetId": null,
  "botPluginType": null,
  "botPluginReferenceIndex": null,
  "botPluginSearchProvider": null,
  "botPluginSearchUrl": null,
  "botPluginSearchQuery": null,
  "botPluginMaybeParent": false,
  "botReelPluginThumbnailCdnUrl": null,
  "botMessageDisclaimerText": null,
  "botSessionTransparencyType": null,
  "botMsgBodyType": null,
  "botModeSelection": null,
  "botModeOverride": null,
  "reportingTokenInfo": {
    "stanzaTs": 1776858554,
    "reportingTag": "<REDACTED_TOKEN_BYTES>"
  },
  "requiresDirectConnection": false,
  "bizContentPlaceholderType": null,
  "hostedBizEncStateMismatch": false,
  "senderOrRecipientAccountTypeHosted": false,
  "placeholderCreatedWhenAccountIsHosted": false,
  "groupHistoryBundleMessageKey": null,
  "groupHistoryBundleMetadata": null,
  "groupHistoryIndividualMessageInfo": null,
  "nonJidMentions": null,
  "chatId": {
    "server": "lid",
    "user": "<REDACTED_LID_USER>",
    "_serialized": "<REDACTED_JID>"
  },
  "fromMe": false,
  "sender": {
    "id": {
      "server": "lid",
      "user": "<REDACTED_LID_USER>",
      "_serialized": "<REDACTED_JID>"
    },
    "pushname": "<REDACTED_NAME>",
    "type": "in",
    "privacyMode": null,
    "labels": [],
    "textStatusLastUpdateTime": -1,
    "isUsernameContact": false,
    "syncToAddressbook": false,
    "formattedName": "<REDACTED_FORMATTED_PHONE>",
    "isMe": false,
    "isMyContact": false,
    "isPSA": {},
    "isUser": {},
    "isWAContact": true,
    "profilePicThumbObj": {
      "eurl": "<REDACTED_URL>",
      "id": {
        "server": "lid",
        "user": "<REDACTED_LID_USER>",
        "_serialized": "<REDACTED_JID>"
      },
      "img": "<REDACTED_URL>",
      "imgFull": "<REDACTED_URL>",
      "tag": "<REDACTED_TAG>"
    },
    "msgs": null
  },
  "timestamp": 1776858554,
  "isGroupMsg": false,
  "mediaData": {}
}

@manfe manfe changed the title feat: add optional viewMode property to Message interface feat: add optional viewMode and associationType property to Message interface Apr 23, 2026
@manfe manfe merged commit 454128a into wppconnect-team:master Apr 23, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants