This repository has been archived on 2022-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
it-volunteers-for-peace/handlers/projects/__init__.py

22 lines
618 B
Python
Raw Permalink Normal View History

2022-10-21 18:06:20 +00:00
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("Создать проект")
)
dp.register_message_handler(
2022-10-22 12:35:19 +00:00
create.create_project, state=ProjectStates.create
2022-10-21 18:06:20 +00:00
)
dp.register_message_handler(
search.ask_for_project_name, Text("Найти проект")
)
dp.register_message_handler(
search.search_for_projects, state=ProjectStates.search
)