Open amosayomide05 opened 7 months ago
@uchibeke @phyleria
What’s the chimoney base url Vs base host? What’s the GitHub bot url?
What’s the chimoney base url Vs base host? What’s the GitHub bot url?
The chimoney base url is https://api.chimoney.io/v0.2/payouts/initiate-chimoney
or sandbox
Base host is api.chimoney.io
Pull Request (PR) Note
In the PR update, the bot now allows user to send chimoney to more than one users (no limit to the number of users that can be tagged).
Before user can only send the one tagged user
/chimoney_pay @user1 27
Now user can send to more than one and it'll be accepted
/chimoney_pay @user1 @user2 @user3 74
Requirements to deploy
Steps to depoly
cd \submissions\teleram-bot-node
npm install
Create a .env file in the project directory and set the following environment variables:
PORT
: Port on which the bot's HTTP server will run.BOT_URL
: Your telegram 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.Start the Chimoney Telegram Bot:
npm start