From f3aac3d66d1db8e23cf264b121af4b499e243fb6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 16 Mar 2025 13:48:50 +0100 Subject: [PATCH] feat: add authorized-users key to config schema --- build_helpers/schema.json | 8 ++++++++ freqtrade/configuration/config_schema.py | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/build_helpers/schema.json b/build_helpers/schema.json index ff99fbe78..1d71184b1 100644 --- a/build_helpers/schema.json +++ b/build_helpers/schema.json @@ -613,6 +613,14 @@ "description": "Telegram topic ID - only applicable for group chats", "type": "string" }, + "authorized_users": { + "description": "Authorized users for the bot.", + "type": "array", + "items": { + "type": "string" + }, + "uniqueItems": true + }, "allow_custom_messages": { "description": "Allow sending custom messages from the Strategy.", "type": "boolean", diff --git a/freqtrade/configuration/config_schema.py b/freqtrade/configuration/config_schema.py index d517048c7..0ef37027d 100644 --- a/freqtrade/configuration/config_schema.py +++ b/freqtrade/configuration/config_schema.py @@ -471,6 +471,12 @@ CONF_SCHEMA = { "description": "Telegram topic ID - only applicable for group chats", "type": "string", }, + "authorized_users": { + "description": "Authorized users for the bot.", + "type": "array", + "items": {"type": "string"}, + "uniqueItems": True, + }, "allow_custom_messages": { "description": "Allow sending custom messages from the Strategy.", "type": "boolean",