#Cant Send File
1 messages · Page 1 of 1 (latest)
do like that
when u download it returns file path
also yt.default_filename will give u the filename
thanks
but the video downloads fine its just whenever i try to send a video
it errors
Different error?
Unless the server is boosted to level 2 you can only send 8MB files
yea because ur not sending anything. look at ur definition of file_path
yt.title isn't a path
you also don't give it a name when ur downloading
so u need to use yt.default_filename if u are going to do it that way
easiest way to do it.
yt = YouTube(link)
vid = yt.streams.filter(progressive=True, file_extension='mp4').first()
download = vid.download('./lib/cache/mp4dl',
filename=f'{vid.default_filename}')
await inter.edit_original_message(file=disnake.File(download), embed=embed, components=buttons)