:global GlobalFuncReady false;
# Git commit id & info, expected configuration version
-:global CommitId "main/317/bda7131a";
+:global CommitId "main/318/cc6455ca";
:global CommitTAG "unknown";
-:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 00:25:03 01.05.2026.";
+:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 00:30:03 01.05.2026.";
# The variables are received right here.
:global GlobalConfVersion 138;
:local Text [ :tostr $1 ];
:local Mode [ :tostr $2 ];
:local Excl [ :tostr $3 ];
+
:global CharacterReplace;
:global IfThenElse;
+
:local Chars {
"body"={ "\\"; "`" };
"plain"={ "_"; "*"; "["; "]"; "("; ")"; "~"; "`"; ">";
< :global ExitOnError; $ExitOnError $0 $Err;
---
> :global ExitOnError; $ExitOnError $0 $Err;
-95a107
->
-105a118
->
-113a127
->
-117a132
->
-119a135
->
-130c146,150
+107d117
+< :global CertificateAvailable;
+108a119
+> :global CertificateAvailable;
+135c146,150
< :if ($Mode = "body") do={:return ("```\n" . $Text . "\n```")}
---
>
> :return ("```\n" . $Text . "\n```");
> }
>
-132a153
+137a153
>
-139,140c160,168
+144,145c160,168
< :if ([ :len $TokenId ] = 0 || [ :len $ChatId ] = 0) do={:return false}
< :if ([ :typeof $TelegramMessageIDs ] = "nothing") do={:set TelegramMessageIDs ({})}
---
> :set TelegramMessageIDs ({});
> }
>
-151c179,181
+156c179,181
< } else={:set Text ($Text . [ $EscapeMD ($Notification->"message") "body" ])}
---
> } else={
> :set Text ($Text . [ $EscapeMD ($Notification->"message") "body" ]);
> }
-161a192
+166a192
>
-176c207,210
+181c207,210
< :if ([ :typeof $TelegramQueue ] = "nothing") do={:set TelegramQueue ({})}
---
>
> :if ([ :typeof $TelegramQueue ] = "nothing") do={
> :set TelegramQueue ({});
> }
-191a226
+196a226
>
-198a234
+203a234
>
-200,201c236,238
+205,206c236,238
< } do={:global ExitOnError; $ExitOnError $0 $Err}
< }
---
> } do={
> :global ExitOnError; $ExitOnError $0 $Err;
> } }
-205a243
+210a243
>
-206a245
+211a245
>