From 39903d521e5c45080977cc3f1a0235c0cf608f15 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 16 Mar 2025 13:48:22 +0100 Subject: [PATCH] docs: add authorized_users to documentation closes #11504 --- docs/telegram-usage.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/telegram-usage.md b/docs/telegram-usage.md index 946686b1c..c7c434140 100644 --- a/docs/telegram-usage.md +++ b/docs/telegram-usage.md @@ -81,6 +81,19 @@ Without this, the bot will always respond to the general channel in the group if Similar to the group-id - you can use `/tg_info` from the topic/thread to get the correct topic-id. +#### Authorized users + +For groups, it can be useful to limit who can send commands to the bot. + +If `"authorized_users": []` is present and empty, no user will be allowed to control the bot. +In the below example, only the user with the id "1234567" is allowed to control the bot - all other users will only be able to receive messages. + +```json + "chat_id": "-1001332619709", + "topic_id": "3", + "authorized_users": ["1234567"] +``` + ## Control telegram noise Freqtrade provides means to control the verbosity of your telegram bot.