Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Borodutch/VideoDownloadBot
/ functions
Functions
45 in github.com/Borodutch/VideoDownloadBot
⨍
Functions
45
◇
Types & classes
16
↓ 13 callers
Function
report
(error: unknown, info: ExtraErrorInfo = {})
src/helpers/report.ts:69
↓ 9 callers
Method
editMessage
(message: string)
src/helpers/MessageEditor.ts:16
↓ 6 callers
Function
updateMessages
( editors: MessageEditor[], chats: ChatMap, localizationKey: string )
src/helpers/updateDownloadRequests.ts:33
↓ 5 callers
Function
deleteDocuments
( downloadJob: DocumentType<DownloadJob>, requests: DocumentType<DownloadRequest>[] )
src/helpers/updateDownloadRequests.ts:80
↓ 5 callers
Function
findOrCreateChat
(telegramId: number)
src/models/Chat.ts:23
↓ 4 callers
Function
sendCompletedFile
( chatId: number, messageId: number, language: string, audio: boolean, title: string, file: string
src/helpers/sendCompletedFile.ts:7
↓ 3 callers
Function
findUrl
(url: string, audio: boolean)
src/models/Url.ts:17
↓ 3 callers
Function
unlincSyncSafe
(path: string)
src/helpers/unlincSyncSafe.ts:4
↓ 2 callers
Function
escape
(s = '')
src/helpers/report.ts:78
↓ 2 callers
Function
findDownloadRequestsForDownloadJob
(downloadJob: DownloadJob)
src/models/downloadRequestFunctions.ts:69
↓ 2 callers
Function
sendOptions
(ctx: Context)
src/helpers/sendOptions.ts:3
↓ 1 callers
Function
augmentError
(error: unknown, augmentation: string)
src/helpers/augmentError.ts:1
↓ 1 callers
Function
checkForCachedUrlAndSendFile
( url: string, ctx: Context, editor: MessageEditor )
src/helpers/checkForCachedUrlAndSendFile.ts:6
↓ 1 callers
Function
cleanupDownloadJobs
()
src/helpers/cleanupDownloadJobs.ts:14
↓ 1 callers
Function
constructErrorMessage
( error: Error, { ctx, location, meta }: ExtraErrorInfo )
src/helpers/report.ts:28
↓ 1 callers
Function
createDownloadJobAndRequest
( ctx: Context, url: string )
src/helpers/createDownloadJobAndRequest.ts:10
↓ 1 callers
Function
deleteAllDownloadJobs
()
src/models/downloadJobFunctions.ts:23
↓ 1 callers
Function
deleteAllDownloadRequests
()
src/models/downloadRequestFunctions.ts:77
↓ 1 callers
Function
downloadThumbnail
(url: string, id: string)
src/helpers/getThumbnailUrl.ts:42
↓ 1 callers
Function
downloadUrl
( downloadJob: DocumentType<DownloadJob> )
src/helpers/downloadUrl.ts:22
↓ 1 callers
Function
findAllDownloadJobs
()
src/models/downloadJobFunctions.ts:19
↓ 1 callers
Function
findOrCreateDownloadJob
( url: string, audio: boolean, originalChatId: number, originalMessageId: number )
src/models/downloadJobFunctions.ts:3
↓ 1 callers
Function
findOrCreateDownloadRequest
( chatId: number, messageId: number, downloadJob: DownloadJob )
src/models/downloadRequestFunctions.ts:10
↓ 1 callers
Function
findOrCreateUrl
( url: string, fileId: string, audio: boolean, title: string )
src/models/Url.ts:21
↓ 1 callers
Function
getDownloadRequestsChatsAndEditors
( downloadJob: DocumentType<DownloadJob> )
src/helpers/updateDownloadRequests.ts:16
↓ 1 callers
Function
getThumbnailUrl
( downloadedFileInfo: DownloadedFileInfo, videoPath: string )
src/helpers/getThumbnailUrl.ts:15
↓ 1 callers
Function
handleHelp
(ctx: Context)
src/handlers/help.ts:3
↓ 1 callers
Function
localeFile
(path: string)
src/menus/language.ts:14
↓ 1 callers
Function
makeThumbnail
(videoPath: string, filename: string)
src/helpers/getThumbnailUrl.ts:52
↓ 1 callers
Function
resizeThumb
(inputPath: string, outputPath: string)
src/helpers/getThumbnailUrl.ts:67
↓ 1 callers
Function
runApp
()
src/app.ts:20
↓ 1 callers
Function
sendFileToNonOriginalRequests
( downloadJob: DocumentType<DownloadJob>, requests: DocumentType<DownloadRequest>[], chats: ChatMap )
src/helpers/updateDownloadRequests.ts:46
↓ 1 callers
Function
setLanguage
(languageCode: string)
src/menus/language.ts:20
↓ 1 callers
Function
startMongo
()
src/helpers/startMongo.ts:4
↓ 1 callers
Function
updateDownloadRequests
( downloadJob: DocumentType<DownloadJob> )
src/helpers/updateDownloadRequests.ts:98
Function
attachChat
(ctx: Context, next: NextFunction)
src/middlewares/attachUser.ts:5
Function
configureI18n
(ctx: Context, next: NextFunction)
src/middlewares/configureI18n.ts:4
Method
constructor
( public messageId?: number, private ctx?: Context, public chatId?: number )
src/helpers/MessageEditor.ts:6
Function
deleteDownloadJob
(url: string, audio: boolean)
src/models/downloadJobFunctions.ts:15
Function
deleteDownloadRequest
(chatId: number, messageId: number)
src/models/downloadRequestFunctions.ts:73
Function
handleAudio
(ctx: Context)
src/handlers/audio.ts:3
Function
handleLanguage
(ctx: Context)
src/handlers/language.ts:4
Function
handleUrl
(ctx: Context)
src/handlers/url.ts:5
Method
safeChatId
()
src/helpers/MessageEditor.ts:12
Function
sendToTelegramAdmin
(error: Error, info: ExtraErrorInfo)
src/helpers/report.ts:48