Messaging.MessageContract
An object representing an SMS or MMS message.
Properties
• body: string
Body of the message
• context: string
The context of the message.
• direction: string
The direction of the message: inbound
or outbound
.
• from: string
The phone number the message comes from.
• id: string
The unique identifier of the message.
• media: string
[]
Array of URLs media.
• Optional
reason: string
Reason why the message was not sent. This is present only in case of failure.
• segments: number
Number of segments of the message.
• state: MessagingMessageState
The current state of the message.
• tags: string
[]
Array of strings with message tags.
• to: string
The destination number of the message.