events.iterate.com

Event type

events.iterate.com/telegram/message-sent

One journaled send delivered to Telegram. On the session stream it is the effect marker satisfying the send-requested at `requestOffset`; on the connection stream it is the provenance claim (`messageId`, `chatId`, `sessionPath`, `request`) the router reduces so replies to bot messages resolve to their exact thread.

Payload schema

messageIdnumber

Telegram's message_id for the sent message.

chatIdstringoptional

The chat the message went to (present on connection-stream claims).

requestOffsetnumberoptional

On session-stream markers: the offset of the send-requested this send satisfies.

requestobjectoptional

On connection-stream claims: the coordinates of the satisfied send-requested.

offsetnumber

The send-requested event's offset.

streamstring

The session stream it lives on.

sessionPathstringoptional

On connection-stream claims: the session stream — what reply hints resolve to.

Additional properties beyond the listed fields are allowed.

Raw JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "messageId": {
      "type": "number",
      "description": "Telegram's message_id for the sent message."
    },
    "chatId": {
      "description": "The chat the message went to (present on connection-stream claims).",
      "type": "string"
    },
    "requestOffset": {
      "description": "On session-stream markers: the offset of the send-requested this send satisfies.",
      "type": "number"
    },
    "request": {
      "description": "On connection-stream claims: the coordinates of the satisfied send-requested.",
      "type": "object",
      "properties": {
        "offset": {
          "type": "number",
          "description": "The send-requested event's offset."
        },
        "stream": {
          "type": "string",
          "description": "The session stream it lives on."
        }
      },
      "required": [
        "offset",
        "stream"
      ]
    },
    "sessionPath": {
      "description": "On connection-stream claims: the session stream — what reply hints resolve to.",
      "type": "string"
    }
  },
  "required": [
    "messageId"
  ],
  "additionalProperties": {}
}