Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Any way to accept a group invite ? #43

Open
NiTRoeSE opened this issue Jul 22, 2021 · 5 comments
Open

Any way to accept a group invite ? #43

NiTRoeSE opened this issue Jul 22, 2021 · 5 comments

Comments

@NiTRoeSE
Copy link

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
Copy link
Contributor

nanu-c commented Jul 22, 2021

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.

@NiTRoeSE
Copy link
Author

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.

  • set a name in the config --> you mean the config.yml ? .. if so a name was already present.
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 

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

    Wich profile did you mean ? The profile from the bot in my signal app on my phone?

Thanks again ;)

@Hetti
Copy link

Hetti commented Dec 9, 2021

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
Copy link
Contributor

nanu-c commented Jan 3, 2022

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

@Hetti
Copy link

Hetti commented Jan 13, 2022

Now the Client autojoins, when inviting him into groups ❤️

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?

Hetti added a commit to Hetti/textsecure that referenced this issue Jan 20, 2022
Fixed the Regex for Group Messaging. See signal-golang#45 and signal-golang#43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants