Giter Club home page Giter Club logo

animated-lamp's Introduction

Telegram Bot For Screenshot Generation

Description

An attempt to implement the screenshot generation of telegram files without downloading the entire file. Live version can be found here @screenshotit_bot

Installation Guide

Prerequisites

  • FFmpeg
  • Python3 (3.8.2)

Local setup

  • Clone to local machine.
$ git clone https://github.com/odysseusmax/animated-lamp.git
$ cd animated-lamp
  • Create virtualenv
$ pip3 install virtualenv
$ virtualenv venv
$ source venv/bin/activate
  • Install dependencies
$ pip3 install -r requirements.txt

Environment Variables

Properly setup the environment variables.

  • API_ID(required) - Get your telegram API_ID from https://my.telegram.org/
  • API_HASH(required) - Get your telegram API_HASH from https://my.telegram.org/
  • BOT_TOKEN(required) - Obtain your bot token from Bot Father
  • SESSION_NAME(required) - Name you want to call your bot's session, Eg: bot username
  • USER_SESSION_STRING(required) - Userbot's session string.
  • MIDDLE_MAN(required) - Middle man channel's id.
  • LINK_GEN_BOT(required) - Username of the bot that generates streamable links for the telegram files.
  • LOG_CHANNEL(required) Log channel's id.
  • DATABASE_URL(required) - Mongodb database URI
  • AUTH_USERS(required) - Authorised user(s) id separated by space.

Run bot

$ python3 run.py

Now go to your bot and do a /start.

Contributions

Contributions are welcome.

Contact

You can contact me @odysseusmax

Thanks

Thanks to Dan for his Pyrogram library.

License

Code released under The GNU General Public License.

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.