tangyoha / telegram_media_downloader

基于Dineshkarthik的项目, 电报视频下载,电报资源下载,跨平台,支持web查看下载进度 ,支持bot下发指令下载,支持下载已经加入的私有群但是限制下载的资源, telegram media download,Download media files from a telegram conversation/chat/channel up to 2GiB per file
MIT License
2.39k stars 277 forks source link

[Bug]: file_formats with document is txt not working #148

Open ThanHuuTuan opened 7 months ago

ThanHuuTuan commented 7 months ago

telegram_media_downloader

v2.2.3 v2.2.0

What OS are you seeing the problem on?

Other Linux Distro

Python Version

No response

What happened?

I config document is txt but progam not working download, but with extension "all" it woked

my config v2.2.3

file_formats:
  document:
  - txt
file_path_prefix:
- chat_title
- media_datetime
media_types:
- document

my config v2.2.0

- chat_id: -1001988659xxx
  last_read_message_id: 0
  download_filter: file_extension == r'(txt)

Expected Behavior

document:

Current Behavior

I config document is txt but progam not working download, but with extension "all" it woked

Possible Solution

NO

Steps to Reproduce

NO

Relevant log output

telegram_media_downloader_1  | Generating LALR tables
telegram_media_downloader_1  | [01:23:31] Telegram Media Downloader v2.2.3,                          meta.py:18
telegram_media_downloader_1  |            Copyright (C) 2023 tangyoha <https://github.com/tangyoha>            
telegram_media_downloader_1  |            Licensed under the terms of the MIT License                meta.py:21
telegram_media_downloader_1  |                                                                                 
telegram_media_downloader_1  | 2024-02-22 01:23:31.365 | INFO     | utils.meta:print_meta:22 - Device: CPython 3.11.2 - Telegram Media Downloader 2.2.3
telegram_media_downloader_1  | 2024-02-22 01:23:31.365 | INFO     | utils.meta:print_meta:23 - System: Linux 5.15.0-78-generic (EN)
telegram_media_downloader_1  |  * Serving Flask app 'module.web'
telegram_media_downloader_1  |  * Debug mode: off
telegram_media_downloader_1  | 2024-02-22 01:23:32.947 | SUCCESS  | __main__:main:625 - Successfully started (Press Ctrl+C to stop)
2024-02-22 08:51:21.770 | INFO     | utils.meta:print_meta:22 - Device: CPython 3.11.2 - Telegram Media Downloader 2.2.0
2024-02-22 08:51:21.770 | INFO     | utils.meta:print_meta:23 - System: Linux 5.15.0-78-generic (EN)
 * Serving Flask app 'module.web'
 * Debug mode: off
2024-02-22 08:51:23.776 | SUCCESS  | __main__:main:595 - Successfully started (Press Ctrl+C to stop)
tangyoha commented 2 months ago

@ThanHuuTuan hi, try new version pls.