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
|
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
|
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 |
|
krau
|
8e2dd37155
|
feat: add stream upload support and related configurations
|
2025-02-28 11:09:24 +08:00 |
|
krau
|
d2669f0c99
|
feat: add logging for file save operations in storage modules
|
2025-02-21 14:04:32 +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
|
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
|
0fb5634874
|
feat: support custom storage path in filename
|
2025-02-12 12:24:11 +08:00 |
|
krau
|
1cbcebc148
|
feat: init commit
|
2024-10-10 23:31:01 +08:00 |
|