summaryrefslogtreecommitdiff
path: root/snac.h
diff options
context:
space:
mode:
authorStefano Marinelli <stefano@dragas.it>2024-01-12 09:54:14 +0100
committerStefano Marinelli <stefano@dragas.it>2024-01-12 09:54:14 +0100
commit2af94818377740dad047e1f3c85ce03a3e865ffe (patch)
tree0c6717f64f77acae046b85edae379b9e18fb78fc /snac.h
parentadf5623044f7dcd84edb8345595a1bda651e5cbb (diff)
Added support for ntfy notifications. You can configure either a self-hosted server or use the official ntfy.sh, and you have the option to use a private token to protect access and topics.
Diffstat (limited to 'snac.h')
-rw-r--r--snac.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/snac.h b/snac.h
index e960d0d..506257a 100644
--- a/snac.h
+++ b/snac.h
@@ -204,6 +204,7 @@ void enqueue_output(snac *snac, xs_dict *msg, xs_str *inbox, int retries, int p_
void enqueue_output_by_actor(snac *snac, xs_dict *msg, const xs_str *actor, int retries);
void enqueue_email(xs_str *msg, int retries);
void enqueue_telegram(const xs_str *msg, const char *bot, const char *chat_id);
+void enqueue_ntfy(const xs_str *msg, const char *ntfy_server, const char *ntfy_token);
void enqueue_message(snac *snac, const xs_dict *msg);
void enqueue_close_question(snac *user, const char *id, int end_secs);
void enqueue_request_replies(snac *user, const char *id);