A totally useless Telegram bot that calculates discounts.
Enter the price and the discount percent — get a nice receipt with the final price.
Built as a training project on Python using PyTelegramBotAPI.
- Input price (e.g.
1999.90) - Input discount (e.g.
15) - Get a receipt with:
- Original price
- Discount %
- Final price
- Python 3
- PyTelegramBotAPI
- dotenv (for secret BOT_TOKEN)
Clone the repo:
git clone https://github.com/Cabin303/Discount_Calculator.gitInstall dependencies:
pip install -r requirements.txtCreate .env:
BOT_TOKEN=your_token_from_BotFather
Run bot:
python Discount_calc.pyThis bot is not meant to be useful. It’s just a playground for learning Python & Telegram bots 🤷♂️.