A Comprehensive Guide to Integrating and Sending with the Chimoney WhatsApp Bot
Introduction
The Chimoney WhatsApp Bot allows you to send and receive Chimoney right within your WhatsApp chats, making your financial transactions smoother than ever. In this detailed tutorial, we'll walk you through the installation process, setup, and usage of the Chimoney WhatsApp Bot. Dive in!
Environment Variables
Before we dive into the installation process, let's ensure you have the required environment variables set up in your .env file. These variables are crucial for the proper functioning of the Chimoney WhatsApp Bot. Here's what you'll need:
PORT: Port on which the bot's HTTP server will run.
BOT_URL: Your WhatsApp bot's URL.
API_KEY: Your API key for Chimoney integration.
REDIRECT_URL: Redirect URL for Chimoney transactions.
CHIMONEY_BASE_URL: Base URL for Chimoney operations.
CHIMONEY_BASE_HOST: Chimoney base host URL.
DEFAULT_EMAIL: Default email to receive transactions updates (since WhatsApp doesn't have emails).
Installation
Now, let's get started with the installation process. Follow these steps to set up the Chimoney WhatsApp Bot:
Clone the repository to your local machine:
bashCopy codegit clone https://github.com/amosayomide05/chimoney-community-projects.git
Navigate to the WhatsApp Bot project directory:
bashCopy codecd chimoney-community-projects && cd whatsapp-bot-node
Install the required dependencies:
bashCopy codenpm install
Edit the .env file and add the necessary environment variables. Replace placeholders with your actual credentials.
Start the WhatsApp Bot:
bashCopy codenode start
Your Chimoney WhatsApp Bot is now up and running.
Usage
The Chimoney WhatsApp Bot simplifies financial transactions within WhatsApp, making it a breeze to send and receive Chimoney.
Sending Chimoney
In a group chat, use the following command to send Chimoney to a user:
textCopy code/chimoney_pay @username amount
Replace
@username
with the recipient's Telegram username.Replace
amount
with the desired amount of Chimoney.
Receiving Chimoney
When you receive Chimoney, the bot will automatically send the recipient a message with a link to claim the Chimoney.
With the Chimoney WhatsApp Bot, you have the power to manage financial transactions seamlessly within your WhatsApp chats. Say goodbye to the complexities of traditional financial interactions and hello to a smoother way of handling Chimoney within WhatsApp. Get started today and enhance your WhatsApp experience with the Chimoney WhatsApp Bot!