bbernhard / signal-cli-rest-api

Dockerized Signal Messenger REST API
https://bbernhard.github.io/signal-cli-rest-api/
MIT License
1.39k stars 161 forks source link

Cutting messages on sending big text #626

Open atlascoder opened 4 days ago

atlascoder commented 4 days ago

The problem

I'm sending a messages using message_emittersh | curl -X POST -H "Content-Type: application/json" -d @- 'http://172.17.0.3:8080/v2/send' and with short messages everything is well.

When I'm sending relatively big message, Iover 10 KB, - it cuts the text. In my case it's 2852 Bytes.

Are you using the latest released version?

Have you read the troubleshooting page?

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

bbernhard commented 3 days ago

Looks like this is intended behavior: https://github.com/AsamK/signal-cli/issues/1598

atlascoder commented 2 days ago

OK, could you please share an example for the REST API? I'm trying to send content as

{
  ...
  "base64_attachments": [f"data:text/x-signal-plain;filename=test.txt;base64,{base64_string}"]

}

it works, but message is not being replaced by the content of test.txt, as it mentioned here https://github.com/AsamK/signal-cli/issues/1598#issuecomment-2380901883