mirror of
https://github.com/Nick80835/microbot
synced 2025-09-03 16:05:49 +00:00
use send_file for yt
This commit is contained in:
@@ -250,7 +250,7 @@ async def youtube_cmd(event):
|
|||||||
|
|
||||||
file_handle = await upload_file(event.client, file_path)
|
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(
|
DocumentAttributeVideo(
|
||||||
duration=video.length,
|
duration=video.length,
|
||||||
w=video_stream.dimensions[0],
|
w=video_stream.dimensions[0],
|
||||||
|
Reference in New Issue
Block a user