Send and receive SMS messages using your Android phone programmatically via a simple HTTP API
Added attachment to bulk message struct
Jake Daynesb5bfdb45587b
diff --git a/api/pkg/requests/message_bulk_send_request.go b/api/pkg/requests/message_bulk_send_request.goindex a21570bb..47c2af7d 100644--- a/api/pkg/requests/message_bulk_send_request.go+++ b/api/pkg/requests/message_bulk_send_request.go@@ -16,6 +16,7 @@ type MessageBulkSend struct {From string `json:"from" example:"+18005550199"`To []string `json:"to" example:"+18005550100,+18005550100"`Content string `json:"content" example:"This is a sample text message"`+ Attachments []entities.MessageAttachment `json:"attachments" validate:"optional"`// Encrypted is used to determine if the content is end-to-end encrypted. Make sure to set the encryption key on the httpSMS mobile appEncrypted bool `json:"encrypted" example:"false"`@@ -52,6 +53,7 @@ func (input *MessageBulkSend) ToMessageSendParams(userID entities.UserID, sourceContact: to,SendAt: &sendAt,Content: input.Content,+ Attachments: input.Attachments,})}