A simple Telegram bot that helps manage inventory using Microsoft Excel. This bot allows users to add, update, remove, and view inventory items through Telegram commands.
- Add items to inventory
- Update items (modify name, quantity, etc.)
- Remove items from inventory
- View all items in a report format
- Fetch details of a specific item
- Record stock usage
- Add stock quantity
- Generate various reports (stock summary, low stock, category-based, location-based, total inventory value, and transaction history)
- Excel Integration for easy data management
/add– Add item/update– Update item/remove <ID>– Remove item/check <ID>– View item/report– View inventory/usestock– Record stock usage/stockadd– Add stock quantity/offlineadd <ID> <Name> <Category> "<Location>" <Quantity> <Price> "<Description>"– Add an item offline/reportstock– Stock Summary/reportlowstock– Low Stock Items/reportcategory– Items by Category/reportlocation– Items by Location/reportvalue– Total Inventory Value/historyreport– View stock transaction history
- A secure Gmail account as the admin
- Basic knowledge of Google Spreadsheet
- Clone this repository:
git clone https://github.com/yourusername/telegram_bot_inventory.git cd telegram_bot_inventory - follow the step
- Open Telegram and search for
@BotFather. - Start a chat with BotFather and type:
/newbot - Follow the instructions to set a name and username for your bot.
- After completion, BotFather will provide a bot token. Save this token securely.
- Use this token in your Python script to authenticate your bot.
Before deploying the script in Google Apps Script, make sure to update these three parts:
- Replace the bot token:
token = "TELEGRAM_TOKEN";
- Replace the Web App URL:
var webappurl = "YOUR_WEB_APP_URL";
- Replace the Spreadsheet ID:
- Find all occurrences of
EXCELIDFROMSPREADSHEETand replace them with the new spreadsheet ID.
- Find all occurrences of
- Follow Example of excel to build your spreadsheet.
-At the USER Sheet you need to put ur telegram username in.
✅USERNAME ❌@USERNAME
This project is open source but requires permission before being posted or redistributed.