mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-12 19:14:27 +02:00
telegram-chat: say hello when awaiting commands
This commit is contained in:
parent
c33eb41c9c
commit
4eafcaa3ac
1 changed files with 2 additions and 1 deletions
|
@ -119,7 +119,8 @@
|
||||||
$SendTelegram2 ({ origin=$ScriptName; chatid=($Chat->"id"); silent=true; \
|
$SendTelegram2 ({ origin=$ScriptName; chatid=($Chat->"id"); silent=true; \
|
||||||
replyto=($Message->"message_id"); threadid=$ThreadId; \
|
replyto=($Message->"message_id"); threadid=$ThreadId; \
|
||||||
subject=([ $SymbolForNotification "speech-balloon" ] . "Telegram Chat"); \
|
subject=([ $SymbolForNotification "speech-balloon" ] . "Telegram Chat"); \
|
||||||
message=("Online" . [ $IfThenElse $TelegramChatActive " (and active!)" ] . ", awaiting your commands!") });
|
message=([ $IfThenElse ([ :len ($From->"first_name") ] > 0) ("Hello " . ($From->"first_name") . "!\n\n") ] . \
|
||||||
|
"Online" . [ $IfThenElse $TelegramChatActive " (and active!)" ] . ", awaiting your commands!") });
|
||||||
:set Done true;
|
:set Done true;
|
||||||
}
|
}
|
||||||
:if ($Done = false && [ :pick $Command 0 1 ] = "!") do={
|
:if ($Done = false && [ :pick $Command 0 1 ] = "!") do={
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue