Skip to main content

Module sending

Module sending 

Source
Expand description

Message sending — NIP-17 gift-wrapped DMs (text and file attachments).

This is the core send pipeline used by all Vector interfaces (GUI, CLI, SDK). Clients provide a SendCallback for status notifications (pending/sent/failed/progress) and a SendConfig for retry/cancel behavior.

Structs§

NoOpSendCallback
No-op callback for headless/CLI/test use.
SendConfig
Configuration for a send operation.
SendResult
Result of sending a message.

Traits§

SendCallback
Callbacks invoked during the DM send pipeline.

Functions§

clear_wrap_confirms
Clear on session swap — entries carry per-account chat/message ids.
note_relay_ok
Feed a relay OK for an outbound event back into the send pipeline.
send_dm
Send a NIP-17 gift-wrapped text DM.
send_file_dm
Send a NIP-17 gift-wrapped file attachment DM.
send_rumor_dm
Send a pre-built rumor via NIP-17 gift-wrap.