8000 GitHub - tr3bleee/YouTubeTG: Share MP3 or MP4 from YouTube to Telegram Bot
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tr3bleee/YouTubeTG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Telegram Bot

A Telegram bot for downloading YouTube videos and audio with multi-language support and user preferences.

Features

  • 🔍 Search YouTube videos directly in Telegram
  • 📥 Download videos in MP4 format
  • 🎵 Download audio in MP3 format
  • 🌐 Multi-language support (English and Russian)
  • ⚙️ User preferences for default download type
  • 🔎 Inline search support

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/YouTubeTG.git
cd YouTubeTG
  1. Install dependencies:
npm install
  1. Set up environment variables: Create a .env file with:
BOT_TOKEN=your_telegram_bot_token
YOUTUBE_API_KEY=your_youtube_api_key
DATABASE_URL=your_postgresql_database_url
  1. Set up the database:
npx prisma generate
npx prisma db push
  1. Build and start the bot:
npm run build
npm start

Commands

  • /search [query] - Search for YouTube videos
  • /settings - Configure bot preferences
  • Use inline mode by typing @your_bot_name [query]

Technologies Used

  • Node.js
  • TypeScript
  • Grammy (Telegram Bot Framework)
  • Prisma (Database ORM)
  • PostgreSQL
  • YouTube Data API
  • FFmpeg (for media processing)

Environment Setup

Make sure you have the following installed:

  • Node.js (version 18 or higher)
  • PostgreSQL
  • FFmpeg

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Share MP3 or MP4 from YouTube to Telegram Bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0