telegram-chat: Support trusted group chat ids

But be warned: Adding a person to a trusted group will give
her/him administrative control over the device(s) - without
changes on the device itself!
This commit is contained in:
Christian Hesse 2025-05-12 16:53:55 +02:00
parent 1cbd06b77d
commit 376ed883d9

View file

@ -107,7 +107,9 @@
:local ThreadId [ $IfThenElse ($Message->"is_topic_message") ($Message->"message_thread_id") "" ]; :local ThreadId [ $IfThenElse ($Message->"is_topic_message") ($Message->"message_thread_id") "" ];
:foreach IdsTrusted in=($TelegramChatId, $TelegramChatIdsTrusted) do={ :foreach IdsTrusted in=($TelegramChatId, $TelegramChatIdsTrusted) do={
:if ($From->"id" = $IdsTrusted || $From->"username" = $IdsTrusted) do={ :if ($From->"id" = $IdsTrusted || \
$From->"username" = $IdsTrusted || \
$Chat->"id" = $IdsTrusted) do={
:set Trusted true; :set Trusted true;
} }
} }