{"id":24650459,"url":"https://github.com/bizzy-0110/restreambot","last_synced_at":"2026-05-20T10:37:02.743Z","repository":{"id":271947702,"uuid":"915033562","full_name":"Bizzy-0110/ReStreamBot","owner":"Bizzy-0110","description":"Telegram bot for restream your livestream on multiple platforms at the same time","archived":false,"fork":false,"pushed_at":"2025-01-11T07:54:08.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T18:15:02.246Z","etag":null,"topics":["multistream","nginx","restream","restream-bot","rtmp-stream","stream","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bizzy-0110.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-01-10T20:27:08.000Z","updated_at":"2025-01-11T07:54:11.000Z","dependencies_parsed_at":"2025-01-10T23:28:29.251Z","dependency_job_id":"c133ffe8-464e-4444-82f3-f6ac75615c7c","html_url":"https://github.com/Bizzy-0110/ReStreamBot","commit_stats":null,"previous_names":["bizzy-0110/restreambot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bizzy-0110%2FReStreamBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bizzy-0110%2FReStreamBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bizzy-0110%2FReStreamBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bizzy-0110%2FReStreamBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bizzy-0110","download_url":"https://codeload.github.com/Bizzy-0110/ReStreamBot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244685696,"owners_count":20493310,"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":["multistream","nginx","restream","restream-bot","rtmp-stream","stream","telegram-bot"],"created_at":"2025-01-25T18:15:09.221Z","updated_at":"2026-05-20T10:37:02.687Z","avatar_url":"https://github.com/Bizzy-0110.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"ReStreamBot is a bot for Telegram made in 2022 that allows you to re-route your stream in multiple platforms at the same time with the power of a Linux server.\n# Installation\n#### Clone the repository\n```terminal\ngit clone https://github.com/Bizzy-0110/ReStreamBot.git\n```\n```terminal\ncd ReStreamBot\n```\n```terminal\npip install requirements.txt\n```\n#### Install Nginx with the RTMP module\nTo install Nginx with the RTMP module you can follow [this guide](https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50/).\n\nA summary of the guide can be found under here.\n\nDownload dependencies:\n```terminal\nsudo apt update\n```\n```terminal\nsudo apt install -y build-essential libpcre3 libpcre3-dev libssl-dev \n```\n\nFrom your home directory, download the nginx source code and get the RTMP module source code from git:\n```terminal\nwget http://nginx.org/download/nginx-1.15.1.tar.gz\nwget https://github.com/sergey-dryabzhinsky/nginx-rtmp-module/archive/dev.zip\n```\nUnpack/unzip them both, enter the nginx directory and build nginx with the RTMP module:\n```terminal\ntar -zxvf nginx-1.15.1.tar.gz\n```\n```terminal\nunzip dev.zip\n```\n```terminal\ncd nginx-1.15.1\n```\n```terminal\n./configure --with-http_ssl_module --add-module=../nginx-rtmp-module-dev\n```\n```terminal\nmake\n```\n```terminal\nsudo make install \n```\n\nAnd nginx is installed! By default it installs to /usr/local/nginx, so to start the server run the following command:\n```terminal\nsudo /usr/local/nginx/sbin/nginx \n```\nTo restart it, use:\n```terminal\nsudo /usr/local/nginx/sbin/nginx -s stop\n```\n```terminal\nsudo /usr/local/nginx/sbin/nginx \n```\n\n# Setup\n## Bot\nEdit the costants at the beginning of the `main.py` according to your needs\nAnd add the bot token and the whitelist members in `secret.json`.\n## Nginx\nOpen the Nginx configuration and add the following\n```text\nrtmp {\n\tserver {\n\t\tlisten 1935;\n\t\tchunk_size 4096;\n\n\t\t application starting_key {\n\n\t\t\tlive on;\n\t\t\trecord off;\n\n\t\t\tmeta copy;\n\n\t\t\t\n\t\t\t# \u003cput here the rtmp servers that you want\u003e\n\t\t\t# Example\n\t\t\t# Youtube\n\t\t\t# push rtmp://a.rtmp.youtube.com/live2/{stream_key};\n\t\t\t# Twitch\n\t\t\t# push rtmp://ingest.global-contribute.live-video.net/app/{stream_key};\n\t\t}\n\t}\n\n}\n```\n## Find the Rtmp Server Urls of the platform you want\n\nUrls for [Twitch](https://help.twitch.tv/s/twitch-ingest-recommendation?language=en_US)\n\nUrl for youtube: \n```text\npush rtmp://a.rtmp.youtube.com/live2/\u003cYourStreamKey\u003e\n```\n\n\n# Starting the bot\n```terminal\npython3 main.py\n```\n\n# Bot Commands\n**/stop =** stop the stream and change the token\u003cbr\u003e\n**/start =** generate a new token and start the nginx service\u003cbr\u003e\n**/reload =** reload the nginx service\u003cbr\u003e\n**/get_token =** get the current token\u003cbr\u003e\n**/help =** get help for the commands\u003cbr\u003e\n\n# Usage\nSetup the bot and start it\nAfter starting the bot with the appropriate command go to the OBS settings, then go to Stream section, select custom in the Service selector, now, in the Server textbox insert:\n```\nrtmp://\u003cYourLinuxServerIp\u003e/\u003cTheTokenGivenByTheBot\u003e\n```\nThen if you configured correctly when you start your livestream the video streaming should be re-sent to the selected platforms\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbizzy-0110%2Frestreambot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbizzy-0110%2Frestreambot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbizzy-0110%2Frestreambot/lists"}