Skip to content

This is a Telegram Referral bot that works on Render running with webhook and polling method that users can send referral to their friends and get them to join your telegram group and shows ranking of referrals.

Notifications You must be signed in to change notification settings

Ekans111/Simp-Referral-Bot

Repository files navigation

Simp Referral Bot

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.

Features

  • Generate unique referral links for users
  • Track successful referrals
  • Display a leaderboard of top referrers
  • Easy deployment on Render

Installation

  1. Clone this repository:

    git clone https://github.com/Ekans111/Simp-Referral-Bot.git
    cd Simp-Referral-Bot

  2. Install the required dependencies:
    npm install

Configuration

  1. Create a .env file in the project root and add the following .env.example file.
  2. Replace the placeholders with your actual values:
    • your_telegram_bot_token: Obtain this from @BotFather on Telegram
    • your_telegram_group_link: The Link of the group you want users to join
    • your_database_url: Your MongoDB database URL

Usage

To start the bot locally:
run npm start

Deployment

This bot is designed to be deployed on Render. Follow these steps:

  1. Create a new Web Service on Render
  2. Connect your GitHub repository
  3. Set the environment variables in the Render dashboard
  4. Deploy the bot

Commands

  • /start: Access the help menu
  • /myreferral:Generate your unique referral link
  • /leaderboard: View the top members who have invited friends to become group user

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

ekans111

Live Bot

@SimpReferralBot

About

This is a Telegram Referral bot that works on Render running with webhook and polling method that users can send referral to their friends and get them to join your telegram group and shows ranking of referrals.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published