Giter Site home page Giter Site logo

VIDEO STREAM BOT

telegram bot project for streaming video on telegram video chat, powered by py-tgcalls and pyrogram

Codacy

โœจ Features

  • Stable video streaming
  • Clear video & audio quality
  • Support youtube live streaming
  • Support youtube video streaming
  • Support streaming video from mp4 video/file video
  • Join & Leave command for assistant
  • Support inline search video
  • Support youtube search video link
  • Support PornHub direct link streaming ๐Ÿ”ž
  • Video downloader feature
  • Song downloader feature
  • Have many other interesting features

๐Ÿ›  Commands:

  • /vplay (reply to video/give yt url) - to start video streaming
  • /vstop - to stop video streaming
  • /song (song name) - to download song
  • /vsong (video name) - to download video
  • /vjoin - invite the assistant join to your group
  • /vleave - order the assistant to leave from your group
  • /lyric (query) - lyric scrapper
  • /tts (reply to text) - text to speech
  • /alive - check the bot alive status
  • /ping - check the bot ping status
  • /uptime - check the bot uptime status
  • /sysinfo - show the bot system information

๐Ÿง™๐Ÿปโ€โ™‚๏ธ Sudo Only:

  • /rmd - clear all downloaded files
  • /rmw - clear all downloaded raw files
  • /leaveall - order the assistant to leave from all group

๐Ÿ“ Note: From now, /vstream & /vstop command can only be used by group admins.

๐Ÿงช Get SESSION_NAME from below:

TAP THIS: GenerateString

๐Ÿ’œ Deploy To Heroku

The easy way to host this bot, deploy to Heroku

Deploy

๐Ÿš„ Deploy To Railway

Deploy+on+Railway

๐ŸŒ€ Run On Workflows

  • fork this repository
  • Go to your forked repository settings
  • Scroll down and select the secrets tab
  • Click on New repository secret button
  • Add the environmental vars as mentioned here
  • Then create new file with structure .github/workflows/run.yml
  • Now in run.yml file, fill with this code below, just copy it and paste in run.yml file
View code
name: Run on workflows
on:
    schedule:
      - cron: "0 */6 * * *"
    push:
      branches: [ main ]
    workflow_dispatch:
    
env:
  API_ID: "${{ secrets.API_ID }}"
  API_HASH: "${{ secrets.API_HASH }}"
  SESSION_NAME: "${{ secrets.SESSION_NAME }}"
  BOT_USERNAME: "${{ secrets.BOT_USERNAME }}"
  ASSISTANT_NAME: "${{ secrets.ASSISTANT_NAME }}"
  DURATION_LIMIT: "${{ secrets.DURATION_LIMIT }}"
  BOT_TOKEN: "${{ secrets.BOT_TOKEN }}"
  SUDO_USERS: "${{ secrets.SUDO_USERS }}"

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
       - uses: actions/checkout@v2
         with:
            ref: beta
       - uses: styfle/[email protected]
         name: "Cancelling duplicate workflow runs"
         with:
            all_but_latest: true
            access_token: ${{ github.token }}
       - uses: actions/setup-node@v2
         with:
            node-version: '16'
       - name: Set up Python 3.9
         uses: actions/[email protected]
         with:
           python-version: 3.9
       - name: cloning repo and install

         continue-on-error: true
         run: |
           sudo apt -qq update && sudo apt -qq install -y --no-install-recommends ffmpeg neofetch
           pip3 install -r requirements.txt
          #  echo "API_ID=${{ secrets.API_ID }} | tee .env
          #  echo "API_HASH=${{ secrets.API_HASH }} | tee -a .env
          #  echo "BOT_USERNAME=${{ secrets.BOT_USERNAME }} | tee -a .env
          #  echo "ASSISTANT_NAME=${{ secrets.ASSISTANT_NAME }} | tee -a .env
          #  echo "SESSION_NAME=${{ secrets.SESSION_NAME }} | tee -a .env
          #  echo "DURATION_LIMIT=${{ secrets.DURATION_LIMIT }} | tee -a .env
          #  echo "SUDO_USERS=${{ secrets.SUDO_USERS }} | tee -a .env
          #  echo "BOT_TOKEN=${{ secrets.BOT_TOKEN }} | tee -a .env || echo "Proceeding with bot"
          #  cat .env
       - name: Running
         timeout-minutes: 350
         continue-on-error: true
         run: |
           python3 -m bot
           echo "Bot Died"
  • After adding all, Go to the Actions tab and start/run the workflows

VPS Deployment

- sudo apt update && upgrade -y
- sudo apt install python3-pip -y virtualenv
- sudo apt install ffmpeg -y
- nvm install v16.5.0
- npm i -g npm
- git clone https://github.com/levina-lab/video-stream
- cd video-stream
- virtualenv venv #Create Virtual Environment.
- source venv/bin/activate #Activate Virtual Environment
- pip3 install --upgrade pip
- pip3 install -U -r requirements.txt
- cp -r sample.env local.env
- nano local.env #Fill it with your variables value.
- python3 -m bot

Special Credits ๐Ÿ’–

Support & Updates ๐ŸŽ‘

rommelmanalu's Projects

asik icon asik

Advanced Multi-Featured Telegram UserBot, Built in Python Using Telethon lib.

docs icon docs

The open-source repo for docs.github.com

geez-userbot icon geez-userbot

Repo Ini Dibuat Hanya Untuk Bersenang Senang, Jadi Gausa Banyak Drama:)

man-userbot icon man-userbot

This is UserBot Telegram with many cool modules. Written in Python with Telethon and Py-Tgcalls.

telegram-paperplane icon telegram-paperplane

The Paperplane userbot project - a Telegram userbot helping to improve your Telegram experience. https://t.me/tgpaperplane

videostream icon videostream

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.