A Python-based AWS Cloud Cost Prediction Telegram Bot that stores daily cost entries locally (JSON) and predicts the next 7 days using a simple averaging model.
/start— Start the bot/help— List commands/addcost <amount>— Add daily cloud cost (₹)/predict— Predict next week's cost/reset— Clear user data- Stores data in local
data.json
- Python 3
- Telegram Bot API
- requests
- Local JSON storage (optional: extend to AWS)
- Clone repo or download files
- Create
.env(see below) pip install -r requirements.txtpython CC_bot_fixed.py
Create a file named .env next to the .py file with:
Do not push .env to GitHub. .gitignore already excludes it.
MIT (or change if you prefer)