- Notifications
You must be signed in to change notification settings - Fork1
Telegram advanced refer and earn Bot
License
AshokShau/Earnify
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Earnify is a Telegram bot that allows users to refer their friends and earn rewards. It's a referral and earning system where users can get rewarded by referring others to the bot.
- Referral System: Users can refer their friends using a unique referral code and earn rewards.
- Balance Management: Users can check their balance, earn tokens, and redeem rewards.
- Admin Panel: Admins can manage balances, stats, and broadcast messages.
- User Information: Users can view their account details, including referred users and account balance.
- Wallet System: Users can withdraw their rewards through the wallet system.
- Account Number Management: Users can set or update their account number.
- Statistics: Admins can view bot statistics.
- Broadcast Messages: Admins can broadcast messages to all users.
- Force Subscription: Users can be forced to subscribe to the bot's channel.
/start
- Start the bot and get your referral link./help
- Show a list of available commands./info
- Show your user info, including balance and referred users./wallet
- Check your current balance and access withdrawal options./accno <account_number>
- Set or update a user's account number.
/add <user_id> <amount>
- Add balance to a user's account./remove <user_id> <amount>
- Remove balance from a user's account./stats
- View bot statistics like total users, total rewards, etc./broadcast
- Send a message to all users.
- Go (version letest one)
- MongoDB for storing user data and balance.
- Telegram Bot Token: You need to create a bot on Telegram and get a bot token fromBotFather.
- Clone the repository:
git clone https://github.com/AshokShau/earnify.git && cd earnify
- Set up the environment:
cp sample.env .env
- Build the Docker image:
docker build -t earnify .
- Run the Docker container:
docker run -p 8080:8080 -d earnify
- Clone the repository:
git clone https://github.com/AshokShau/earnify.git && cd earnify
- Set up the environment:
cp sample.env .env
- Build the project:
go build
- Run the bot:
./earnify
- MongoDB: The bot uses MongoDB to store user data, including their balance, referral links, and referred users. Make sure your MongoDB instance is running.
- Bot Token: You need to create a bot on Telegram through BotFather and provide the bot token in your environment variables.
- Owner ID: Set your Telegram user ID as the owner in the environment variables for administrative commands.
- Logger ID: Set your Telegram user ID as the logger in the environment variables for logging messages.
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature
). - Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature/your-feature
). - Open a pull request.
This project is licensed under the MIT License - see theLICENSE file for details.
This repository,Earnify, was born out of pure boredom and a sprinkle of curiosity. While it serves its purpose as a functional bot to manage earnings and more, future updates are highly dependent on my mood. 😴
That means updates might roll out when inspiration strikes—or maybe not at all. It’s a bit like a gamble, but hey, isn’t life the same? 🎲
Feel free to fork, contribute, or just enjoy it as-is. Happy earning! 💸
About
Telegram advanced refer and earn Bot
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.