Repository navigation
Instagram step 3: replies from OpenChat reach the customer (ADR-0028) - #213
Merged
Merged
Conversation
- Replies by members and the assistant go by messenger.send to the customer's IGSID with the Page's token, in parts of at most 1,000 bytes of UTF-8 (replyParts takes a size function, never splits a surrogate pair). - The 24-hour window is Messenger's, read per channel_kind; past it 409 instagram_window_closed; Meta's subcode 2534022 = window closed. - Instagram's reads (one mid, no watermark) mark parts sent before the read's time as read; echoes from the Instagram app are shown as sent from Instagram, OpenChat's own recognised by metadata or mid. - The assistant answers on Instagram, but not reactions or unsends. - API minor 13. Dashboard: window, failures, echo label in 11 languages (machine-translated). Docs updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Patrick Ng <yatping0617@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Step 3 of ADR-0028, stacked on #212.
messenger.sendandmessenger_sent. They're addressed to the customer's IGSID and sent with the Page token (POST /{page-id}/messages). Each part is at most 1,000 bytes of UTF-8:replyPartsnow takes a size function and never splits an emoji.instagram_window_closed, and Meta's subcode 2534022 is treated as "window closed". The window is also checked when the job sends, and Try again works on Instagram.pnpm verifypasses. Real-Cloudflare test on preview-ig is next.🤖 Generated with Claude Code