krau
9b3f955e48
feat: use default HTTP client from netutil for task creation
2025-08-24 09:37:52 +08:00
krau
e5d1e143e0
feat: configurable parser and refactor config
2025-08-23 14:29:32 +08:00
Krau
302db2fe75
feat: parse url with js plugins support ( #96 )
...
* feat: WIP. add parser functionality and text message handling
* fix: use json to marshal js result
* feat: add metadata handling and version validation for jsParser
* refactor: rename parser package to parsers and restructure parser handling
* refactor: core code struct and impl parse task handle
* feat: impl parsed download
* fix: seek cache file when processing tph picture
* feat: implement parsed task handling and progress tracking
* feat: enhance task processing with concurrency control and progress tracking
* feat: add resource ID generation and improve resource processing handling
* feat: improve message formatting in parsed text and progress completion
* feat: add example js plugin
* feat: implement Twitter parser
* fix: twitter parse video json decode error
* feat: impl stream mode for parse task
2025-08-21 23:48:17 +08:00
krau
133453b5d4
feat: implement watch for monitoring chat messages
...
- Added a new command handler for /watch that allows users to listen to messages from a specified chat and save them according to storage rules.
- Introduced filtering options for messages using regular expressions.
- Implemented functionality to start and stop watching chats, including error handling for invalid inputs and user settings.
- Created a new utility package for message element handling related to the watch feature.
- Updated the user model to manage watched chats, including methods to add, remove, and check if a chat is being watched.
2025-08-03 16:55:56 +08:00
krau
03907f2d32
fix: improve error handling during file download in stream mode
2025-07-28 14:37:08 +08:00
krau
f693bd6103
refactor: update file handling to use new downloader interface; remove unused tdler package
2025-06-29 23:00:40 +08:00
krau
c82c2462bf
feat: exec command hook , close #79
2025-06-20 21:30:50 +08:00
krau
4df2c5a06d
refactor: replace key package with ctxkey for context keys
2025-06-17 22:19:06 +08:00
Krau
900823cdb9
refactor: refactor task logic for better scalability ( #76 )
...
* refactor: a big refactor. wip
* refactor: port handle file
* refactor: place all handlers
* fix: task info nil pointer
* feat: enhance task progress tracking and context management
* feat: cancel task
* feat: stream mode
* feat: silent mode
* feat: dir cmd
* refactor: remove unused old file
* feat: rule cmd
* feat: handle silent mode
* feat: batch task
* fix: batch task progress and temp file cleanup
* refactor: update file creation and cleanup methods for better resource management
* feat: add save command with silent mode handling
* feat: message link
* feat: update message prompts to include file count in storage selection
* feat: slient save links
* refactor: reduce dup code
* feat: rule type
* feat: chose dir
* feat: refactor file handling and storage rules, improve error handling and logging
* feat: rule mode
* feat: telegraph pics
* fix: tphpics nil pointer and inaccurate dirpath
* feat: silent save telegraph
* feat: add suffix to avoid file overwrite
* feat: new storage telegram
* chore: tidy go mod
2025-06-15 23:57:49 +08:00
krau
e85d3c9441
feat: rename file only when storagePath exists
2025-06-11 09:54:08 +08:00
krau
56ea1d6f36
feat: parse message link via userbot, close #70
2025-06-09 14:33:40 +08:00
krau
c7c458f147
feat: add user client
2025-06-08 15:36:14 +08:00
krau
ed99a37831
fix: add unique id to task struct to avoid duplicate file name overwrite, close #59
2025-05-09 08:58:30 +08:00
krau
c8c348a182
feat: batch save files
2025-04-12 16:27:23 +08:00
krau
166c27c70f
feat: automatic file organization based on rules, close #28
2025-04-12 14:27:13 +08:00
krau
491ba55f1e
feat: add support for handling unsupported stream storage in download process
2025-03-26 10:35:40 +08:00
krau
7ffd9891a0
fix: not pass content length when uploading in non stream mode
2025-03-26 10:22:38 +08:00
krau
347a60f1f7
fix: implement image extraction from Telegraph nodes
2025-03-24 22:04:55 +08:00
krau
f14c4367f8
feat: cancel download telegraph task
2025-03-22 12:08:19 +08:00
krau
3e3a320672
feat: download telegraph images , close #5
2025-03-22 11:52:43 +08:00
krau
635f00ac71
fix: reorganize cache destination path handling in processPendingTask function
2025-03-21 23:28:14 +08:00
krau
2d2becccf6
refactor: update storage interface to use io.Reader for Save method and remove stream implementations
2025-03-21 23:05:09 +08:00
krau
ed0837a89b
refactor: replace logger usage with common.Log for consistent logging
2025-03-21 21:07:53 +08:00
krau
6fbb4609f9
feat: show progress for stream mode
2025-03-01 12:22:50 +08:00
krau
8e2dd37155
feat: add stream upload support and related configurations
2025-02-28 11:09:24 +08:00
krau
152f473131
fix: delete done task
2025-02-27 22:25:10 +08:00
krau
7015081a84
feat: add context cancellation handling in saveFileWithRetry function
2025-02-27 22:07:41 +08:00
krau
be6444cf96
feat: implement task cancellation feature and update task handling
2025-02-27 22:02:16 +08:00
krau
b96340dd46
refactor: add err var ErrEmptyMessage
2025-02-24 17:41:36 +08:00
krau
d7cd2ede01
feat: add configurable thread count for file processing
2025-02-21 13:51:30 +08:00
krau
ed21b65c98
perf: refactor file download to support multithreading
2025-02-21 13:49:15 +08:00
krau
8975589c43
refactor: file download process and enhance progress tracking
2025-02-21 11:16:45 +08:00
krau
3a1b8f34ea
chore: translate some import log to cn
2025-02-19 12:36:48 +08:00
krau
c4eb824457
feat: set default storage by inline keyboard
2025-02-19 12:23:12 +08:00
krau
692e970772
feat!: (WIP) switched back to using config files config storages because the conversation handling is shit
2025-02-19 11:05:30 +08:00
krau
968547b005
feat!: (WIP) decouple storage, users, and configuration files to support multiple users
2025-02-18 17:17:02 +08:00
krau
2d17a731c4
feat: improve file handling by generating default file names and adding mime type detection
2025-02-16 15:43:02 +08:00
krau
db69688722
feat: support save content protect channel message by handle link
2025-02-16 11:38:26 +08:00
krau
ec09289d5f
feat: enhance message formatting with entity support and improve command registration
2025-02-15 17:20:16 +08:00
krau
6fa8e89191
feat: update download task message to include detailed progress information
2025-02-15 15:10:52 +08:00
krau
3a4effab33
feat: refactor file processing and storage handling with improved path management
2025-02-15 15:06:06 +08:00
krau
0fb5634874
feat: support custom storage path in filename
2025-02-12 12:24:11 +08:00
krau
a17492d4ae
feat(task): enhance download progress reporting and add speed calculation
2025-02-12 11:06:25 +08:00
krau
2f60af858d
refactor: remove message editing after photo file download in task processing
2025-01-20 11:27:26 +08:00
krau
9795a85dd6
refactor: file download process
2025-01-20 11:09:38 +08:00
krau
45974917f2
feat: support media photo download
2025-01-20 11:03:01 +08:00
krau
b76c1d5ccc
feat: enhance task processing messages with download status and error details
2025-01-19 14:35:08 +08:00
krau
79fba918cf
feat: add retry configuration for file upload and validate config values
2025-01-19 14:25:56 +08:00
krau
8d0851f37a
feat: add retry configuration for failed save task
2025-01-07 10:30:33 +08:00
krau
454d69c9d4
refactor: update logging levels and remove unused code
2024-11-09 11:00:49 +08:00