new bot structure
This commit is contained in:
8
app/bot/dialogs/widgets/getters.py
Normal file
8
app/bot/dialogs/widgets/getters.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from aiogram.types import User
|
||||
from aiogram_dialog import DialogManager
|
||||
|
||||
|
||||
async def username_getter(
|
||||
dialog_manager: DialogManager, event_from_user: User, **kwargs
|
||||
) -> dict[str, str]:
|
||||
return {"username": event_from_user.username}
|
||||
Reference in New Issue
Block a user