Skip to content

Commit b5bfdb4

Browse files
Added attachment to bulk message struct
1 parent 69ecce1 commit b5bfdb4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

api/pkg/requests/message_bulk_send_request.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ type MessageBulkSend struct {
1616
From string `json:"from" example:"+18005550199"`
1717
To []string `json:"to" example:"+18005550100,+18005550100"`
1818
Content string `json:"content" example:"This is a sample text message"`
19+
Attachments []entities.MessageAttachment `json:"attachments" validate:"optional"`
1920

2021
// Encrypted is used to determine if the content is end-to-end encrypted. Make sure to set the encryption key on the httpSMS mobile app
2122
Encrypted bool `json:"encrypted" example:"false"`
@@ -52,6 +53,7 @@ func (input *MessageBulkSend) ToMessageSendParams(userID entities.UserID, source
5253
Contact: to,
5354
SendAt: &sendAt,
5455
Content: input.Content,
56+
Attachments: input.Attachments,
5557
})
5658
}
5759

0 commit comments

Comments
 (0)