Debian Codegraph @

pkg/services/chat/signal/signal_json.go

raw
1 package signal
2
3 // sendMessagePayload is the JSON body posted to POST /v2/send.
4 type sendMessagePayload struct {
5 Message string `json:"message"`
6 Number string `json:"number"`
7 Recipients []string `json:"recipients"`
8 Base64Attachments []string `json:"base64_attachments,omitempty"`
9 TextMode string `json:"text_mode,omitempty"`
10 NotifySelf *bool `json:"notify_self,omitempty"`
11 }
12
13 // sendErrorResponse is the error body from a failed send.
14 type sendErrorResponse struct {
15 Error string `json:"error"`
16 ChallengeTokens []string `json:"challenge_tokens,omitempty"`
17 Account string `json:"account,omitempty"`
18 }