signal-cli-rest-api
signal-cli-rest-api copied to clipboard
Can we get all of our contact information
The problem
Hello,
I want get all of my contacts information like the avatar but im not seeing a endpoint for that in swagger doc
For be more precise :
I call the endpoint GET host/v1/receive/number I see a new message from one of my contact like below :
{
"envelope": {
"source": "+33611111111",
"sourceNumber": "+33611111111",
"sourceUuid": "995852ae-4085-4840-9056-61831a8857ee",
"sourceName": "test user",
"sourceDevice": 1,
"timestamp": 1649940785748,
"dataMessage": {
"timestamp": 1649940785748,
"message": "Test message",
"expiresInSeconds": 0,
"viewOnce": false
}
},
"account": "+33622222222"
}
So now i want to have the avatar of +33611111111
contact
And if it is a group i want also have the avatar of the group
Is there already any endpoint existing for that ?
i saw in https://github.com/AsamK/signal-cli/blob/master/man/signal-cli.1.adoc#listcontacts there is a listContacts
param
it maybe need to import this on the api
Thanks
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
The listContacts
command can of course be exposed via REST API, but I think this one doesn't include any avatars. See https://github.com/AsamK/signal-cli/issues/869
@Tzanou123 we have a job to attach the avatar to our contributors as the avatars are stored in the signal-cli config...
if you run:
ls -llat /home/.local/share/signal-cli/avatars/
you can see that the avatar files are there with profile-{number}
or profile-{uuid}
and we've been able to use this to attach the file to our record.