A powerful and dynamic Telegram bot designed to share links from specific channels, protecting them from copyright issues. It features a fully interactive, button-based UI and can be configured dynamically by the owner.
- Advanced Link Sharing: Securely share links from your channels.
- FORCE SUBSCRIBE: Ensure users join designated channels before they can access links.
- Button-Based UI: Modern, easy-to-use interface with inline buttons instead of text commands.
- Dynamic Content: Rich messages with images and styled text using blockquotes.
- In-Bot Configuration: The bot owner can manage all important settings directly from the bot's UI.
- Secure: No hardcoded credentials. All sensitive information is loaded from environment variables.
/start - Sᴛᴀʀᴛ ᴛʜᴇ ʙᴏᴛ
/settings - Tᴏ ᴄʜᴀɴɢᴇ ᴛʜᴇ ʙᴏᴛ sᴇᴛᴛɪɴɢs ᴅʏɴᴀᴍɪᴄᴀʟʟʏ (ᴀᴅᴍɪɴ)
/genlink - Tᴏ ᴄʀᴇᴀᴛᴇ ʟɪɴᴋs sɪɴɢʟᴇ (ᴀᴅᴍɪɴ)
/batch - Tᴏ ᴄʀᴇᴀᴛᴇ ʟɪɴᴋs ɪɴ ᴀ ʙᴀᴛᴄʜ (ᴀᴅᴍɪɴ)
/broadcast - Tᴏ ʙʀᴏᴀᴅᴄᴀsᴛ Yᴏᴜʀ ᴍᴇssᴀɢᴇ (ᴀᴅᴍɪɴ)
You can easily deploy this bot yourself. Follow the steps below.
- A Telegram Bot Token. Get one from @BotFather.
- Your Telegram API ID and API Hash. Get them from my.telegram.org.
- A MongoDB database URL. Get one for free from MongoDB Atlas.
-
Clone the repository:
git clone https://github.com/abhinai2244/LINK-SHAREBOT.git cd LINK-SHAREBOT -
Install dependencies:
pip install -r requirements.txt
-
Set up Environment Variables: Create a
.envfile in the root directory or set the following environment variables in your deployment environment:Variable Description TG_BOT_TOKENYour Telegram bot token from @BotFather. API_IDYour Telegram App ID. API_HASHYour Telegram App Hash. DB_URIYour MongoDB connection URL. OWNER_IDYour numerical Telegram User ID. DATABASE_CHANNELThe ID of the channel where the bot will send logs/notifications. Optional Variables: You can customize the bot further with these optional variables:
DB_NAME,START_PIC,FSUB_PIC,HELP_PIC, etc. -
Run the bot:
python3 bot.py
This bot was made possible with the help and support of the following individuals:
-
Base Repo:- CodeFlix
