This commit is contained in:
Administrator
2024-02-10 12:28:29 +03:00
parent 5011a9fc14
commit 258de207e8
5 changed files with 129 additions and 99 deletions

View File

@@ -5,7 +5,7 @@ from telebot.types import Message
import settings
from helpers.mongo import mongo
from helpers.platform import platform
from helpers.sprint_platform import platform
bot = telebot.TeleBot(os.getenv("TELEGRAM_TOKEN"))
@@ -18,7 +18,7 @@ def on_start(message: Message):
@bot.message_handler()
def do_action(message: Message):
if settings.STAGE == 'development' and not platform.get_staff(message.chat.id):
if settings.STAGE == 'development' and not platform.is_staff(telegram_id=message.chat.id):
return
from helpers.answer import Answer
Answer(message).process()