Skip to content

falkaabi/VideoDownloadBot

 
 

Repository files navigation

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.

About

Telegram bot to download videos from URLs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%