bluebubbles-server icon indicating copy to clipboard operation
bluebubbles-server copied to clipboard

Help: chatGuid + and - meaning

Open User8395 opened this issue 1 year ago • 8 comments

When sending a message via the REST API, the chatGuid is as follows

"chatGuid": "iMessage;-;[email protected]"

My question is why is there a minus in the middle and sometimes a plus, and why is the "Chat does not exist" error thrown when using a plus instead of a minus?

User8395 avatar Aug 13 '24 23:08 User8395

So i dont think I've personally seen a + before in the chatGuid, would u happen to have an example of this? (not a bb dev though so I have WAY WAY less knowledge abt how imessage works)

mehapps avatar Aug 14 '24 01:08 mehapps

So i dont think I've personally seen a + before in the chatGuid, would u happen to have an example of this? (not a bb dev though so I have WAY WAY less knowledge abt how imessage works)

20240817_130217.jpg

User8395 avatar Aug 17 '24 17:08 User8395

DMs will be iMessage;-;{address} while group chats are iMessage;+;chat{number}

zlshames avatar Aug 17 '24 19:08 zlshames

DMs will be iMessage;-;{address} while group chats are iMessage;+;chat{number}

Can you give an example of sending to a group with 1234567890, [email protected], and 6666666666?

User8395 avatar Aug 17 '24 20:08 User8395

I guess then you would get the chatguid from that group (I usually get it through a new-message webphook) and then use it

mehapps avatar Aug 17 '24 20:08 mehapps

I guess then you would get the chatguid from that group (I usually get it through a new-message webphook) and then use it

How would that work? Does it show the guid when listing chats?

User8395 avatar Aug 17 '24 20:08 User8395

Yeah get the chat guid from an API call or something. If you have a group chat name, it'll be easily identifiable from the chat endpoint

zlshames avatar Aug 17 '24 20:08 zlshames

I guess then you would get the chatguid from that group (I usually get it through a new-message webphook) and then use it

How would that work? Does it show the guid when listing chats?

I setup the new-message webhook and then an HTTP server (there should be an example in python somewhere) then I would wait for a message from that group chat. Once it arrives look at the logs and see what the chatGUID is. There's probably a different way to do it (maybe you could send a message to the group chat and use message updates

mehapps avatar Aug 17 '24 20:08 mehapps