What is the process for transforming a video into a video note using the Telegram bot (Aiogram 3.11)?

I am looking to create a Telegram video circle from a video sent by a user and then return that circle to the chat. Here’s the code snippet I am currently using:

@router.message(Command('Create_circle'))
async def handle_circle(message: Message):
    await message.reply_video_note(video_note='unique_video_id')

This should enable the bot to resend the video that the user has uploaded.

To transform a video into a video note in Telegram using Aiogram, start by ensuring your video is in an appropriate format and resolution that fits within a circular frame. You can use FFmpeg to automate this process. First, extract the video, then use FFmpeg commands to crop and overlay a circular mask on the video. Once you have the video note-ready format, upload it and refer to the file_id in your reply_video_note() function to send it back to the user. This approach should maintain quality while fitting Telegram’s specifications.