refactoring
This commit is contained in:
@@ -18,7 +18,8 @@ router = Router()
|
||||
@router.message(CommandStart())
|
||||
async def start(message: Message, db_session: AsyncSession, app: QBotApp, state: FSMContext):
|
||||
|
||||
await clear_state(state = state, clear_nav = True)
|
||||
state_data = await state.get_data()
|
||||
clear_state(state_data = state_data, clear_nav = True)
|
||||
|
||||
User = app.user_class
|
||||
|
||||
|
||||
Reference in New Issue
Block a user