This repository now contains a starter Telegram bot that can:
- Start a chat flow (
/start) - Create an account via external API (
/create_account) - Show balance (
/balance)
It is designed for the API flow you described (create account + balance section), but keeps API details configurable so we can safely adapt to the real provider docs.
Please provide these items so I can finish production-ready integration:
- Telegram bot token from @BotFather
- Final API documentation link (the exact one to implement)
- Authentication method for API calls
- API key header name/value? Basic auth? Bearer token?
- Exact endpoints + request/response samples for:
- Create account
- Get balance
- Required account fields
- e.g. username, email, phone, password rules, currency
- Balance behavior
- Which balance fields should the bot show? available/current/pending?
- Security preference
- Should we store user-account mapping in memory only or database?
- Deployment target
- VPS, Docker, Railway, Render, etc.
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
# edit .env
python -m bot.mainSee .env.example.
- This starter uses long polling for simplicity.
- Credentials must be kept in
.envand never hardcoded. - Once you provide final API specs, I can wire all fields exactly and add validation/error handling for your provider.