Commit Graph
11 Commits
Author SHA1 Message Date
MythEclipseandClaude Opus 4.7 525348b1f3 fix: make forwardToStorage fully dynamic based on fileType
- Replace forceDocument boolean with fileType string in forwardToStorage
- Dynamically call matching sendPhoto, sendAudio, sendVideo, sendVoice, sendAnimation, sendSticker, or sendDocument Telegraf API method
- Correctly extract uploaded file details based on what Telegram returned
- Fixes IMAGE_PROCESS_FAILED 500 error when uploading ogg audio, video, sticker, or voice notes via HTTP
- Update upload.ts, bot.ts, and test suites to match the new dynamic signature

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-18 19:52:46 +07:00
MythEclipse a0262e2d46 style: run formatter on modified files 2026-05-18 19:41:51 +07:00
MythEclipseandClaude Opus 4.7 04a2e52250 feat: implement deduplication in HTTP upload router
- Compute SHA-256 hash using computeHash for multipart and JSON uploads
- Query database for existing file records with the same hash
- Return existing metadata and download URL immediately on duplicate match without reforwarding to Telegram
- Include fileHash in newly inserted file database records

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-18 19:39:55 +07:00
MythEclipse 3d2500ed7f fix: auto-append file extension based on magic bytes or mime type if missing 2026-05-18 09:20:03 +07:00
MythEclipse 9aedc59b69 fix: refine Swagger docs headers and dynamic examples 2026-05-18 07:43:15 +07:00
MythEclipse 6feca3564a feat: add Swagger OpenAPI documentation endpoints 2026-05-18 07:39:27 +07:00
MythEclipse cf79a1f195 style: format and lint codebase using Biome v2 2026-05-18 07:29:01 +07:00
MythEclipse 3f4e697733 feat: migrate entire codebase to TypeScript 2026-05-18 07:27:06 +07:00
MythEclipseandClaude Opus 4.7 be93a06918 feat: add health check route
Implement handleHealth endpoint for Bun.serve to verify DB connection.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-18 07:10:55 +07:00
MythEclipseandClaude Opus 4.7 d915814277 feat: add file routes (download redirect & info)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-18 07:09:29 +07:00
MythEclipseandClaude Opus 4.7 d7b8e9dd08 feat: add upload API handler (multipart & base64)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-18 07:08:13 +07:00