create event
This commit is contained in:
13
app/bot/dialogs/flows/events/handlers.py
Normal file
13
app/bot/dialogs/flows/events/handlers.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from aiogram.types import CallbackQuery
|
||||
from aiogram_dialog import DialogManager
|
||||
from aiogram_dialog.widgets.kbd import Select
|
||||
|
||||
|
||||
async def on_event_selected(
|
||||
callback: CallbackQuery,
|
||||
widget: Select,
|
||||
manager: DialogManager,
|
||||
item_id: str,
|
||||
):
|
||||
manager.dialog_data["selected_event"] = item_id
|
||||
await manager.next()
|
||||
Reference in New Issue
Block a user