This Telegram bot, designed to run on Render, allows users to send referral links to their friends and track their success in bringing new members to your Telegram group. The bot also features a ranking system to showcase top referrers.
- Generate unique referral links for users
- Track successful referrals
- Display a leaderboard of top referrers
- Easy deployment on Render
-
Clone this repository:
git clone https://github.com/Ekans111/Simp-Referral-Bot.git
cd Simp-Referral-Bot
-
Install the required dependencies:
npm install
- Create a
.env
file in the project root and add the following .env.example file. - Replace the placeholders with your actual values:
your_telegram_bot_token
: Obtain this from @BotFather on Telegramyour_telegram_group_link
: The Link of the group you want users to joinyour_database_url
: Your MongoDB database URL
To start the bot locally:
run npm start
This bot is designed to be deployed on Render. Follow these steps:
- Create a new Web Service on Render
- Connect your GitHub repository
- Set the environment variables in the Render dashboard
- Deploy the bot
/start
: Access the help menu/myreferral
:Generate your unique referral link/leaderboard
: View the top members who have invited friends to become group user
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.