diff options
author | Stefano Marinelli <stefano@dragas.it> | 2024-01-12 09:54:14 +0100 |
---|---|---|
committer | Stefano Marinelli <stefano@dragas.it> | 2024-01-12 09:54:14 +0100 |
commit | 2af94818377740dad047e1f3c85ce03a3e865ffe (patch) | |
tree | 0c6717f64f77acae046b85edae379b9e18fb78fc /snac.h | |
parent | adf5623044f7dcd84edb8345595a1bda651e5cbb (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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |