How narges-soveyzi/pharmacy works
This is a Telegram pharmacy-shopping bot. Users browse products or look them up by code, add items to an in-memory cart, and receive payment instructions; receipt text and support, consultation, or prescription messages are forwarded to an administrator. The sampled implementation is largely one callback/message handler module, so the workflow stages below are responsibilities within that module, not separate services. Evidence is limited to the excerpts from main-pharmacy_py.py; the README is empty.
Main entry points: main-pharmacy_py.py Bot handlers
Components 14
Product shopping
- Product catalog
main-pharmacy_py.py - Category browsing
main-pharmacy_py.py - Code lookup
main-pharmacy_py.py
Cart and payment
- Cart management
main-pharmacy_py.py - Payment instructions
main-pharmacy_py.py - Receipt intake
main-pharmacy_py.py
User communications
- Support requests
main-pharmacy_py.py - Consultation requests
main-pharmacy_py.py - Prescription intake
main-pharmacy_py.py
Other components
- Telegram customer
- Telegram platform
- Pharmacy administrator
- Bot handlers
main-pharmacy_py.py - User state
main-pharmacy_py.py
Connections 19
- Telegram customer → Telegram platform: sends updates
- Telegram platform → Bot handlers: dispatches updates
main-pharmacy_py.py - Bot handlers → Category browsing: routes callbacks
main-pharmacy_py.py - Category browsing → Product catalog: reads products
main-pharmacy_py.py - Bot handlers → Code lookup: routes messages
main-pharmacy_py.py - Code lookup → Product catalog: reads product code
main-pharmacy_py.py - Bot handlers → Cart management: updates and reads
main-pharmacy_py.py - Bot handlers → Payment instructions: routes payment
main-pharmacy_py.py - Payment instructions → Cart management: reads totals
main-pharmacy_py.py - Bot handlers → Receipt intake: routes receipt text
main-pharmacy_py.py - Bot handlers → Support requests: routes support text
main-pharmacy_py.py - Bot handlers → Consultation requests: routes consultation text
main-pharmacy_py.py - Bot handlers → Prescription intake: routes prescription text
main-pharmacy_py.py - Bot handlers → User state: reads and writes
main-pharmacy_py.py - Bot handlers → Telegram platform: sends replies
main-pharmacy_py.py - Receipt intake → Pharmacy administrator: sends receipt details
main-pharmacy_py.py - Support requests → Pharmacy administrator: forwards message
main-pharmacy_py.py - Consultation requests → Pharmacy administrator: forwards question
main-pharmacy_py.py - Prescription intake → Pharmacy administrator: forwards details
main-pharmacy_py.py