bot enabled exp

This commit is contained in:
Administrator
2024-02-18 00:48:29 +03:00
parent 86a3b891f1
commit 0e07ebdc61
3 changed files with 18 additions and 18 deletions

View File

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