Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue May 6, 2024 · 0 comments

Comments

@nbtu
Copy link

nbtu commented May 6, 2024

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")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant