telegram-chat: note active state when answering broadcast

This commit is contained in:
Christian Hesse 2024-03-21 21:10:51 +01:00
parent cc81e55649
commit f72aadfc59

View file

@ -111,7 +111,7 @@
$LogPrint info $ScriptName ("Sending notice for update " . $UpdateID . "."); $LogPrint info $ScriptName ("Sending notice for update " . $UpdateID . ".");
$SendTelegram2 ({ origin=$ScriptName; chatid=($Chat->"id"); silent=true; replyto=($Message->"message_id"); \ $SendTelegram2 ({ origin=$ScriptName; chatid=($Chat->"id"); silent=true; replyto=($Message->"message_id"); \
subject=([ $SymbolForNotification "speech-balloon" ] . "Telegram Chat"); \ subject=([ $SymbolForNotification "speech-balloon" ] . "Telegram Chat"); \
message=("Online, awaiting your commands!") }); message=("Online" . [ $IfThenElse $TelegramChatActive " (and active!)" ] . ", awaiting your commands!") });
:set Done true; :set Done true;
} }
:if ($Done = false && [ :pick ($Message->"text") 0 1 ] = "!") do={ :if ($Done = false && [ :pick ($Message->"text") 0 1 ] = "!") do={