signal-cli-rest-api icon indicating copy to clipboard operation
signal-cli-rest-api copied to clipboard

issue with sending a message to groups

Open jonabert opened this issue 1 year ago • 3 comments

The problem

when I copy paste the instruction from the API documentation to send a message to a group by doing curl -X POST -H "Content-Type: application/json" -d '{"message": "test 123", "number": "+YYYYYYY", "recipients": ['MYGROUP']}' 'http://127.0.0.1:8091/v2/send' I get invalid request {"error":"Couldn't process request - invalid request"}

Are you using the latest released version?

  • [X] Yes

Have you read the troubleshooting page?

  • [X] Yes

What type of installation are you running?

signal-cli-rest-api Docker Container

In which mode are you using the docker container?

Normal Mode

What's the architecture of your host system?

x86-64

Additional information

No response

jonabert avatar Oct 14 '24 13:10 jonabert

Please use a double quote (") instead of a single quote (') when specifying the group.

bbernhard avatar Oct 14 '24 14:10 bbernhard

I'm able to reproduce this issue on ARM (Mac) using the latest docker image (v0.91) as of this writing:

curl -X POST -H "Content-Type: application/json" -d '{"message": "test 123", "number": "+1555######", "recipients": ["group.longAlphanumericGroupStringHere"]}' 'http://127.0.0.1:8080/v2/send'

It returns the timestamp JSON object {"timestamp":"1737500552073"}, (emulating success) but does not deliver the group message. As a sanity check of my configuration, I am able to send messages to individual users, create groups, and list groups.

hillct avatar Jan 21 '25 23:01 hillct

I have this same issue as well. It works on individual numbers but not on group IDs.

Emerson-Lazellari avatar Feb 06 '25 21:02 Emerson-Lazellari

I'm able to reproduce this issue on ARM (Mac) using the latest docker image (v0.91) as of this writing:

curl -X POST -H "Content-Type: application/json" -d '{"message": "test 123", "number": "+1555######", "recipients": ["group.longAlphanumericGroupStringHere"]}' 'http://127.0.0.1:8080/v2/send'

It returns the timestamp JSON object {"timestamp":"1737500552073"}, (emulating success) but does not deliver the group message. As a sanity check of my configuration, I am able to send messages to individual users, create groups, and list groups.

Ditto - seem to be able to do most tasks except DM groups. This was previously working fine too (yesterday).

billyvg avatar Apr 07 '25 04:04 billyvg