signal-golang / textsecure

TextSecure(signal) client package for Go
GNU General Public License v3.0
57 stars 26 forks source link

Any way to accept a group invite ? #43

Open NiTRoeSE opened 3 years ago

NiTRoeSE commented 3 years ago

Hi i use "signal-web-gateway" wich uses textsecure to send signal messages from check_mk. This works fine to a single contact.

We want to send to a group which basically seems to be possible. The problem is that i found no way to accept the group invitation with textsecure.

Is there any way or workaround to achieve this ?

Thanks in advanced!

nanu-c commented 3 years ago

There is a workaround,

NiTRoeSE commented 3 years ago

There is a workaround,

  • delete the invitation
  • set a name in the config
  • send a message from textsecure to the person that's going to invite the bot to the group or wait 1day in order to get the profilekey updated
  • when you can see the set name in the profile it's save to invite the gateway again.

Thanks for your answer, i give it a try. :) In the meanwhile i was able to link a signal-desktop instance to textsecure to accept the invitation. But i always get a error and nothing happens.


tel: "+49364188997744"
uuid: 15fffa87-2db9-4c85-8d70-9f543453453ae6
server: https://textsecure-service.whispersystems.org:443
rootCA: ""
proxy: ""
verificationType: voice
storageDir: .storage
unencryptedStorage: false
storagePassword: password!
loglevel: ""
userAgent: ""
alwaysTrustPeerID: false
accountCapabilities:
  uuid: false
  gv2: true
  storage: false
  gv1-migration: false
discoverableByPhoneNumber: false
profileKey:
- 82
- 253
- 252
- 7
- 33
- 130
- 101
- 79
- 22
- 63
- 95
- 15
- 154
- 98
- 29
- 114
- 149
- 102
- 199
- 77
- 16
- 3
- 124
- 77
- 123
- 187
- 4
- 7
- 209
- 226
- 198
- 73
name: Monitoring 

Thanks again ;)

Hetti commented 2 years ago

There is a workaround,

* delete the invitation

* set a name in the config

* send a message from textsecure to the person that's going to invite the bot to the group or wait 1day in order to get the profilekey updated

* when you can see the set name in the profile it's save to invite the gateway again.

sadly this didn't worked for me, maybe I gonna wait for the profile update and try tomorrow again.

nanu-c commented 2 years ago

It's now possible with textsecure.JoinGroup(GroupID)

Hetti commented 2 years ago

Now the Client autojoins, when inviting him into groups :heart:

The only thing is, I don't have a clue how to send messages via JSON to the group. It doesn't work like sending messages to users:

curl -X POST -d '{"message":"hello"}' https://<GWURL>/json/<USER_ID>

when setting the groupid instead of the USER_ID the response is 404 and the client tries to get the PreKeys

getPreKeys <GROUP_ID> 1 
[textsecure] GET /v2/keys/<GROUP_ID>/1 404 
Error: status code 404

Any ideas?