From bcbcbf12ac17c06386bc6971f69e759e2bb34524 Mon Sep 17 00:00:00 2001 From: aTable Date: Wed, 4 May 2022 21:23:17 +1000 Subject: [PATCH] Update publish.md --- docs/publish.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/publish.md b/docs/publish.md index 48d8ca56..e8844f21 100644 --- a/docs/publish.md +++ b/docs/publish.md @@ -163,6 +163,27 @@ a [title](#message-title), and [tag messages](#tags-emojis) 🥳 🎉. Here's an
Urgent notification with tags and title
+A multiline message works too: + +=== "Bash" + ``` + #!/bin/bash + curl \ + -X PUT \ + -H "Title: Unauthorized access detected" \ + -H "Priority: urgent" \ + -H "Tags: warning,skull" \ + -d "Remote access detected to phils-laptop detected. +Act right away. +Or don't" \ + ntfy.sh/phil_alerts + ``` + +
+ ![priority notification](static/img/multiline-notification.png){ width=500 } +
Urgent multiline notification with tags and title
+
+ ## Message title The notification title is typically set to the topic short URL (e.g. `ntfy.sh/mytopic`). To override the title, you can set the `X-Title` header (or any of its aliases: `Title`, `ti`, or `t`).