mod/notification-telegram: $GetTelegramChatId: give thead id...

... if message was sent to group's topic.
This commit is contained in:
Christian Hesse 2025-02-26 20:18:12 +01:00
parent e2fe653035
commit 0c4fb42616

View file

@ -91,6 +91,9 @@
:local Message ($JSON->"result"->($Count - 1)->"message");
$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={
:global ExitError; $ExitError false $0;
} }