feat: implement chunked storage for Telegram file uploads and retrieval

This commit is contained in:
asepharyana
2026-07-07 08:08:22 +07:00
parent fbfff3d9ec
commit 144ebe6dd3
18 changed files with 750 additions and 11 deletions
+6
View File
@@ -79,6 +79,12 @@ const mockForwardToStorage = mock(() =>
mock.module('../src/utils/telegram', () => ({
forwardToStorage: mockForwardToStorage,
getFileInfo: async (telegramFileId: string) => ({
file_size: 0,
mime_type: 'application/octet-stream',
file_path: `documents/${telegramFileId}`,
bot_token: '123456:ABC-DEF',
}),
getBot: () => ({
telegram: {
getFile: mock(() =>