I add command /admin /vadmin /iadmin /hello I create database and I improve code
It's version 0.3.0
This commit is contained in:
@@ -2,12 +2,13 @@ from aiogram import types, Dispatcher
|
||||
from aiogram.filters import Command
|
||||
from models.state import BotState
|
||||
from services.schedule_service import ScheduleService
|
||||
from utils.antispam import is_chat_spam
|
||||
from utils.antispam import is_chat_spam, saving
|
||||
from storage.message_storage import save_message
|
||||
|
||||
|
||||
def register_handlers(dp: Dispatcher, state: BotState):
|
||||
@dp.message(Command("rasp"))
|
||||
@saving
|
||||
async def send_schedule(message: types.Message):
|
||||
"""Отправка расписания"""
|
||||
if is_chat_spam(message.chat.id, state):
|
||||
|
||||
Reference in New Issue
Block a user