tangyoha / telegram_media_downloader_bak

基于Dineshkarthik的项目, 电报视频下载,电报资源下载,跨平台,支持web查看下载进度,支持下载已经加入的私有群但是限制下载的资源, telegram media download,Download media files from a telegram conversation/chat/channel up to 2GiB per file,项目已经永久移动到 https://github.com/tangyoha/telegram_media_downloader
MIT License
55 stars 10 forks source link

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

Open Romntic opened 1 year ago

Romntic commented 1 year ago

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

tangyoha commented 1 year ago

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

Romntic commented 1 year ago

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

tangyoha commented 1 year ago

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 commented 1 year ago

Excellent ,, how I can active in ur project ?

tangyoha commented 1 year ago

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

https://t.me/TeegramMediaDownload