Nekmo / telegram-upload

Upload and download files from Telegram up to 4 GiB using your account
MIT License
1.05k stars 226 forks source link

When I use the --album parameter, the video has no thumbnail, The --catption parameter cannot be used at the same time #256

Open nbtu opened 3 months ago

nbtu commented 3 months ago

When I use the --album parameter, the video has no thumbnail I tried specifying thumb_file using --thumbnail-file, but it seems that when --album parameter is used, --thumbnail-file and --catption cannot be used

if album:
 client.send_files_as_album(to, files, delete_on_success, print_file_id, forward)

I think it's a bug not to generate thumbnails under --album

In addition, I hope to use the --catption parameter under the --album parameter. Because by default, each file comes with a catption, and in album mode, only the first file with a catption will be displayed. If there are multiple catptions, none will be displayed. I want to modify the way album mode is displayed: Let the individual files not have the catption parameter, and only use the catption parameter in send_file.

media = [ video1_file, video2_file ] entity = await client.get_input_entity(entity) await client.send_file(entity, media, caption=caption, parse_mode="HTML")