{"id":24108226,"url":"https://github.com/ashokshau/earnify","last_synced_at":"2026-05-08T16:55:17.852Z","repository":{"id":271443516,"uuid":"913321262","full_name":"AshokShau/Earnify","owner":"AshokShau","description":"Telegram advanced refer and earn Bot ","archived":false,"fork":false,"pushed_at":"2025-01-07T18:57:26.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-19T12:07:24.649Z","etag":null,"topics":["go","gotgbot","mongodb","telegram","telegram-bot","tgbot"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AshokShau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-07T13:09:53.000Z","updated_at":"2025-01-28T11:59:44.000Z","dependencies_parsed_at":"2025-01-07T20:02:19.224Z","dependency_job_id":"db259bef-8ce5-4dc5-b427-f6ddce694fc8","html_url":"https://github.com/AshokShau/Earnify","commit_stats":null,"previous_names":["ashokshau/earnify"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshokShau%2FEarnify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshokShau%2FEarnify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshokShau%2FEarnify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshokShau%2FEarnify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AshokShau","download_url":"https://codeload.github.com/AshokShau/Earnify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241090611,"owners_count":19907984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","gotgbot","mongodb","telegram","telegram-bot","tgbot"],"created_at":"2025-01-10T23:26:31.055Z","updated_at":"2026-05-08T16:55:16.920Z","avatar_url":"https://github.com/AshokShau.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Earnify - Telegram Refer \u0026 Earn Bot\n\n**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.\n\n---\n\n## Features\n\n- **Referral System**: Users can refer their friends using a unique referral code and earn rewards.\n- **Balance Management**: Users can check their balance, earn tokens, and redeem rewards.\n- **Admin Panel**: Admins can manage balances, stats, and broadcast messages.\n- **User Information**: Users can view their account details, including referred users and account balance.\n- **Wallet System**: Users can withdraw their rewards through the wallet system.\n- **Account Number Management**: Users can set or update their account number.\n- **Statistics**: Admins can view bot statistics.\n- **Broadcast Messages**: Admins can broadcast messages to all users.\n- **Force Subscription**: Users can be forced to subscribe to the bot's channel.\n---\n\n## Commands\n\n### For Users:\n\n- `/start` - Start the bot and get your referral link.\n- `/help` - Show a list of available commands.\n- `/info` - Show your user info, including balance and referred users.\n- `/wallet` - Check your current balance and access withdrawal options.\n- `/accno \u003caccount_number\u003e` - Set or update a user's account number.\n\n### For Admins (Owner Only):\n\n- `/add \u003cuser_id\u003e \u003camount\u003e` - Add balance to a user's account.\n- `/remove \u003cuser_id\u003e \u003camount\u003e` - Remove balance from a user's account.\n- `/stats` - View bot statistics like total users, total rewards, etc.\n- `/broadcast` - Send a message to all users.\n\n---\n\n## Bot Setup\n\n### Prerequisites:\n- **Go** (version letest one)\n- **MongoDB** for storing user data and balance.\n- **Telegram Bot Token**: You need to create a bot on Telegram and get a bot token from [BotFather](https://core.telegram.org/bots#botfather).\n\n### Installation:\n\n#### Docker installation: (Recommended)\n\n1. Clone the repository: `git clone https://github.com/AshokShau/earnify.git \u0026\u0026 cd earnify`\n2. Set up the environment: `cp sample.env .env`\n3. Build the Docker image: `docker build -t earnify .`\n4. Run the Docker container: `docker run -p 8080:8080 -d earnify`\n\n---\n\n#### Manual installation:\n\n1. Clone the repository: `git clone https://github.com/AshokShau/earnify.git \u0026\u0026 cd earnify`\n2. Set up the environment: `cp sample.env .env`\n3. Build the project: `go build`\n4. Run the bot: `./earnify`\n\n---\n\n## Configuration\n\n- **MongoDB**: The bot uses MongoDB to store user data, including their balance, referral links, and referred users. Make sure your MongoDB instance is running.\n- **Bot Token**: You need to create a bot on Telegram through BotFather and provide the bot token in your environment variables.\n- **Owner ID**: Set your Telegram user ID as the owner in the environment variables for administrative commands.\n- **Logger ID**: Set your Telegram user ID as the logger in the environment variables for logging messages.\n\n---\n\n## Contributing\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature/your-feature`).\n3. Commit your changes (`git commit -am 'Add new feature'`).\n4. Push to the branch (`git push origin feature/your-feature`).\n5. Open a pull request.\n\n---\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n\n## Contact\n\n- [GitHub](https://github.com/AshokShau/earnify)\n- [Telegram](https://t.me/AshokShau)\n\n---\n\n## 📝 Note\n\nThis 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. 😴 \n\nThat 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? 🎲\n\nFeel free to fork, contribute, or just enjoy it as-is. Happy earning! 💸\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashokshau%2Fearnify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashokshau%2Fearnify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashokshau%2Fearnify/lists"}