refactor: update Telegram file handling to use new getFileInfo function and include bot token in cache

This commit is contained in:
MythEclipse
2026-05-29 16:53:55 +07:00
parent cc0f1dde79
commit 3ca5ab7983
3 changed files with 26 additions and 18 deletions
+1
View File
@@ -68,6 +68,7 @@ export const fileInfoCache = new Cache<{
file_size: number;
mime_type: string;
file_path: string;
bot_token: string;
}>(3600);
// Cleanup expired cache entries every 5 minutes