mod/notification-*: support extra text (or emojis 🚀) in notification tags
This commit is contained in:
parent
c8e22f33c2
commit
47a657d25c
6 changed files with 16 additions and 7 deletions
|
|
@ -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") ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue