YANGO is a Telegram bot designed to facilitate user engagement and reward distribution within the YANGO community. The bot allows users to participate in competitions, check their subscription status, and receive rewards.
- Competition Participation: Users can join competitions and receive rewards.
- Payment Status Check: Users can check the status of their payments.
- User Detail Management: Users can provide and update their email, phone number, and bank account details.
Before running the bot, ensure you have the following installed:
- Node.js
- SQLite
-
Clone the repository:
git clone https://github.com/your-username/yango-telegram-bot.git
-
Install dependencies:
cd yango-telegram-bot npm install
-
Set up environment variables:
Create a
.env
file in the root directory and add your Telegram API token:API_KEY=your-telegram-api-key
-
Start the bot:
npm start
-
Interact with the bot on Telegram:
- Use the
/start
command to initiate interaction. - Use the
/check
command to check your details in the database. - Use the
/join
command to join competitions. - Use the
/Check Payment status
command to check your payment status.
- Use the
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature-name
). - Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature/your-feature-name
). - Create a new Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.
- Thanks to Node.js for providing a powerful JavaScript runtime.
- Thanks to node-telegram-bot-api for the Telegram Bot API wrapper.
- Thanks to SQLite for providing a lightweight and efficient database solution.