Orange Money Botswana loan application with Telegram bot integration — advanced client-side demo
# botswana-loan-app-advanced
This repository contains a front-end demo (index.html) for an Orange Money Botswana loan application with Telegram bot integration. The repository also includes a minimal Node/Express backend (server.js) you can run to avoid putting the bot token in the browser.
Files added:
- index.html — client-side loan application and Telegram integration (demo-ready, replace placeholders).
- server.js — small Express proxy to forward Telegram API calls (uses BOT_TOKEN from environment).
- package.json — dependencies and start script.
- .gitignore
Quick start (development):
1. Clone the repo and install dependencies:
npm install
2. Create a .env file with your bot token:
BOT_TOKEN=123456:ABC-DEF
3. Start the server:
npm start
4. Open index.html in your browser (or serve it from a static host). To route client calls via the Node backend set USE_BACKEND = true in index.html (near the top of the script).
Security notes:
- Do NOT commit BOT_TOKEN to a public repository. Use the server to keep the token secret and use webhooks for real-time replies in production.