From 5b332c33dd87246b7e734b57990a4a9f22a4053e Mon Sep 17 00:00:00 2001 From: mirivlad Date: Tue, 24 Feb 2026 23:59:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D0=B8=D0=BC=D0=BF=D0=BE=D1=80=D1=82=20config=20?= =?UTF-8?q?=D0=B2=20decorators.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - NameError: config not defined в @check_access - Добавлен импорт from bot.config import config Version: 0.5.3 Co-authored-by: Qwen-Coder --- bot/utils/decorators.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bot/utils/decorators.py b/bot/utils/decorators.py index ceae6c2..f03981b 100644 --- a/bot/utils/decorators.py +++ b/bot/utils/decorators.py @@ -6,6 +6,9 @@ from functools import wraps from telegram import Update from telegram.ext import ContextTypes +# Импортируем config для проверки доступа +from bot.config import config + logger = logging.getLogger(__name__)