Advance Telegram Bot that can work as Message/Files Forwarder from Restricted or Non-Restricted Channels/Groups/Bots. It can save files even if the channel have restrictions of forwarding or else.
- Forward public/private channel messages for private user login needed as forward method
- Save/clone individual post by its post link
- Can save multiple post link via
batch
command up to 10K
-
Initial Setup:
- Edit both
__init__.py
andconfig.py
files with your variables.
- Edit both
-
Clone and Run:
- Clone your forked and edited repository:
git clone forked_edited_repo_link
- Navigate to the repository directory:
cd repo_name
- Copy
__init__.py
to thesrc/devagagan
directory:cp __init__.py src/devagagan
- Run the bot:
python main.py && cd src && python -m devgagan
- Clone your forked and edited repository:
-
Setup on Heroku:
- Go to Heroku Dashboard and create a new app.
- Connect your GitHub repository to Heroku.
- Search and deploy the forked repository.
- Back to the app view and refresh the page.
-
Configure Dynos:
- Configure dynos for
devagagan1
anddevgagan2
.
- Configure dynos for
- Make sure to replace
forked_edited_repo_link
with the link to your forked and edited repository. - Replace
repo_name
with the name of your repository. - Update the
__init__.py
andconfig.py
files with your bot's specific variables before deployment. - Ensure that your bot is configured correctly according to the requirements of the Telegram Bot API.
# variables
API_ID = "1234567" #config("API_ID", default=None, cast=int)
API_HASH = "1167433546577f90e4519b65634b7" #config("API_HASH", default=None)
BOT_TOKEN = "7173773796:AAEYdIdgUg1_SYR7wSaMpgY0" #config("BOT_TOKEN", default=None)
SESSION = "BQHDMOUAIOGZHesmwkhKztZ1bU7NokB1HVLtNKHAnr35ElBp-FQ7IPkvayF0s5JoOGLN44ksi4kqeUNxnG56Vd8Mh_2Lo3ICHSN2J2u0WyYIOj96FBxN2gq_iekABQkL-vdXTB1DrOswqzBJBG9RaGPFVoiEYDAd0iD2vqgT3x2wOz98gBZNKPCGpWQYbGR6GKe66W5SRZRlLWJaEDQcTEIxNF48nIEGW7cwK2AG3eR4-iyVg5Zxaje_ACeNuCN5kLtQsNkGEV23f7-EdLQTG1zKnZ57AjUvYQdJ7o1pdGhkKknUUmOcfG4xn42RbHUwccqD1CmsGLU5Zh-vTbgBGh9AiP79HAAAAAGlHSMFAA" #config("SESSION", default=None)
FORCESUB = "channel username without @" #config("FORCESUB", default=None)
AUTH = "1234567" #config("AUTH", default=None)
Commands Available in Bot - TEAM SPY
/start
- to start the bot/batch
- to download the files in range/bulk by giving one post link and range value/cancel
- to cancel the onging /batch task/stats
- to viewing the statics of bot/speedtest
- can be executed by owner only/setchat
- Set forwarding to a channel/group via channel/group ID including -100/forward or /fwd
- to start forward/settings
- to change settings for forward botrestart
- to restart the bot/resetall
- to reset unlink all other users / bot/broadcast
- send bulk message to all users who ever have started the bot/help
- get help about other commands
Visit Terms and accept the guidelines.
Contributions are welcome! Please feel free to submit issues or pull requests.
This project is licensed under the MIT License.