Telegram Bot to store Posts and Documents and it can Access by Special Links. I Guess This Will Be Usefull For Many People.....π.
/ch2l
command for converting to link.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_HASH
Your API Hash from my.telegram.orgAPP_ID
Your API ID from my.telegram.orgTG_BOT_TOKEN
Your bot token from @BotFatherOWNER_ID
Must enter Your Telegram IdCHANNEL_ID
Your Channel ID eg:- -100xxxxxxxxDB_URL
Your mongo db urlDB_NAME
Your mongo db session nameTIME
Time in seconds for message to get delete after downloading fileADMINS
Optional: A space separated list of user_ids of Admins, they can only create linksSTART_MESSAGE
Optional: start message of bot, use HTMLFORCE_SUB_MESSAGE
Optional:Force sub message of bot, use HTML and FillingsFORCE_SUB_CHANNEL
Optional: ForceSub Channel ID, leave 0 if you want disable force subFORCE_SUB_CHANNEL2
Optional: ForceSub Channel ID, leave 0 if you want disable force sub 2, bot may become a bit slower if you add this.PROTECT_CONTENT
Optional: True if you need to prevent files from forwardingUSE_SHORTLINK
Turn this feature on or off using True or FalseSHORTLINK_API_URL
Your Shortner url api.shareus.io, SHORTLINK_API_KEY
shortner api key.VERIFY_EXPIRE
verify expire time in seconds.TUT_VID
Verification tutorial video link. eg: https://t.me/How_to_Download_7x/32USE_PAYMENT
Turn this feature on or off using True of FalseUPI_ID
Enter your UPI idUPI_IMAGE_URL
Enter your UPI QRSCREENSHOT_URL
Enter your profile link for verification of the usersPRICE1
7 days pricePRICE2
1 month pricePRICE3
3 month pricePRICE4
6 month pricePRICE5
1 year priceCUSTOM_CAPTION
put your Custom caption text if you want Setup Custom Caption, you can use HTML for formatting (only for documents)DISABLE_CHANNEL_BUTTON
Put True to Disable Channel Share Button, Default if FalseBOT_STATS_TEXT
put your custom text for stats command, use HTMLUSER_REPLY_TEXT
put 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 UptimeReport Bugs, Give Feature Requests at https://github.com/Sachinanand99/File-Sharing-Telegram-bot/issues
Star this Repo if you Liked it βββ