github.com/twilio/twilio-go@v1.20.1/rest/conversations/v1/model_conversations_v1_service_conversation_message.go (about) 1 /* 2 * This code was generated by 3 * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ 4 * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ 5 * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ 6 * 7 * Twilio - Conversations 8 * This is the public Twilio REST API. 9 * 10 * NOTE: This class is auto generated by OpenAPI Generator. 11 * https://openapi-generator.tech 12 * Do not edit the class manually. 13 */ 14 15 package openapi 16 17 import ( 18 "time" 19 ) 20 21 // ConversationsV1ServiceConversationMessage struct for ConversationsV1ServiceConversationMessage 22 type ConversationsV1ServiceConversationMessage struct { 23 // The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this message. 24 AccountSid *string `json:"account_sid,omitempty"` 25 // The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. 26 ChatServiceSid *string `json:"chat_service_sid,omitempty"` 27 // The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. 28 ConversationSid *string `json:"conversation_sid,omitempty"` 29 // A 34 character string that uniquely identifies this resource. 30 Sid *string `json:"sid,omitempty"` 31 // The index of the message within the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource). 32 Index *int `json:"index,omitempty"` 33 // The channel specific identifier of the message's author. Defaults to `system`. 34 Author *string `json:"author,omitempty"` 35 // The content of the message, can be up to 1,600 characters long. 36 Body *string `json:"body,omitempty"` 37 // An array of objects that describe the Message's media, if the message contains media. Each object contains these fields: `content_type` with the MIME type of the media, `filename` with the name of the media, `sid` with the SID of the Media resource, and `size` with the media object's file size in bytes. If the Message has no media, this value is `null`. 38 Media *[]interface{} `json:"media,omitempty"` 39 // A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. 40 Attributes *string `json:"attributes,omitempty"` 41 // The unique ID of messages's author participant. Null in case of `system` sent message. 42 ParticipantSid *string `json:"participant_sid,omitempty"` 43 // The date that this resource was created. 44 DateCreated *time.Time `json:"date_created,omitempty"` 45 // The date that this resource was last updated. `null` if the message has not been edited. 46 DateUpdated *time.Time `json:"date_updated,omitempty"` 47 // An object that contains the summary of delivery statuses for the message to non-chat participants. 48 Delivery *interface{} `json:"delivery,omitempty"` 49 // An absolute API resource URL for this message. 50 Url *string `json:"url,omitempty"` 51 // Contains an absolute API resource URL to access the delivery & read receipts of this message. 52 Links *map[string]interface{} `json:"links,omitempty"` 53 // The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content) template. 54 ContentSid *string `json:"content_sid,omitempty"` 55 }