Closed jclin22009 closed 2 years ago
Hi, the API should function as you're describing, but I think there's a bug in the handle comparison logic. The API should parse out if it's a group based on the handle format. If you're able to build from source could you try out this branch and let me know if that fixes it?
https://github.com/ZekeSnider/Jared/compare/zeke/fix-handle-comparison?expand=1
I think it works, thank you!
Awesome, merged that into master!
Do you mind creating a new release?
@simonwarchol yep, done! https://github.com/ZekeSnider/Jared/releases/tag/v1.5.4
How do you find the iMessage ID of a group?
/barf
should give you the info you need :)
I just don't want to send the /bark in that group chat. Is there another way?
Another way is to enable the REST API and monitor the incoming chat messages (if someone sends something to the group) and copy the ID from there.
Where exactly do I "monitor" this? Are logs stored somewhere? I've enabled REST APIs.
Check out the webhooks documentation, you can use a site like webhook.site to easily monitor requests. That will show you the content of messages including the group chat guid.
Hi,
I've been playing with Jared, and it's completely awesome! One issue I'm running into is sending messages to groups. My request is formatted as:
r = requests.post("http://localhost:3000/message",json={"body": {"message": message}, "recipient": {"handle": recipient_id}})
And I just setrecipient_id
to the iMessage id of the group (i.e.iMessage;+;chat238923983289
). However, this does not seem to work. Would you recommend adding a field in the API request for participants, or using the webhook (I notice there is an example for group messaging on the webhooks section). Thank you!