Coder Social home page Coder Social logo

willowhackett / ashesofpheonix Goto Github PK

View Code? Open in Web Editor NEW

This project forked from m4mallu/ashesofpheonix

1.0 0.0 1.0 46 KB

#Telegram #Multipurpose #Multimedia #Bot #Media-formatting #YouTubeDL #CopyToChats #3in1Robot

License: Other

Python 100.00%

ashesofpheonix's Introduction

ashesOFpheonix ๐Ÿค–

An Open Source ALL-In-One Telegram RoBot, that can do a lot of things.

๐Ÿ’  About :

An advanced telegram bot which performs the following functions differently.

1. File Formatting Functions ๐Ÿ˜:

๐Ÿ˜Just give a required file name with supported extensions as a Reply to any telegram media will give the following results in Bot.
These functions can be done in a single download
๐Ÿ˜

  • Custom Thumbnail Support
  • File renaming.
  • Converting to video.
  • Extracting screenshots.
  • Making duplicates of downloaded media in a Doc / Video formats.
  • Trimming streams from the downloaded media.

2. Downloading YouTube Videos ๐Ÿ˜:

  • Downloading YouTube media.
  • taking Screenshots of the downloaded media.
  • Trimming Videos from the downloaded media.
  • Custom Thumbnail support (If available, else use default thumbnail of the videos).
  • Make duplicate copies of the downloaded media in Video / Doc formats.

3. Copying medias to 5 different Chats ๐Ÿ˜:

  • For this, bot must be an admin of the required chats(Channels / Groups with privileges)
  • Configuration Variables should be entered properly (Channel Names & IDs)
  • Don't forget to enter a prefix of '-100' to the channel / group IDs

  • Configure the var with required information
  • Command /channel1 to /channel5 will set the default channel to copy medias to them.
  • channel1 is mandatory while the others are optionals.
  • Command /view will give the default channel name.
  • Command /list will give the list of current channels configured to the bot.
  • Command /send will copy the replied media to the default channel.

๐Ÿ’  Advantage

  • Doesn't need any repeated uploads & downloads for different operations and even in YouTube downloads ๐Ÿ˜‰
  • Will get all you want in a single download. Save your time... be in your mood ๐Ÿง
  • Can send the formatted media directly to 5 chats (configured in var) through /send command.
  • Finally: If you are a movie channel admin, the bot is all yours ๐Ÿฅณ

๐Ÿ’  Easy Way :

Deploy

Note: YouTube downloads having some errors when deployed in heroku. Try other vps to test if possible.

๐Ÿ’  In linux Servers Or VPS:

Create config.py with variables as given below

An example config.py file could be:

class Development(Config):
  APP_ID = "5531485"
  API_HASH = "eb064548abfb49dc3eeb1aeb98ae0f581e"
  TG_BOT_TOKEN = "6244445444:nhs6sgvhh6776gfnhsb4asas1aNbb"
  AUTH_USERS = [245588455,246456588,3452256266]
  PRE_FILE_TXT = "@MovieKeralam."
  CHANNEL1_ID = "-10013547554452"                            
  CHANNEL1_NAME = "My Channel"
  CHANNEL2_ID = "-1001554222221"
  CHANNEL2_NAME = "My Second Channel"
  CHANNEL3_ID = ""
  CHANNEL3_NAME = ""
  CHANNEL4_ID = ""
  CHANNEL4_NAME = ""
  CHANNEL5_ID = ""
  CHANNEL5_NAME = ""

Channel_2 Channel_3 Channel_4 Channel_5 Parameters are Optionals, While the others are Mandatory.

Pre requesties are : ffmpeg :

sudo apt-get install ffmpeg

After creating the config file, open a terminal in the bot directory and run the following commands (Don' run as root !)

virtualenv -p python3 venv
. ./venv/bin/activate
pip3 install -r requirements.txt
python3 bot.py

๐Ÿ’  @BotFather Commands

start - Check if the Bot is Online
send  - send media to the defaul channel
view  - view the default channel name
list  - List the channels configured to the bot
channel1- set channel1 as default channel
channel2- set channel2 as default channel               (Optional)
channel3- set channel3 as default channel               (Optional)
channel4- set channel4 as default channel               (Optional)
channel5- set channel5 as default channel               (Optional)

๐Ÿ’  LICENSE

  • GPLv3

๐Ÿ’  Credits :

SpEcHiDe for his AnyDLBot

HASIBUL KOBIR For his Valuable supports !

DAN for his Pyrogram Library

Adithyan for his CHNL-Forward-Bot

๐Ÿ’  Creator :

Mallu Boy In Telegram AS

ashesofpheonix's People

Contributors

m4mallu avatar

Stargazers

 avatar

Forkers

pachukk

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.