Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help: chatGuid + and - meaning #681

Open
User8395 opened this issue Aug 13, 2024 · 8 comments
Open

Help: chatGuid + and - meaning #681

User8395 opened this issue Aug 13, 2024 · 8 comments
Labels
question Further information is requested

Comments

@User8395
Copy link

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?

@jjoelj jjoelj added the question Further information is requested label Aug 14, 2024
@mehapps
Copy link

mehapps commented Aug 14, 2024

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)

@User8395
Copy link
Author

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

@zlshames
Copy link
Member

zlshames commented Aug 17, 2024

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

@User8395
Copy link
Author

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?

@mehapps
Copy link

mehapps commented Aug 17, 2024

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

@User8395
Copy link
Author

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?

@zlshames
Copy link
Member

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

@mehapps
Copy link

mehapps commented Aug 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants