aboutsummaryrefslogtreecommitdiffstats
path: root/mod/notification-telegram
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-01-11 00:31:49 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-01-12 15:40:05 +0100
commit47a657d25c44910b548410dea84b092e5d5488dc (patch)
tree1f816b6f15e0f5ddb6fc944a246e34580601eb55 /mod/notification-telegram
parentc8e22f33c25db61a3f8287aae812017f79e8cba1 (diff)
mod/notification-*: support extra text (or emojis 🚀) in notification tagschange-87
Diffstat (limited to 'mod/notification-telegram')
-rw-r--r--mod/notification-telegram4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/notification-telegram b/mod/notification-telegram
index de8cdd8..03ccc3b 100644
--- a/mod/notification-telegram
+++ b/mod/notification-telegram
@@ -55,6 +55,7 @@
:local Notification $1;
:global Identity;
+ :global IdentityExtra;
:global TelegramChatId;
:global TelegramChatIdOverride;
:global TelegramFixedWidthFont;
@@ -105,7 +106,8 @@
}
:local Truncated false;
- :local Text ("*__" . [ $EscapeMD ("[" . $Identity . "] " . ($Notification->"subject")) "plain" ] . "__*\n\n");
+ :local Text ("*__" . [ $EscapeMD ("[" . $IdentityExtra . $Identity . "] " . \
+ ($Notification->"subject")) "plain" ] . "__*\n\n");
:local LenSubject [ :len $Text ];
:local LenMessage [ :len ($Notification->"message") ];
:local LenLink [ :len ($Notification->"link") ];