WillTreze / TG-Rename-Pro-Bot

⚡ File Rename | ⚡ Video converter | ⚡Also Bot can send files to 5 different chats

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Telegram File Rename Bot With Permanent Thumbnail Support Also It Can Send Files Into 5 Different Channels/Groups!!

🔮 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.
  • Making duplicates of downloaded media in a Doc / Video formats.

2. 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 😉
  • Can send the formatted media directly to 5 chats (configured in var) through /send command.

🔮 Easy Way :

Deploy

🔮 In Servers Or VPS:

Create config.py with variables as given below

An example config.py file could be:

class Development(Config):
  APP_ID = "12345"
  API_HASH = "eb064548abfb49dc3eeb1aeb98ae0f581e"
  TG_BOT_TOKEN = "6244445444:nhs6sgvhh6776gfnhsb4asas1aNbb"
  AUTH_USERS = [677682427]
  CHANNEL1_ID = "-10011111111111"                            
  CHANNEL1_NAME = "Channel Name"
  CHANNEL2_ID = "-1002222222222"
  CHANNEL2_NAME = "2 Channel Name"
  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.

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

🔮 Bot 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

DAN for his Pyrogram Library

🔮 Creator :

Mr. Dlaize

About

⚡ File Rename | ⚡ Video converter | ⚡Also Bot can send files to 5 different chats

License:Other


Languages

Language:Python 100.0%