All Projects → namuan → tele-vdo-rider

namuan / tele-vdo-rider

Licence: MIT license
Telegram bot to convert online videos to audio (mp3)

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects
shell
77523 projects

Projects that are alternatives of or similar to tele-vdo-rider

FarmWatchBot
FarmWatchBot for Ewbf, Claymore, Dstm, CCminer, Bminer, Ethminer, Cast XMR, Phoenix, T-Rex, Gminer, NB miner
Stars: ✭ 89 (+423.53%)
Mutual labels:  telegram-bot
openbooks
Search and Download eBooks
Stars: ✭ 752 (+4323.53%)
Mutual labels:  self-hosted
Telegram Vc Bot
A bot that can play music on telegram group's voice chat.
Stars: ✭ 94 (+452.94%)
Mutual labels:  telegram-bot
Telegram-bot-Google-Drive
Simple Telegram bot Google Drive integration example
Stars: ✭ 46 (+170.59%)
Mutual labels:  telegram-bot
selfhosted
Selfhosted services docker-compose manifests
Stars: ✭ 64 (+276.47%)
Mutual labels:  self-hosted
VCPlayerBot
Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live steams, YouTube videos and telegram media. Supports scheduling streams, recording and many more.
Stars: ✭ 432 (+2441.18%)
Mutual labels:  telegram-bot
shieldy
@shieldy_bot Telegram bot repository
Stars: ✭ 644 (+3688.24%)
Mutual labels:  telegram-bot
BTB-manager-telegram
A feature packed but easy-to-use Telegram bot for remotely managing Binance Trade Bot instances
Stars: ✭ 337 (+1882.35%)
Mutual labels:  telegram-bot
LyricsPyRobot
A Telegram bot for searching lyrics.
Stars: ✭ 29 (+70.59%)
Mutual labels:  telegram-bot
All-Url-Uploader
A simple telegram Bot, Upload Media File| video To telegram using the direct download link. (youtube, Mediafire, google drive, mega drive, etc)
Stars: ✭ 122 (+617.65%)
Mutual labels:  telegram-bot
RPi-TELEBOT
Python based Telegram bot to monitor and control the raspberry pi
Stars: ✭ 19 (+11.76%)
Mutual labels:  telegram-bot
joinhider bot
Telegram bot to delete user joined messages
Stars: ✭ 20 (+17.65%)
Mutual labels:  telegram-bot
remindbot
Hazel - a Golang Telegram Bot for Reminders
Stars: ✭ 42 (+147.06%)
Mutual labels:  telegram-bot
Pyro-FileStreamBot
Stream Telegram files to web
Stars: ✭ 38 (+123.53%)
Mutual labels:  telegram-bot
certfico
App para geração e envio de certificados para eventos
Stars: ✭ 20 (+17.65%)
Mutual labels:  self-hosted
git-profiler-bot
Telegram bot which fetches GitHub Profiles.
Stars: ✭ 23 (+35.29%)
Mutual labels:  telegram-bot
pong
Basic uptime monitoring system, with email alerts and/or push notifications
Stars: ✭ 94 (+452.94%)
Mutual labels:  telegram-bot
podcasting-resources
Resources and links related to podcasting. Created for W/S/C 2018 but can be forked/added to as time goes on.
Stars: ✭ 43 (+152.94%)
Mutual labels:  podcasting
RAM-UBOT
USERBOT TELEGRAM BUAT SENENG-SENENG AJA BLOK!
Stars: ✭ 69 (+305.88%)
Mutual labels:  telegram-bot
SWRATT
🤖 ☠️ 💬 A simple Telegram Bot that controls the victim's computer.
Stars: ✭ 38 (+123.53%)
Mutual labels:  telegram-bot

Tube Telegram Rider

GitHub license Twitter Follow

Telegram Bot 🤖 to convert videos to mp3 at your service. It uses youtube-dl so videos from any supported websites can be used.

Support Youtube playlists along with a number of other websites.

Convert to the best possible audio track

Work around Telegram size limitation by chunking large MP3 files

Clone project

git clone https://github.com/namuan/tele-vdo-rider.git

Running it locally

To run it, you'll need to create a new bot using @botfather. Note down the bot token once your bot is registered. Copy env.cfg.sample to env.cfg and set the token value for TELEGRAM_BOT_TOKEN variable.

cp env.cfg.sample env.cfg

Then we'll setup a local python virtual environment and install required dependencies. Make sure you have python3 installed before running the following command.

make setup

We also need to set up ffmpeg which is used to convert Video -> MP3. On a mac, it is a single command using brew.

brew install ffmpeg

You'll find instructions to set up on other platforms.

Next, run the bot

make run

If previous commands worked then this will start the bot. Try adding your new bot on Telegram and send a youtube video.

Here is a good one to try. The first 20 hours -- how to learn anything | Josh Kaufman | TEDxCSU

Self-Hosting

Although running locally is fine for testing, you may want to run it in background to avoid any disruptions. Here is a quick guide for setting it up on a VPS or RaspberryPi (Once you get past installing ffmpeg on it 😡).

Step 1: Setup VPS or use existing server(Raspberry Pi) Start a new VPS with Ubuntu on Vultr (Affiliate Link) or DigitalOcean (Affiliate Link).

☕️ Wait for it to come up online.

🧹 Remember: Clean up - Make sure you delete this server if not used to avoid incurring cost.

Step 2: Checking connectivity

Once you have the server running, we'll try to connect to it. It is better to set up a dedicated host entry as below. Some commands in the Makefile assumes that the host entry matches the project directory.

👉 Tip: Splitting SSH Config - I used to use poet to split ssh files but from OpenSSH 7.3 it supports the Include directive to allow multiple ssh config files. It makes it easy and manageable for working with many SSH entries

Host tele-vdo-rider
	User root
	HostName xx.xx.xx.xx
	Port 22
	IdentitiesOnly yes
	IdentityFile ~/.ssh/dfiles

So if you have the above entry under ~/.ssh, running the following command will try to connect and ssh into the server.

$ make ssh

Make sure this works before continuing, and note that you may have to enter the Password from the VPS provider (Vultr/DigitalOcean).

Step 3: Installing dependencies

We also need to install a few dependencies if they are missing from the server. The following command will take care of that.

# ssh into server
$ make server

Step 4: Starting up Bot

Again, we'll use the make command to start the bot in a screen session.

make start

The bot is running once the command finishes. Try sending another Youtube video to see it in action.

Step 5: Testing if Bot is running

If there is anything wrong, you can see what is going on the server.

# ssh
make ssh

# check screen sessions
screen -ls

# attach to existing screen session
screen -x tele-vdo-rider

# detach from a session
Ctrl + A then D

Make sure that you detach from screen session before leaving the server to keep the bot running.

Step 6: [Optional] Updating Bot

Run the following command from your local machine, and it should update the bot and restart the session automatically.

make start

Credits

License

See LICENSE

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].