How acc-tax-reighteen/bot-ar-telegram works
This is a Telegram accounts-receivable reporting bot. The principal workflow prepares AR and customer-name data from Excel, loads it into memory, authenticates a Telegram user, resolves a customer query, applies interactive product/due-date/FRAUD filters, then renders and sends a PNG report. The README documents additional capabilities such as multi-code queries, group keywords, periodic refresh, and photo-to-document fallback. Internal bot details are partly unsampled, so those links rely on README statements rather than inspected handler code.
Main entry points: 1_CopyData.py Extract workbook data · 3_ARBotTelegram.py Telegram bot runtime · Jalankan BOT.py Run workflow · config.conf Bot configuration
Components 18
Data preparation
- Run workflow
Jalankan BOT.py - Extract workbook data
Dapur/1_CopyData.py - AR data workbook
- Customer-name workbook
- ML mapping workbook
- Normalize dates
Dapur/2_AdjDateFormat.py - Bot configuration
Dapur/config.conf
Telegram reporting bot
- Telegram bot runtime
Dapur/3_ARBotTelegram.py - RAM preload and refresh
Dapur/3_ARBotTelegram.py
Query and resolution
- Customer query resolution
Dapur/3_ARBotTelegram.py - Name mapping and fuzzy match
Dapur/3_ARBotTelegram.py
Filtering and output
- Interactive filters
Dapur/3_ARBotTelegram.py - PNG report rendering
Dapur/3_ARBotTelegram.py - Photo or document delivery
Dapur/3_ARBotTelegram.py
Other components
- Telegram user
- ARVIEWER workbook
- ML training workbook
- Telegram Bot API
Connections 24
- Run workflow → Extract workbook data: runs first
README.md - Run workflow → Normalize dates: runs next
README.md - Run workflow → Telegram bot runtime: starts bot
README.md - ARVIEWER workbook → Extract workbook data: provides sheets
Dapur/1_CopyData.py - ML training workbook → Extract workbook data: provides mapping
Dapur/1_CopyData.py - Extract workbook data → AR data workbook: writes AR data
Dapur/1_CopyData.py - Extract workbook data → Customer-name workbook: writes names
Dapur/1_CopyData.py - Extract workbook data → ML mapping workbook: copies ML data
Dapur/1_CopyData.py - AR data workbook → Normalize dates: reads and updates
Dapur/2_AdjDateFormat.py - Bot configuration → Extract workbook data: sets source paths
Dapur/1_CopyData.py - Bot configuration → Telegram bot runtime: sets credentials
README.md - Telegram bot runtime → RAM preload and refresh: preloads and refreshes
README.md - AR data workbook → RAM preload and refresh: loads AR data
README.md - Customer-name workbook → Name mapping and fuzzy match: supports name lookup
README.md - ML mapping workbook → Name mapping and fuzzy match: supports ML matching
README.md - Telegram user → Telegram Bot API: sends query
README.md - Telegram Bot API → Telegram bot runtime: delivers messages
README.md - Telegram bot runtime → Telegram user: requests authentication
README.md - Telegram bot runtime → Customer query resolution: handles query
README.md - Customer query resolution → Name mapping and fuzzy match: resolves names
README.md - Customer query resolution → Interactive filters: offers filter steps
README.md - Interactive filters → PNG report rendering: selects report data
README.md - PNG report rendering → Photo or document delivery: produces PNG
README.md - Photo or document delivery → Telegram Bot API: sends report
README.md