Skip to content

shakida/MERGE-BOT

 
 

Repository files navigation

MERGE-BOT

PR's Welcomed


GitHub Repo stars GitHub forks GitHub issues GitHub closed issues GitHub pull requests GitHub closed pull requests GitHub contributors GitHub repo size GitHub commit activity

An Telegram Bot By Yash Oswal To Merge multiple Videos in Telegram into single video.

- WHAT'S NEW:
+ Option to add subtitles to telegram video
#  1. First send video.
#  2. Then send subtitle in .srt format only (you can send as many subs as you want).
#  3. Tap Merge Subtitle button.
+ Option to Add subtitles through file menu (UNSTABLE)
+ Upload Files to Drive (Send your rclone config to bot)
#  1. Send your rclone config to bot.
#  2. Then send videos to merge, after you tap "Merge Now", upload to drive option will available.
+ Merged video preserves all streams of the first video you send (i.e. all audiotracks/subtitles)

- FEATURES:
+ Merge Upto 10 videos in one 
+ Upload as document/video 
+ Custom thumbnail support
+ Users can login to bot using password
+ Owner can broadcast message to all users
+ Log Channel to store all merged videos

- TO DO:
+ Add support to merge multiple audios with video

Deploy Tutorial :

Watch the video

Deploy(at your own risk) :

OR

Goto settings > actions > secret > New Repository Secret
Add HEROKU_EMAIL
Add HEROKU_API_KEY
Add HEROKU_APP_NAME
Add CONFIG_FILE_URL
Goto Actions > Manual Deplot To Heroku > Run Workflow

Tutorial to get MongoDB URI:

Watch the video

Config File Variables :

  1. API_ID : User Account Telegram API_ID, get it from my.telegram.org
  2. API_HASH : User Account Telegram API_HASH, get it from my.telegram.org
  3. BOT_TOKEN : Your Telegram Bot Token, get it from @Botfather XD
  4. OWNER: Enter bot owner's ID
  5. OWNER_USERNAME: User name of bot owner
  6. DATABASE_URL: Enter your mongodb URI
  7. PASSWORD: Enter password to login bot
  8. LOGCHANNEL: Log channel will store all users merged videos

Commands (add via @botfather) :

start - Start The Bot
showthumbnail - Shows your thumbnail
deletethumbnail - Delete your thumbnail
help - How to use Bot
about - About the bot
login - Access bot
broadcast - (admin) Broadcast message to bot users
stats - check bots stats

Self Host

$ git clone https://github.com/yashoswalyo/MERGE-BOT.git
$ cd MERGE-BOT
$ sudo apt-get install python3-pip ffmpeg
$ pip3 install -U pip
$ pip3 install -U -r requirements.txt
# <fill config.py correctly>
$ python3 bot.py

License

Merge Bot, Telegram Video Merge Bot
Copyright (c) 2021  Yash Oswal <https://github.com/yashoswalyo>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>

Credits

About

A telegram video merge with softmux support bot by @yashoswalyo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.2%
  • Other 0.8%