LemonChannels. ScriptSend
(lemon_channels v0.1.0)
View Source
Script-friendly outbound notifications for Telegram and Discord.
Summary
Functions
Send a script notification from CLI-style arguments.
Types
@type result() :: %{ platform: String.t(), target: String.t(), thread_id: String.t() | nil, content_bytes: non_neg_integer(), attachment_filename: String.t() | nil, attachment_filenames: [String.t()], attachment_count: non_neg_integer(), attachment_bytes: non_neg_integer() | nil, subject: String.t() | nil, account_id: String.t(), reply_to: String.t() | nil, message_id: term(), extra_message_ids: [term()], dry_run: boolean(), delivery: term() }
Functions
@spec build_payload(map(), String.t(), keyword()) :: {:ok, LemonChannels.OutboundPayload.t()} | {:error, term()}
Send a script notification from CLI-style arguments.