{"id":13825251,"url":"https://github.com/oVo-HxBots/Utubeitbot","last_synced_at":"2025-07-08T21:31:45.906Z","repository":{"id":43441291,"uuid":"407357688","full_name":"oVo-HxBots/Utubeitbot","owner":"oVo-HxBots","description":"Youtube Video Uploader Bot From Telegram","archived":false,"fork":false,"pushed_at":"2024-06-18T06:05:59.000Z","size":3631,"stargazers_count":27,"open_issues_count":0,"forks_count":128,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-05T09:14:01.580Z","etag":null,"topics":["bot","telegram","telegram-bot","youtube","youtube-dl"],"latest_commit_sha":null,"homepage":"https://t.me/HxSourceCode","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oVo-HxBots.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["oVo-HxBots","OVoIndia"],"custom":"https://upayme.vercel.app/hxbots@pingpay"}},"created_at":"2021-09-17T00:51:50.000Z","updated_at":"2024-08-05T09:14:01.581Z","dependencies_parsed_at":"2023-11-12T15:52:33.587Z","dependency_job_id":"f9d1cf0e-1a0d-4149-b8c8-c3a58976f461","html_url":"https://github.com/oVo-HxBots/Utubeitbot","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oVo-HxBots%2FUtubeitbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oVo-HxBots%2FUtubeitbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oVo-HxBots%2FUtubeitbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oVo-HxBots%2FUtubeitbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oVo-HxBots","download_url":"https://codeload.github.com/oVo-HxBots/Utubeitbot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225465291,"owners_count":17478518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","telegram","telegram-bot","youtube","youtube-dl"],"created_at":"2024-08-04T09:01:17.264Z","updated_at":"2024-11-20T03:30:54.563Z","avatar_url":"https://github.com/oVo-HxBots.png","language":"Python","funding_links":["https://github.com/sponsors/oVo-HxBots","https://github.com/sponsors/OVoIndia","https://upayme.vercel.app/hxbots@pingpay"],"categories":["Python"],"sub_categories":[],"readme":"# [Youtube Uploader Bot](https://tx.me/Utubeitbot)\n[![GitHub forks](https://img.shields.io/github/forks/oVo-HxBots/Utubeitbot?\u0026style=flat-square\u0026logo=github)](https://github.com/oVo-HxBots/Utubeitbot/fork)\n![Repo Size](https://img.shields.io/github/repo-size/oVo-HxBots/Utubeitbot?\u0026style=flat-square\u0026logo=github)\n[![GitHub stars](https://img.shields.io/github/stars/oVo-HxBots/Utubeitbot?\u0026style=flat-square\u0026logo=github)](https://github.com/oVo-HxBots/Utubeitbot/stargazers)\n\n#### Use **Heroku** Brach For Heroku Deploy\n#### [Render Support Added](#render)\n#### [Koyeb Support Added](#koyeb)\n\n\u003e Simple [Telegram Bot](https://core.telegram.org/bots \"Telegram Bots\") to Upload videos to [Youtube](https://youtube.com \"YouTube\") written in Python3.\n\n### Contents\n\n- [Info](#info)\n- [Libraries Used](#libraries-used)\n- [Setup](#setup)\n- [Heroku](#heroku)\n- [Render](#render)\n- [Koyeb](#koyeb)\n- [Status](#status)\n- [Special Notes](#special-notes)\n- [Screenshots](#screenshots)\n- [Video Tutorial](#video-tutorial)\n- [Contact](#contact)\n- [Commands](#commands)\n- [License](#license)\n\n## How To Deploy; [See Video Here](https://youtu.be/JltFDW5X4Y0) \n\n### Info\n\nThis is a simple hobby project which I was really curious about to implement. This is a Telegram bot which uses [Youtube Data API v3](https://developers.google.com/youtube/v3/ \"Youtube Data API v3\") to upload videos to Youtube.\n\n### Libraries Used\n\n- [Pyrogram](https://github.com/pyrogram/pyrogram \"Pyrogram\")\n- [Google Client API](https://github.com/googleapis/google-api-python-client \"Google Client API\")\n\n### Setup\n\n:heavy_exclamation_mark: This project requires Python3.6 or higher\n\n**Clone and setup virtual environment**\n\n```bash\n$ git clone https://github.com/oVo-HxBots/Utubeitbot.git\n\n$ cd Utubeitbot\n\n$ python3 -m venv venv\n\n$ source venv/bin/activate\n\n```\n\n**Environment Variables**\n\n- `BOT_TOKEN`(Required) - Get your bot token from [Bot Father](https://tx.me/BotFather \"Bot Father\").\n- `SESSION_NAME`(optional) - Your bot's username.\n- `API_ID`(Required) - Your telegram api id, get from [Manage Apps](https://my.telegram.org).\n- `API_HASH`(Required) - Your telegram api hash, get from [Manage Apps](https://my.telegram.org).\n- `CLIENT_ID`(Required) - Your google client id.\n- `CLIENT_SECRET`(Required) - Your google client secret.\n- `BOT_OWNER`(Required) - Telegram id of bot owner.\n- `SUPPORT_CHAT_LINK`(Required) - Group/Channel Link Eg:- https://t.me/HxSupport.\n- `DB_URL`(Required) - Optional If You Don't Want It.\n- `DB_NAME`(Optional) - Mongo Database Name.\n- `AUTH_USERS`(optional) - Telegram id's of authorised users, separated by `,`.\n- `VIDEO_DESCRIPTION`(optional) - Any default description to be aded to the video.\n- `VIDEO_CATEGORY`(optional) - YouTube's video category id. If not specified or specified id is invalid, category id will be selected randomly.\n- `VIDEO_TITLE_PREFIX`(optional) - Any prefix to be added to the video's title.\n- `VIDEO_TITLE_SUFFIX`(optional) - Any suffix to be added to the video's title.\n- `UPLOAD_MODE`(optional) - The video's privacy status. Valid values for this property are: `private`, `public`, `unlisted`.\n- `DEBUG` (optional) - Whether to set logging level to DEBUG. If set logging will be set to DEBUG level, else INFO level.\n\n**Getting your `CLIENT_ID` and `CLIENT_SECRET`**\n\n- Head to [Google console](https://console.developers.google.com \"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](https://console.developers.google.com/apis/credentials \"Credentials\") page, select your project `Youtube Uploader` create a new credential with `desktop` as type. Copy the `CLIENT_ID` and `CLIENT_SECRET`.\n- You have to verify your application with google, only then you can make the uploaded videos public. YouTube changed its developer policy, and videos uploaded using unverfied applications will be kept private.\n\n**Install requirements**\n\nRun :\n\n```bash\n$ pip3 install -r requirements.txt\n```\n\n**Run bot**\n\nLets run our bot for the first time!\n\n```bash\n$ python3 -m bot\n```\n\nIf 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.\n\n#### Heroku\n\n**Or the easy way of directly deploying to heroku**\n\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)\n\n#### Render\n\u003cp align=\"center\"\u003e\n\u003cimg  width=\"25%\" height=\"25%\" src=\"./ss/render1.jpg\"\u003e\n\u003cimg  width=\"25%\" height=\"25%\" src=\"./ss/render2.jpg\"\u003e\n\n[See more on our blog with youtube video](https://hxbots.eu.org/2022/12/deploy-youtube-uploader-bot-on-render/)\n\n**the easy way of directly deploying on render**\n\n[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/oVo-HxBots/Utubeitbot)\n\n#### Koyeb\n\u003cp align=\"center\"\u003e\n\u003cimg  width=\"25%\" height=\"25%\" src=\"./ss/koyeb1.jpg\"\u003e\n\u003cimg  width=\"25%\" height=\"25%\" src=\"./ss/koyeb2.jpg\"\u003e\n\n### Development Status\n\nThis project is actively maintained and will continue so until I'm tired of it.\n\n### Special notes\n\n- 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.\n\n- Uploading copyright contents will leads to immediate blocking of the video.\n\n- By default, all the videos are uploaded as private with random category id unless you provide `UPLOAD_MODE` and `VIDEO_CATEGORY`. You may change it after youtube processes the video.\n\n### Screenshots\n\n\u003cp align=\"center\"\u003e\n\n\u003cimg  width=\"25%\" height=\"25%\" src=\"./ss/overview.jpg\"\u003e\n\n\u003cimg  width=\"25%\" height=\"25%\" src=\"./ss/bot-start.jpg\"\u003e\n\n\u003cimg  width=\"25%\" height=\"25%\" src=\"./ss/bot-help.jpg\"\u003e\n\n\u003cimg  width=\"25%\" height=\"25%\" src=\"./ss/bot-authorise.jpg\"\u003e\n\n\u003cimg  width=\"25%\" height=\"25%\" alt=\"Upload\" src=\"./ss/bot-upload.jpg\"\u003e\n\n\u003c/p\u003e\n\n### Video Tutorial\n\nHere's a YouTube tutorial video for deploying the bot on [Heroku](https://heroku.com/ \"Heroku\"). [Video Link](http://www.youtube.com/watch?v=LSs8b5dMWIA \"Tutorial video for deploying to Heroku\").\n\n### Contact\n\nYou can contact me [@hxSupport](https://telegram.dog/hxSupport \"hxSupport\").\n\n### Commands\n```\nstart - Check I'm Alive Or Dead\nlogin - Login Into Account\nhelp - Incase U Need Help\nupload - Replay To Video\nauthorise - + Your Code [4/9OwEqfW.......]\nsave_auth_data - to restore your authorize\nupgrade - Upgrade to No Limits\nupdate - Check New Updates\nstatus - Check Bot's Status\nbroadcast - Only Admins ⚠️ \nrestart - Only Admins ⚠️\nusers - Only Admins ⚠️\n```\n\n### License\n\nCode released under [GNU General Public License v3.0](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FoVo-HxBots%2FUtubeitbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FoVo-HxBots%2FUtubeitbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FoVo-HxBots%2FUtubeitbot/lists"}