mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-19 07:34:23 +01:00
improved code by splitting it up in different go files
This commit is contained in:
20
src/datastrutures/datastructures.go
Normal file
20
src/datastrutures/datastructures.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package datastructures
|
||||
|
||||
type SendMessageRecipient struct {
|
||||
Identifier string `json:"identifier"`
|
||||
Type string `json:"type"`
|
||||
}
|
||||
|
||||
type SendMessageV3 struct {
|
||||
Recipients []SendMessageRecipient `json:"recipients"`
|
||||
Message string `json:"message"`
|
||||
Base64Attachments []string `json:"base64_attachments" example:"<BASE64 ENCODED DATA>,data:<MIME-TYPE>;base64<comma><BASE64 ENCODED DATA>,data:<MIME-TYPE>;filename=<FILENAME>;base64<comma><BASE64 ENCODED DATA>"`
|
||||
Sticker string `json:"sticker"`
|
||||
Mentions []client.MessageMention `json:"mentions"`
|
||||
QuoteTimestamp *int64 `json:"quote_timestamp"`
|
||||
QuoteAuthor *string `json:"quote_author"`
|
||||
QuoteMessage *string `json:"quote_message"`
|
||||
QuoteMentions []client.MessageMention `json:"quote_mentions"`
|
||||
TextMode *string `json:"text_mode" enums:"normal,styled"`
|
||||
EditTimestamp *int64 `json:"edit_timestamp"`
|
||||
}
|
||||
Reference in New Issue
Block a user