fix: добавить импорт config в decorators.py
- NameError: config not defined в @check_access - Добавлен импорт from bot.config import config Version: 0.5.3 Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
parent
04ac125da6
commit
5b332c33dd
|
|
@ -6,6 +6,9 @@ from functools import wraps
|
||||||
from telegram import Update
|
from telegram import Update
|
||||||
from telegram.ext import ContextTypes
|
from telegram.ext import ContextTypes
|
||||||
|
|
||||||
|
# Импортируем config для проверки доступа
|
||||||
|
from bot.config import config
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue