电视马拉松节目视频 height/width
Telethon set video height/width
使用Telethon 上传视频文件时是否可以设置宽度和高度?
我正在使用此功能上传视频
await client.send_file(entity='@bot',
file=path_to_file,
progress_callback=callback,
caption=caption)
Link 到 Telethon 文档:
https://tl.telethon.dev/constructors/document_attribute_video.html
使用DocumentAttributeVideo
您可以设置视频的持续时间、宽度和高度。
示例:
from telethon.tl.types import DocumentAttributeVideo
client.send_file(..., attributes=(DocumentAttributeVideo(0, 0, 0),))
使用Telethon 上传视频文件时是否可以设置宽度和高度? 我正在使用此功能上传视频
await client.send_file(entity='@bot',
file=path_to_file,
progress_callback=callback,
caption=caption)
Link 到 Telethon 文档: https://tl.telethon.dev/constructors/document_attribute_video.html
使用DocumentAttributeVideo
您可以设置视频的持续时间、宽度和高度。
示例:
from telethon.tl.types import DocumentAttributeVideo
client.send_file(..., attributes=(DocumentAttributeVideo(0, 0, 0),))