This bot downloads video from YT and sends it to user like this And phone version but why it sends squared and stretched i want this
code
@dp.message_handler(content_types=['text'])
async def text(message: types.Message):
if message.text.startswith('https://www.youtube.com'):
links = f"{message.text}"
link = links
yt = YouTube(link)
ys = yt.streams.filter(res="720p").first()
ys.download(filename=f'{message.from_user.id}.mp4')
await bot.send_video(message.chat.id, open(f'{message.from_user.id}.mp4', 'rb'))
os.remove(f"{message.from_user.id}.mp4")