mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-07-23 12:24:54 +02:00
global-functions: $SendTelegram: invert condition
This commit is contained in:
parent
34db2e34db
commit
227151e189
1 changed files with 12 additions and 10 deletions
|
@ -438,7 +438,10 @@
|
||||||
:set ChatId $TelegramChatIdOverride;
|
:set ChatId $TelegramChatIdOverride;
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ([ :len $TelegramTokenId ] > 0 && [ :len $ChatId ] > 0) do={
|
:if ([ :len $TelegramTokenId ] = 0 || [ :len $ChatId ] = 0) do={
|
||||||
|
:return;
|
||||||
|
}
|
||||||
|
|
||||||
$CertificateAvailable "Go Daddy Secure Certificate Authority - G2";
|
$CertificateAvailable "Go Daddy Secure Certificate Authority - G2";
|
||||||
:do {
|
:do {
|
||||||
/ tool fetch check-certificate=yes-without-crl output=none http-method=post \
|
/ tool fetch check-certificate=yes-without-crl output=none http-method=post \
|
||||||
|
@ -449,7 +452,6 @@
|
||||||
:log warning "Failed sending telegram notification!";
|
:log warning "Failed sending telegram notification!";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
# check if system time is sync
|
# check if system time is sync
|
||||||
:set TimeIsSync do={
|
:set TimeIsSync do={
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue