Добавлено ограничение пользователей #7

Merged
soaska merged 18 commits from kls/sd_telegram:master into beta 2024-02-11 15:55:28 +00:00
2 changed files with 2 additions and 0 deletions
Showing only changes of commit e0f05384a2 - Show all commits

1
bot.py
View File

@ -61,6 +61,7 @@ OK_APPLICATION_KEY = os.getenv('OK_APPLICATION_KEY')
OK_APPLICATION_SECRET_KEY = os.getenv('OK_APPLICATION_SECRET_KEY')
OK_GROUP_ID = os.getenv('OK_GROUP_ID')
ARRAY_INLINE = []
# TODO: change username in message_handlers to id
ALLOWED_USERS = json.loads(os.environ['ALLOWED_USERS'])
bot = Bot(token=API_BOT_TOKEN)

View File

@ -10,4 +10,5 @@ SD_PORT = '7861'
SD_USERNAME = 'user'
SD_PASSWORD = '1234'
DEBUG = 'no' # 'yes' to debug
# TODO: change usarnames to id
ALLOWED_USERS = '["username1", "username2", "usernameN"]'