Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Hello how are u ... can I ask u how I can select file between 1kb to 100 mb download only #35

Open
Romntic opened this issue Jan 7, 2023 · 5 comments

Comments

@Romntic
Copy link

Romntic commented Jan 7, 2023

Mean if there is any file 101mb not download
Thanks for u

@tangyoha
Copy link
Owner

tangyoha commented Jan 9, 2023

@Romntic hi,May reply later, need to change the code.

@Romntic
Copy link
Author

Romntic commented Jan 9, 2023

thanks for u but that is for example i need to 1k to 500mb if i cant change code :)

@tangyoha
Copy link
Owner

https://github.com/tangyoha/telegram_media_downloader/blob/8e0baa8343b8e287ac87e067e29bf2be18bef851/media_downloader.py#L234
@Romntic hi, you can add the following code before this line of code

media_size = getattr(_media, "file_size", 0)
if media_size < 1 * 1024 or media_size > 500 * 1024 * 1024:
    continue

@Romntic
Copy link
Author

Romntic commented Jan 13, 2023

Excellent ,, how I can active in ur project ?

@tangyoha
Copy link
Owner

tangyoha commented Jan 14, 2023

You can discuss with us in the telegram group, or just submit a PR.

https://t.me/TeegramMediaDownload

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

No branches or pull requests

2 participants