How to handle video_note in aiogram?


This Content is from Stack Overflow. Question asked by Ilya

I could not handle the video_note in aiogram with FMS. Help me what is wrong???
So, I want to save video_note id then send it to other users how else I can do that?
Sorry if my question wrong its my first question on stack overflow…

async def set_circle(message: types.Message, state=FSMContext):
async with state.proxy() as data:
    data['user_circle'] = message.video_note.file_id
await message.answer('Done!')

async with state.proxy() as data:
    await message.answer(str(data))

def register_handlers_user(dp: Dispatcher):
    dp.register_message_handler(set_circle, content_types=['video_note'], state=FSMUserRegistration.user_circle)


This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?