mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-21 08:34:22 +01:00
activate endpoint and write swagger documentation
This commit is contained in:
@@ -1008,6 +1008,9 @@ func (s *SignalClient) SendReaction(number string, recipient string, emoji strin
|
||||
return errors.New("Invalid group id")
|
||||
}
|
||||
}
|
||||
if remove && emoji == "" {
|
||||
emoji = "👍" // emoji must not be empty to remove a reaction
|
||||
}
|
||||
|
||||
if s.signalCliMode == JsonRpc {
|
||||
type Request struct {
|
||||
@@ -1027,7 +1030,7 @@ func (s *SignalClient) SendReaction(number string, recipient string, emoji strin
|
||||
request.Emoji = emoji
|
||||
request.TargetAuthor = target_author
|
||||
request.Timestamp = timestamp
|
||||
if remove == true {
|
||||
if remove {
|
||||
request.Remove = remove
|
||||
}
|
||||
jsonRpc2Client, err := s.getJsonRpc2Client(number)
|
||||
|
||||
Reference in New Issue
Block a user