message.sent
Fired after a bot message is accepted and persisted
When to use this
Track successful outbound delivery and update bot-side state.
Auth
Requires authenticated bot Socket.IO connection.
Event Payload
| Field | Type | Description |
|---|---|---|
event_id | string | Unique event identifier |
message | BotMessage | Sent message |
request_id | string | REST request trace ID |
sent_at | string | ISO timestamp |
Errors
No per-event error envelope; failures are emitted through message.delivery_failed.
cURL
Not applicable for inbound events.
TypeScript
socket.on("message.sent", (event) => {
console.log(`Sent ${event.message.id}`);
});Retry behavior
Treat duplicates by event_id as already-processed notifications.