Webhooks: post each new incoming message #7
Notifications
Due Date
No due date set.
Blocks
Depends on
#2 Exponentiation, modulo, HTTP API for chats, per-chat webhooks
sneak/simplexcalc
#6 HTTP API: register, list and remove webhooks, kept across restarts
sneak/simplexcalc
Reference: sneak/simplexcalc#7
Reference in New Issue
Block a user
Part of #2. Builds on #6 and starts from
nextonce that is merged.What. Every new incoming message in a chat is POSTed as JSON to each of that chat's webhooks.
Decisions (reversible, taken by the repo-manager):
newChatItemsevent, every received message in a direct chat (what the messages endpoint reports as"direction":"received") goes to each webhook registered on that chat:POST,Content-Type: application/json, body{"chat_id":{id},"message":{...}}with the same message record as the messages endpoint.bot.Runreturns.Done when:
simplex-chatv7.0.2 in the image: a second throwaway client sends a message and a local receiver gets the POST. Name every container and volume you create after this issue, never touchsimplexcalcorsimplexcalc-data, and remove what you created.docs/TODO.mdCompleted Steps gets a line.make checkis green.Model: opus-5-5