#Cant Send File

1 messages · Page 1 of 1 (latest)

limber copper
#

file_path = yt.streams.....

#

do like that

#

when u download it returns file path

#

also yt.default_filename will give u the filename

olive stratus
#

but the video downloads fine its just whenever i try to send a video

#

it errors

rich anchor
#

Different error?

#

Unless the server is boosted to level 2 you can only send 8MB files

limber copper
#

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)
olive stratus
#

ohhhh

#

i see