mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-23 01:58:40 +02:00
mod/notification-telegram: $GetTelegramChatId: give thead id...
... if message was sent to group's topic.
This commit is contained in:
parent
e2fe653035
commit
0c4fb42616
1 changed files with 3 additions and 0 deletions
|
@ -91,6 +91,9 @@
|
||||||
|
|
||||||
:local Message ($JSON->"result"->($Count - 1)->"message");
|
:local Message ($JSON->"result"->($Count - 1)->"message");
|
||||||
$LogPrint info $0 ("The chat id is: " . ($Message->"chat"->"id"));
|
$LogPrint info $0 ("The chat id is: " . ($Message->"chat"->"id"));
|
||||||
|
:if (($Message->"is_topic_message") = true) do={
|
||||||
|
$LogPrint info $0 ("The thread id is: " . ($Message->"message_thread_id"));
|
||||||
|
}
|
||||||
} on-error={
|
} on-error={
|
||||||
:global ExitError; $ExitError false $0;
|
:global ExitError; $ExitError false $0;
|
||||||
} }
|
} }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue