from aiogram import Dispatcher
from aiogram.dispatcher.filters import Text
from states.project import ProjectStates
from . import create, search
def register_projects_handlers(dp: Dispatcher):
dp.register_message_handler(
create.ask_for_project_fields, Text("Создать проект")
)
create.create_project, state=ProjectStates.create
search.ask_for_project_name, Text("Найти проект")
search.search_for_projects, state=ProjectStates.search