Download tiktok video from url aiogram. How can i solve this error or another way of downloading tiktok video
if message.text.startswith('https://vt.tiktok.com'):
link = f"{message.text}"
video_data = TikTokApi().video(url=f"{link}").video.bytes()
with open(f"{message.from_user.id}.mp4", "wb") as out_file:
out_file.write(video_data)
videos = open(f'{message.from_user.id}.mp4', 'rb')
await bot.send_video(message.chat.id, video=videos, width=1920, height=1080)