Giter VIP home page Giter VIP logo

ytbdownbot's Introduction

YtbDownBot

Telegram bot that utilize youtube-dl functionality for downloading video directly to telegram. Simple clone of https://t.me/VideoTubeBot.

Dependencies

Install ffmpeg and python3.

Python3 dependencies install via pip3 install -r requirements.txt

Running

For running required phone number for bypassing telegram bot api upload files limitation to 50 MB.

Set the following enviroment variables:

  1. Bot token(from Bot Father): BOT_API_TOKEN

  2. Chat id between bot and agent (regular client with phone number for bypass limit in 50MB): BOT_AGENT_CHAT_ID

  3. Chat id between agent(regular client with phone number for bypass limit in 50MB) and bot: CHAT_WITH_BOT_ID

  4. Api id (https://core.telegram.org/api/obtaining_api_id): API_ID

  5. Api hash (https://core.telegram.org/api/obtaining_api_id): API_HASH

  6. Telegram client session string for telethon StringSession: CLIENT_SESSION

  7. IBM Cloudant credentials: CLOUDANT_USERNAME, CLOUDANT_PASSWORD, CLOUDANT_URL (can be easily replaced with CouchDB: read https://python-cloudant.readthedocs.io/en/latest/getting_started.html)

Note: for deploying webhook branch you must set also webhook url via calling https://api.telegram.org/bot<bot-token>/setWebhook?url=<webhook-url> (webhook-url path is bot_domanin+/bot like mybot.com/bot) Use master branch if you want to use polling instead.

ytbdownbot's People

Contributors

kfur avatar dependabot-preview[bot] avatar n30z3n avatar

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.