MCPcopy Index your code
hub / github.com/Borodutch/VideoDownloadBot

github.com/Borodutch/VideoDownloadBot @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
61 symbols 197 edges 36 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

@VideoDownloadBot code

Bot that downloads videos and uploads the to Telegram. Originally developed by MaxiFilippov.

Installation and local launch

  1. Clone this repo: git clone https://github.com/Borodutch/VideoDownloadBot
  2. Launch the mongo database locally
  3. Create .env with the environment variables listed below
  4. Run yarn in the root folder
  5. Run yarn develop

And you should be good to go! Feel free to fork and submit pull requests. Thanks!

Requirements

  • You can run telegram-bot-api locally to increase the limits
  • Use .netrc for the credentials
  • Or you can add cookies to the cookie file in the root of this repository

Environment variables

  • TOKEN — Telegram bot token
  • MONGO — URL of the mongo database
  • ENVIRONMENTdevelopment or production
  • ADMIN_ID — Telegram ID of the user to get error reports
  • BOT_API_URL — URL of the bot API (defaults to https://api.telegram.org)

Also, please, consider looking at .env.sample.

License

MIT — use for any purpose. Would be great if you could leave a note about the original developers. Thanks!

CD

main branch gets deployed to @VideoDownloadBot automagically with ci-ninja.

Extension points exported contracts — how you extend this code

ExtraErrorInfo (Interface)
(no doc)
src/helpers/report.ts
DownloadedFileInfo (Interface)
(no doc)
src/models/DownloadedFileInfo.ts
YamlWithName (Interface)
(no doc)
src/menus/language.ts

Core symbols most depended-on inside this repo

report
called by 13
src/helpers/report.ts
editMessage
called by 9
src/helpers/MessageEditor.ts
updateMessages
called by 6
src/helpers/updateDownloadRequests.ts
deleteDocuments
called by 5
src/helpers/updateDownloadRequests.ts
findOrCreateChat
called by 5
src/models/Chat.ts
sendCompletedFile
called by 4
src/helpers/sendCompletedFile.ts
unlincSyncSafe
called by 3
src/helpers/unlincSyncSafe.ts
findUrl
called by 3
src/models/Url.ts

Shape

Function 42
Class 12
Interface 3
Method 3
Enum 1

Languages

TypeScript100%

Modules by API surface

src/helpers/updateDownloadRequests.ts5 symbols
src/helpers/report.ts5 symbols
src/helpers/MessageEditor.ts5 symbols
src/models/downloadRequestFunctions.ts4 symbols
src/models/downloadJobFunctions.ts4 symbols
src/models/Url.ts4 symbols
src/helpers/getThumbnailUrl.ts4 symbols
src/models/Chat.ts3 symbols
src/menus/language.ts3 symbols
src/models/DownloadRequest.ts2 symbols
src/models/DownloadJob.ts2 symbols
src/models/Context.ts2 symbols

For agents

$ claude mcp add VideoDownloadBot \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact