2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-31 06:26:04 +00:00

use send_file for yt

This commit is contained in:
Nick80835
2020-10-20 13:11:39 -04:00
parent cb0a91f6bd
commit 1358585e6e

View File

@@ -250,7 +250,7 @@ async def youtube_cmd(event):
file_handle = await upload_file(event.client, file_path)
await event.respond(file=file_handle, reply_to=event, attributes=[
await event.client.send_file(event.chat, file=file_handle, reply_to=event, attributes=[
DocumentAttributeVideo(
duration=video.length,
w=video_stream.dimensions[0],