signald
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

JsonDataMessage

[source code]

This type can contain the following fields:

field type info
attachments List of v1.JsonAttachment files attached to the incoming message
body String the text body of the incoming message.
contacts List of v1.SharedContact if the incoming message has a shared contact, the contact’s information will be here
endSession boolean
expiresInSeconds int the expiry timer on the incoming message. Clients should delete records of the message within this number of seconds
group v1.JsonGroupInfo if the incoming message was sent to a v1 group, information about that group will be here
groupV2 v1.JsonGroupV2Info if the incoming message was sent to a v2 group, basic identifying information about that group will be here. If group information changes, JsonGroupV2Info.revision is incremented. If the group revision is higher than previously seen, a client can retrieve the group information by calling get_group.
group_call_update String the eraId string from a group call message update
is_expiration_update boolean whether or not this message changes the expiresInSeconds value for the whole chat. Some messages (remote deletes, reactions, etc) will have expiresInSeconds=0 even though the chat has disappearing messages enabled.
mentions List of v1.JsonMention list of mentions in the message
payment v1.Payment details about the MobileCoin payment attached to the message, if present
previews List of v1.JsonPreview if the incoming message has a link preview, information about that preview will be here
profileKeyUpdate boolean
quote v1.JsonQuote if the incoming message is a quote or reply to another message, this will contain information about that message
reaction v1.JsonReaction if the message adds or removes a reaction to another message, this will indicate what change is being made
remoteDelete v1.RemoteDelete if the inbound message is deleting a previously sent message, indicates which message should be deleted
sticker v0.JsonSticker if the incoming message is a sticker, information about the sicker will be here
story_context v1.StoryContext
timestamp long the timestamp that the message was sent at, according to the sender’s device. This is used to uniquely identify this message for things like reactions and quotes.
viewOnce boolean indicates the message is a view once message. View once messages typically include no body and a single image attachment. Official Signal clients will prevent the user from saving the image, and once the user has viewed the image once they will destroy the image.

References