Telegram Bot to store Posts and Documents and it can Access by Special Links. I Guess This Will Be Usefull For Many People.....😇.
- added code system. You should provide users the code with bot tag instead of the link. If your bot got banned it will be tough to change every link of your channel.
- user need to use
/ch2lcommand for converting to link. - fixed single force sub channel issue.
- U_S_E_P variable for adding shortners on all the link of bot generated by bot. (Also used with code system) If any bug found report
- Put TIME=0 for not deleting the files shared.
- Fixed premium user issue.
- Fully customisable.
- Customisable welcome
- More than one Posts in One Link.
- Can be deployed on heroku directly.
- Add the bot to Database Channel with all permission
- Go to botfather and add the following commands -
start - check whether bot is online🟢
ch2l - convert hash to link here 🧑💻
ping - to ping the bot🙂
stats - uptime of the bot [admin only]⏱
users - total users active [admin only]👥
batch - to generate the link in batch [admin only]🔗
genlink - to generate link [admin only]🔀
BEFORE YOU DEPLOY ON HEROKU, YOU SHOULD FORK THE REPO AND CHANGE ITS NAME TO ANYTHING ELSE
Check This Tutorial Video on YouTube for any Help
Thanks to Erich and his InFoTel for this Video
The fastest way to deploy the application is to click the Deploy to Koyeb button below.
git clone https://github.com/Sachinanand99/File-Sharing-Bot.git
cd File-Sharing-Bot
pip3 install -r requirements.txt
# <Create config.py appropriately>
#if you are using any hosting services use dotenvtemplate.txt for putting environment variables
python3 main.py/start- Check whether bot is online 🟢/ping- For checking ping of the bot 🔥/ch2l- For converting code to link for respected bot/stats- Uptime of the bot (admin only) ⏱️/users- Total users active (admin only) 👥/batch- To generate the link in batch (admin only) 🔗/genlink- To generate link (admin only) 🔀/auth- For using the bot which will send the ID to the owner's DM. The owner will add the admin to config file and restart the bot./add_prem- adding user to premium services(admins only) ⚡ UNDER CONSTRUCTION/restart- For restarting the bot(admins only)/admins- list all admins(admins only)/add_admin- For adding new admins(owner only) restart recommended ⚡ UNDER CONSTRUCTION/del_admin- For removing admins(owner only) restart recommended ⚡ UNDER CONSTRUCTION
/broadcast- Reply to any message to broadcast it to all users(owner only).
⚡ Use TRUE instead of True or true.
API_HASHYour API Hash from my.telegram.orgAPP_IDYour API ID from my.telegram.orgTG_BOT_TOKENYour bot token from @BotFatherOWNER_IDMust enter Your Telegram IdCHANNEL_IDYour Channel ID eg:- -100xxxxxxxxDB_URLYour mongo db urlDB_NAMEYour mongo db session nameTIMETime in seconds for message to get delete after downloading fileADMINSOptional: A space separated list of user_ids of Admins, they can only create linksSTART_MESSAGEOptional: start message of bot, use HTMLFORCE_SUB_MESSAGEOptional:Force sub message of bot, use HTML and FillingsFORCE_SUB_CHANNELOptional: ForceSub Channel ID, leave 0 if you want disable force subFORCE_SUB_CHANNEL2Optional: ForceSub Channel ID, leave 0 if you want disable force sub 2, bot may become a bit slower if you add this.PROTECT_CONTENTOptional: True if you need to prevent files from forwarding
USE_SHORTLINKTurn this feature on or off using True or FalseSHORTLINK_API_URLYour Shortner url api.shareus.io,SHORTLINK_API_KEYshortner api key.VERIFY_EXPIREverify expire time in seconds.TUT_VIDVerification tutorial video link. eg: https://t.me/How_to_Download_7x/32
USE_PAYMENTTurn this feature on or off using True of FalseUPI_IDEnter your UPI idUPI_IMAGE_URLEnter your UPI QRSCREENSHOT_URLEnter your profile link for verification of the usersPRICE17 days pricePRICE21 month pricePRICE33 month pricePRICE46 month pricePRICE51 year price
CUSTOM_CAPTIONput your Custom caption text if you want Setup Custom Caption, you can use HTML for formatting (only for documents)DISABLE_CHANNEL_BUTTONPut True to Disable Channel Share Button, Default if FalseBOT_STATS_TEXTput your custom text for stats command, use HTMLUSER_REPLY_TEXTput your text to show when user sends any message, use HTML
{first}- User first name{last}- User last name{id}- User ID{mention}- Mention the user{username}- Username
{filename}- file name of the Document{previouscaption}- Original Caption
{uptime}- Bot Uptime
- TG_BOT_TOKEN
- APP_ID
- API_HASH
- DB_URL
- CHANNEL_ID
- OWNER_ID
- OWNER_TAG
Report Bugs, Give Feature Requests at https://github.com/Sachinanand99/File-Sharing-Telegram-bot/issues
- Thanks To Dan For His Awsome Libary
- Thanks to everyone who is on this awesome opensource project.
Star this Repo if you Liked it ⭐⭐⭐