Haopeng Huo
0e6ed66ef5
feat: show upload progress for batch file tasks ( #228 )
...
* feat: show upload progress for file tasks
* feat: show upload progress for batch file tasks
* style: distinguish download and upload phases
* style: mark successful task completion
* fix: preserve storage save error context
* fix: serialize single-file progress updates
* fix: stabilize batch upload progress reporting
Correct batch upload totals, completion state, actual file sizes, and synchronized progress snapshots. Add regression coverage for concurrent updates and phase transitions.
* feat: show per-file transfer progress
Format single-file and batch download and upload states with Telegram entities, blockquotes, speeds, transferred sizes, progress bars, concise counters, and accurate confirmation handling. Cover upload retries plus final, error, and cancellation messages with regression tests.
* chore: remove transfer progress tests
* test: restore critical transfer progress coverage
* test: cover interleaved batch transfers
* fix: declare progress styles in locale templates
2026-08-11 08:40:29 +08:00
Haopeng Huo
1d794a7b9c
feat(telegram): preserve source media groups ( #226 )
...
* feat(telegram): preserve source media groups
* fix(telegram): rewind batch readers before inspection
2026-08-04 16:46:29 +08:00
Krau
8b86330f5c
feat: add rclone storage backend ( #191 )
...
* fix: update StoragePath method to return specific path for single file
* feat: add Rclone storage support with configuration and file operations
* docs: add Rclone support to documentation for configuration and usage
2026-01-30 13:34:29 +08:00
krau
9b52a3e0ce
refactor: simplify storage path handling across various tasks and storage implementations
2026-01-19 21:27:53 +08:00
Krau
f92c43b9c8
feat: support import files from storages to telegram ( #183 )
...
* feat: add import command and batch import functionality
- Implemented the `/import` command to allow users to import files from storage to Telegram.
- Added support for listing files in storage and filtering based on regex patterns.
- Created a batch import task to handle multiple file uploads concurrently.
- Introduced progress tracking for batch imports, providing real-time updates to users.
- Enhanced storage interfaces to support file listing and reading capabilities.
- Updated localization files for the new import command and its usage instructions.
- Added utility functions for file size formatting and speed calculation.
- Refactored Telegram storage handling to support reading from non-seekable streams.
* feat: add i18n for import command
* feat: implement ListFiles and OpenFile methods for WebDAV and Alist storage
* Update common/i18n/locale/zh-Hans.yaml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update core/tasks/batchimport/progress.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update core/tasks/batchimport/execute.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update storage/alist/alist.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update common/i18n/locale/en.yaml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update pkg/storagetypes/fileinfo.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update common/i18n/locale/en.yaml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update core/tasks/batchimport/execute.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update storage/webdav/webdav.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update storage/telegram/telegram.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update core/tasks/batchimport/execute.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update storage/webdav/webdav.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* fix: missing progress stats i18n
* refactor: use strutil to parse args
* chore: update generated code files for consistency
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-19 17:39:47 +08:00
krau
4ccbf8177e
fix(i18n): Update log messages to English and improve error handling in bot initialization and storage loading
2025-12-19 20:29:48 +08:00
krau
5f7b936270
feat: refactor storage retrieval functions and improve documentation
2025-12-19 13:49:20 +08:00
krau
91814a83c7
fix: deprecate minio and introduce s3 storage backend
2025-12-04 22:59:23 +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
491ba55f1e
feat: add support for handling unsupported stream storage in download process
2025-03-26 10:35:40 +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
65fee89e14
feat: refactor storage configuration to use dedicated storage package and add new storage types
...
BREAKING CHANGE: remove deprecated config
2025-03-21 20:52:41 +08:00
ysicing
495ad3ea5c
feat: add Minio storage support
...
Signed-off-by: ysicing <i@ysicing.me >
2025-03-11 21:29:35 +08:00
krau
8e2dd37155
feat: add stream upload support and related configurations
2025-02-28 11:09:24 +08:00
krau
27dca2e343
perf: add UserStorages map and implement GetUserStorages function for user-specific storage retrieval
2025-02-20 22:57: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
80696c9661
feat: (WIP) add storage
...
Co-authored-by: AHCorn <42889600+AHCorn@users.noreply.github.com >
2025-02-18 22:53:07 +08:00
krau
dfde65c28e
feat: (WIP) migrate storage configuration to user-specific models and remove deprecated storage loading
2025-02-18 19:45:06 +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
3a4effab33
feat: refactor file processing and storage handling with improved path management
2025-02-15 15:06:06 +08:00
krau
fbdfc04ad8
refactor: migrate to gotd (wip)
2024-11-08 23:00:57 +08:00
krau
b3c59fde72
feat: webdav storage
2024-10-11 00:07:11 +08:00
krau
1cbcebc148
feat: init commit
2024-10-10 23:31:01 +08:00