Skip to content

How do mentions and quotes work? #334

Answered by RoadRunner-
jeffxt asked this question in Q&A
Discussion options

You must be logged in to vote

I just had a look at the code. The structures already support parameters for mentions (https://github.com/bbernhard/signal-cli-rest-api/blob/master/src/api/api.go#L100 and https://github.com/bbernhard/signal-cli-rest-api/blob/master/src/client/client.go#L62)

Using Postman, I was able to successfully send a POST message with the following body.

{
    "number": "<sender>",
    "recipients": 
    [
        "<group-id>"
    ],
    "message": "Hi X!",
    "mentions": [
        {
            "start": 3,
            "length": 1,
            "author": "<receiver>"
        }
    ]
}

I guess it just needs an update for the documentation/swagger.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jeffxt
Comment options

Answer selected by jeffxt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants