mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-19 15:44:28 +01:00
added username support to /v2/send endpoint
This commit is contained in:
@@ -16,6 +16,7 @@ import (
|
||||
|
||||
"github.com/bbernhard/signal-cli-rest-api/client"
|
||||
utils "github.com/bbernhard/signal-cli-rest-api/utils"
|
||||
ds "github.com/bbernhard/signal-cli-rest-api/datastructs"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -112,11 +113,11 @@ type SendMessageV2 struct {
|
||||
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"`
|
||||
Mentions []ds.MessageMention `json:"mentions"`
|
||||
QuoteTimestamp *int64 `json:"quote_timestamp"`
|
||||
QuoteAuthor *string `json:"quote_author"`
|
||||
QuoteMessage *string `json:"quote_message"`
|
||||
QuoteMentions []client.MessageMention `json:"quote_mentions"`
|
||||
QuoteMentions []ds.MessageMention `json:"quote_mentions"`
|
||||
TextMode *string `json:"text_mode" enums:"normal,styled"`
|
||||
EditTimestamp *int64 `json:"edit_timestamp"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user