aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-11-26 22:06:03 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-11-26 22:06:03 +0100
commitd7725540f884bf7486274f0e002cf2ba1b41306e (patch)
treeec70dac79cfc14b8cad66bdca9e326545d1987cf
parent54e164e542bcd5b220ed3cbb3ad866d53f052efe (diff)
global-functions: $SendTelegram: change internal wording
-rw-r--r--global-functions10
1 files changed, 5 insertions, 5 deletions
diff --git a/global-functions b/global-functions
index ee13de8..9c5e76e 100644
--- a/global-functions
+++ b/global-functions
@@ -779,12 +779,12 @@
:global IfThenElse;
:if ($TelegramFixedWidthFont != true) do={
- :return ($1 . [ $IfThenElse ($2 = "fixed") "\n" "" ]);
+ :return ($1 . [ $IfThenElse ($2 = "body") "\n" "" ]);
}
:local Return $1;
:local Chars {
- "fixed"={ "\\"; "`" };
+ "body"={ "\\"; "`" };
"hint"={ "_"; "*"; "["; "]"; "("; ")"; "~"; "`"; ">";
"#"; "+"; "-"; "="; "|"; "{"; "}"; "."; "!" };
}
@@ -792,7 +792,7 @@
:set Return [ $CharacterReplace $Return $Char ("\\" . $Char) ];
}
- :if ($2 = "fixed") do={
+ :if ($2 = "body") do={
:return ("```\n" . $Return . "\n```");
}
@@ -810,11 +810,11 @@
:local Text ("[" . $Identity . "] " . $Subject . "\n\n" . $Message);
:if ([ :len $Text ] > 3968) do={
- :set Text ([ $EscapeMD ([ :pick $Text 0 3840 ] . "...") "fixed" ] . \
+ :set Text ([ $EscapeMD ([ :pick $Text 0 3840 ] . "...") "body" ] . \
"\n" . [ $SymbolForNotification "scissors" ] . \
[ $EscapeMD "The Telegram message was too long and has been truncated!" "hint" ]);
} else={
- :set Text [ $EscapeMD $Text "fixed" ];
+ :set Text [ $EscapeMD $Text "body" ];
}
:set Text [ $UrlEncode $Text ];
:local ParseMode [ $IfThenElse ($TelegramFixedWidthFont = true) "MarkdownV2" "" ];