Add allowed chat IDs filter to Telegram Commands
New input `allowed_chat_ids` restricts which Telegram chats can trigger the automation. Leave empty to allow all chats (no filtering). Useful for security-sensitive commands. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -25,6 +25,16 @@ Commands should start with "/" (e.g., `/status`, `/lights_on`, `/arm_alarm`). Th
|
||||
|
||||
Each command has its own callback action that executes when received.
|
||||
|
||||
## Access Control
|
||||
|
||||
You can restrict which Telegram chats are allowed to trigger the automation by specifying **Allowed Chat IDs**:
|
||||
|
||||
- Leave empty to allow commands from any chat (no filtering)
|
||||
- Add specific chat IDs to restrict access to those chats only
|
||||
- Supports user IDs (positive numbers) and group IDs (negative numbers)
|
||||
|
||||
This is useful for security-sensitive commands like arming alarms or controlling locks.
|
||||
|
||||
## Author
|
||||
|
||||
Alexei Dolgolyov (dolgolyov.alexei@gmail.com)
|
||||
|
||||
Reference in New Issue
Block a user