mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-19 18:34:42 +02:00
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! On the other hand... Removing permissions is easily done by removing a person from a group. Closes: https://github.com/eworm-de/routeros-scripts/issues/101
This commit is contained in:
parent
e78c71948d
commit
1b5dd1e1d3
1 changed files with 3 additions and 1 deletions
|
@ -107,7 +107,9 @@
|
|||
:local ThreadId [ $IfThenElse ($Message->"is_topic_message") ($Message->"message_thread_id") "" ];
|
||||
|
||||
: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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue