mod/notification-*: support extra text (or emojis 🚀) in notification tags

This commit is contained in:
Christian Hesse 2023-01-11 00:31:49 +01:00
parent c8e22f33c2
commit 47a657d25c
6 changed files with 16 additions and 7 deletions

View file

@ -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") ];