Commit Graph
3 Commits
Author SHA1 Message Date
xixu-me 79a25966d4 Refactor bot logic and add tests for file uploads
Refactored src/index.js to modularize and simplify Telegram file and photo upload handling to Google Drive. Enhanced Google authentication and file upload logic, improved error handling, and added unit tests in test/index.test.js. Updated package.json with metadata and made the package public. Adjusted wrangler.jsonc to set CPU limits and add environment variables.
2025-07-04 13:32:24 +08:00
xixu-me eac9e037e2 Refactor upload logic and remove upload tests
Refactored file upload logic to pass file size directly and streamline handling of large files with a new resumableUpload function. Removed the upload.test.js file.
2025-07-04 13:02:24 +08:00
xixu-me cb5b329a5b Refactor upload logic and add upload tests
Refactored file upload logic to Google Drive by separating small and large file handling, improving resumable upload with chunking and progress updates. Added unit tests for upload logic, including file size checks and chunking behavior.
2025-07-03 22:49:57 +08:00