Skip to content

Cabin303/Discount_Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧾 Discount Calculator Bot

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. Python Telegram Deploy

A totally useless Telegram bot that calculates discounts.

✨ Features

  • Input price (e.g. 1999.90)
  • Input discount (e.g. 15)
  • Get a receipt with:
    • Original price
    • Discount %
    • Final price

🚀 Tech stack

  • Python 3
  • PyTelegramBotAPI
  • dotenv (for secret BOT_TOKEN)

⚡️ Usage

Clone the repo:

git clone https://github.com/Cabin303/Discount_Calculator.git

Install dependencies:

pip install -r requirements.txt

Create .env:

BOT_TOKEN=your_token_from_BotFather

Run bot:

python Discount_calc.py

📌 Notes

This bot is not meant to be useful. It’s just a playground for learning Python & Telegram bots 🤷‍♂️.

About

Telegram bot for calculating discounts. Takes price and percent, returns a nice receipt 🧾. Just a useless training project on Python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors