bugbounted / youtubeuploaderbot

Youtubeuploaderbot - A bot which can upload videos from Telegram To YouTube

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YoutubeUploaderBot

MADE BY INDIAN BOTS TEAM ๐Ÿ‡ฎ๐Ÿ‡ณ๐Ÿ‡ฎ๐Ÿ‡ณ๐Ÿ‡ฎ๐Ÿ‡ณ

Simple Telegram Bot to Upload videos to Youtube written in Python3 By Indian Bot Team โœŒ๏ธ.

If You Got Banned By Youtube Because For Copying A Video And Uploading It through this bot !

And If You Come And Ask For Help ! I will gonna roll on the floor and laugh ! LOL ๐Ÿคฃ

Contents

Info

This is a simple hobby project which i was really curious about to impliment. This is a Telegram bot which uses Youtube Data API v3 to upload videos to Youtube. This bot uses OAuth 2.0 to connect to your Youtube Channel.

Commands

    /start - Starts The Bot
    /help - Help You ! Tells You About About And Help To Authenticate
    /authentication - Use For Authentication
    /upload - Reply to the video to upload To Telegram
    /Authenticate - Put You Authentication Code after this Command To authenticate And Start Uploading 

Libraries Used

Pyrogram

Pyrogram is used to connect the bot with telegram servers.

Google Client API

Google Client API is used to connect the bot with Google and then with Youtube.

Setup

โ— This project requires Python3.7 (as this was written and tested with Python 3.7.3, try and see if it works with other versions)

Clone and setup virtual environment

$ git clone https://github.com/midhunkm1294-bit/youtubeuploaderbot.git

$ cd utube

$ virtualenv venv

$ source venv/bin/activate

Setup config.py

  • Head to Manage Apps and get your API_ID and API_HASH, and save it at the respective positions in config.py

  • Head to Google console, create a new project named Youtube Uploader and enable API'S AND SERVISES. Search for YOUTUBE DATA API v3 and enable the API. Go to Credentials page, select your project Youtube Uploader create a new credential with other as type. Copy the CLIENT_ID and CLIENT_SECRET and paste them to config.py

  • Head to Bot Father, create new bot and paste the bot token to BOT_TOKEN

  • Paste the bot owner's Telegram id to BOT_OWNER and add AUTH_USERS if you need others to use your bot.

  • All the contents of config.py must be kept secret as they contain sensitive informations

Install requirements

With all the above procedures done, its time to install our dependencies. Run :

$ pip3 install -r requirements.txt

Run bot

Lets run our bot for the first time!

$ python3 bot.py

If you did everything correctly, the bot should be running. Go do /start to see if the bot is live or not. Follow the instructions provided by bot to setup authorisation and to start uploading.

Or the easy way of directly deploying to heroku

Deploy

Made by

Stark

Status

This project is actively maintained and will continue so until I'm tired of it.

Special notes

  • With the Youtube Data API you are awarded with 10,000 points of requests. For one video upload it costs 1605 points, regardless of file size, which calculates to about 6 uploads daily. Once you have exhausted your daily points, you have to wait till daily reset. Resets happens at 0:00 PST, i.e. 12:30 IST. So make your uploads count.

  • Uploading copyright contents will leads to immediate blocking of the video, and will not be added to your MyVideos section of youtube. But still the video can be played directly through the link provided by the bot.

  • All the videos are uploaded as private. You may change it after youtube processes the video.

Screenshots

Contact

Share the FeedBack and Suggestions with me.

You can contact me Here

Made By IndianBotsTeam ๐Ÿ‡ฎ๐Ÿ‡ณ๐Ÿ‡ฎ๐Ÿ‡ณ๐Ÿ‡ฎ๐Ÿ‡ณ๐Ÿ‡ฎ๐Ÿ‡ณ

Thank You

About

Youtubeuploaderbot - A bot which can upload videos from Telegram To YouTube

License:GNU General Public License v3.0


Languages

Language:Python 98.0%Language:Dockerfile 1.9%Language:Procfile 0.2%