MCPcopy Create free account

hub / github.com/Borodutch/VideoDownloadBot / functions

Functions45 in github.com/Borodutch/VideoDownloadBot

↓ 13 callersFunctionreport
(error: unknown, info: ExtraErrorInfo = {})
src/helpers/report.ts:69
↓ 9 callersMethodeditMessage
(message: string)
src/helpers/MessageEditor.ts:16
↓ 6 callersFunctionupdateMessages
( editors: MessageEditor[], chats: ChatMap, localizationKey: string )
src/helpers/updateDownloadRequests.ts:33
↓ 5 callersFunctiondeleteDocuments
( downloadJob: DocumentType<DownloadJob>, requests: DocumentType<DownloadRequest>[] )
src/helpers/updateDownloadRequests.ts:80
↓ 5 callersFunctionfindOrCreateChat
(telegramId: number)
src/models/Chat.ts:23
↓ 4 callersFunctionsendCompletedFile
( chatId: number, messageId: number, language: string, audio: boolean, title: string, file: string
src/helpers/sendCompletedFile.ts:7
↓ 3 callersFunctionfindUrl
(url: string, audio: boolean)
src/models/Url.ts:17
↓ 3 callersFunctionunlincSyncSafe
(path: string)
src/helpers/unlincSyncSafe.ts:4
↓ 2 callersFunctionescape
(s = '')
src/helpers/report.ts:78
↓ 2 callersFunctionfindDownloadRequestsForDownloadJob
(downloadJob: DownloadJob)
src/models/downloadRequestFunctions.ts:69
↓ 2 callersFunctionsendOptions
(ctx: Context)
src/helpers/sendOptions.ts:3
↓ 1 callersFunctionaugmentError
(error: unknown, augmentation: string)
src/helpers/augmentError.ts:1
↓ 1 callersFunctioncheckForCachedUrlAndSendFile
( url: string, ctx: Context, editor: MessageEditor )
src/helpers/checkForCachedUrlAndSendFile.ts:6
↓ 1 callersFunctioncleanupDownloadJobs
()
src/helpers/cleanupDownloadJobs.ts:14
↓ 1 callersFunctionconstructErrorMessage
( error: Error, { ctx, location, meta }: ExtraErrorInfo )
src/helpers/report.ts:28
↓ 1 callersFunctioncreateDownloadJobAndRequest
( ctx: Context, url: string )
src/helpers/createDownloadJobAndRequest.ts:10
↓ 1 callersFunctiondeleteAllDownloadJobs
()
src/models/downloadJobFunctions.ts:23
↓ 1 callersFunctiondeleteAllDownloadRequests
()
src/models/downloadRequestFunctions.ts:77
↓ 1 callersFunctiondownloadThumbnail
(url: string, id: string)
src/helpers/getThumbnailUrl.ts:42
↓ 1 callersFunctiondownloadUrl
( downloadJob: DocumentType<DownloadJob> )
src/helpers/downloadUrl.ts:22
↓ 1 callersFunctionfindAllDownloadJobs
()
src/models/downloadJobFunctions.ts:19
↓ 1 callersFunctionfindOrCreateDownloadJob
( url: string, audio: boolean, originalChatId: number, originalMessageId: number )
src/models/downloadJobFunctions.ts:3
↓ 1 callersFunctionfindOrCreateDownloadRequest
( chatId: number, messageId: number, downloadJob: DownloadJob )
src/models/downloadRequestFunctions.ts:10
↓ 1 callersFunctionfindOrCreateUrl
( url: string, fileId: string, audio: boolean, title: string )
src/models/Url.ts:21
↓ 1 callersFunctiongetDownloadRequestsChatsAndEditors
( downloadJob: DocumentType<DownloadJob> )
src/helpers/updateDownloadRequests.ts:16
↓ 1 callersFunctiongetThumbnailUrl
( downloadedFileInfo: DownloadedFileInfo, videoPath: string )
src/helpers/getThumbnailUrl.ts:15
↓ 1 callersFunctionhandleHelp
(ctx: Context)
src/handlers/help.ts:3
↓ 1 callersFunctionlocaleFile
(path: string)
src/menus/language.ts:14
↓ 1 callersFunctionmakeThumbnail
(videoPath: string, filename: string)
src/helpers/getThumbnailUrl.ts:52
↓ 1 callersFunctionresizeThumb
(inputPath: string, outputPath: string)
src/helpers/getThumbnailUrl.ts:67
↓ 1 callersFunctionrunApp
()
src/app.ts:20
↓ 1 callersFunctionsendFileToNonOriginalRequests
( downloadJob: DocumentType<DownloadJob>, requests: DocumentType<DownloadRequest>[], chats: ChatMap )
src/helpers/updateDownloadRequests.ts:46
↓ 1 callersFunctionsetLanguage
(languageCode: string)
src/menus/language.ts:20
↓ 1 callersFunctionstartMongo
()
src/helpers/startMongo.ts:4
↓ 1 callersFunctionupdateDownloadRequests
( downloadJob: DocumentType<DownloadJob> )
src/helpers/updateDownloadRequests.ts:98
FunctionattachChat
(ctx: Context, next: NextFunction)
src/middlewares/attachUser.ts:5
FunctionconfigureI18n
(ctx: Context, next: NextFunction)
src/middlewares/configureI18n.ts:4
Methodconstructor
( public messageId?: number, private ctx?: Context, public chatId?: number )
src/helpers/MessageEditor.ts:6
FunctiondeleteDownloadJob
(url: string, audio: boolean)
src/models/downloadJobFunctions.ts:15
FunctiondeleteDownloadRequest
(chatId: number, messageId: number)
src/models/downloadRequestFunctions.ts:73
FunctionhandleAudio
(ctx: Context)
src/handlers/audio.ts:3
FunctionhandleLanguage
(ctx: Context)
src/handlers/language.ts:4
FunctionhandleUrl
(ctx: Context)
src/handlers/url.ts:5
MethodsafeChatId
()
src/helpers/MessageEditor.ts:12
FunctionsendToTelegramAdmin
(error: Error, info: ExtraErrorInfo)
src/helpers/report.ts:48