This is Telegram Files Store Bot by @AbirHasan2005.
- In PM Just Forward or Send any file it will save on Database & give you the Access Link.
- In Channel Add Bot as Admin with Edit Rights. When you will send any file or media in Channel it will Edit the Broadcast Message with Saved Link Button.
- You can also Broadcast anythings via this Bot.
- You can also Do Force Sub to a Channel to allow access the Bot.
API_ID- Get this from @TeleORG_BotAPI_HASH- Get this from @TeleORG_BotBOT_TOKEN- Get this from @BotFatherBOT_USERNAME- Your Bot's Username. (Without [@])DB_CHANNEL- The Channel ID which will be used as DatabaseBOT_OWNER- Bot Owner UserIDDATABASE_URL- MongoDB Database URI for Saving UserID for Broadcast.UPDATES_CHANNEL- ID of a Channel which you want to do Force Sub to use the bot. (Optional)LOG_CHANNEL- Logs Channel ID for some Tracking.
- Click on it. Make sure you have all the creds ready.
- Enter them in the fields provided, click deploy and wait for
Build Successfulmessage - Once it deploys successfully don't forget to Turn on the Dyno from
RESOURCEStab.
- Import the repo and edit the config.py file and enter your creds if you know where to.
- Heroku -> Create App -> Select it, goto
DEPLOYtab and select GitHub and connect to your account by pressing theLINK GITHUB ACCOUNTbutton at the bottom. - Search for and select the imported repo and click deploy. Also, don't forget to Turn on Dyno from
RESOURCEStab once it deploys successfully.
- Fork this repo.
- Create app on heroku. Open it and select
DEPLOYtab and connect your GitHub account. - Search and select the imported repo and click deploy directly.
- The repo will be deployed with dummy values in the Environment Variables. Doesn't matter as long as you don't turn on the dyno.
- Whenever you are ready just edit the variables in
SETTINGS->REVEAL CONFIG VARS. - Turn on the dyno in
RESOURCEStab once you enter all creds correctly.
- Clone this repo with
git clone https://github.com/AbirHasan2005/PyroFilesStoreBot - Change into the cloned repo
cd PyroFilesStoreBot - Edit variables in config.py file with any text editor.(Remove dummy values and put your own). Vim:
vim config.py - Run this command to install the prerequisites:
pip3 install -r requirements.txt - Lastly, run
python3 bot.py(Linux) orpython bot.py(Windows) to start the bot.