Add Telegram invoice scanning#27
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original request
mainand apply it through the PR workflow.What changed
transactionScansjob flow;/addand scan review:No vendor;@xpenser/timezoneto the Telegram bot workspace dependency for user-timezone date edits.Reasoning
The API and web app already expose invoice/receipt scanning through the shared
transactionScanscontract, so the Telegram bot reuses that existing typed client path instead of adding new API endpoints or persistence. The scanner still creates drafts only; Telegram now mirrors the web review requirement by letting users inspect and correct each draft before a transaction is created. Vendor support is limited to selecting existing vendors because the requested scope explicitly excluded creating new vendors from Telegram.Screenshots / preview evidence
Screenshots are not applicable for this change because it is a Telegram bot chat workflow, not a browser-rendered UI. The deterministic preview URL is https://xpenser-pr-027.cleverbrush.com, and the PR environment deployed successfully. Browser Playwright e2e passed in CI; direct Telegram preview QA was skipped because this environment cannot safely drive an external Telegram chat against the PR bot service.
Validation
Local validation from
/root/projects/xpenser/feat/telegram-invoice-scanning:npm run lint✅npm run typecheck✅npm test✅npm run typecheck -w @xpenser/telegram-bot✅./node_modules/.bin/vitest --run apps/telegram-bot/src✅./node_modules/.bin/biome check apps/telegram-bot/src apps/telegram-bot/package.json package-lock.json✅npm run build -w @xpenser/telegram-bot✅GitHub checks:
Lint and test✅Deploy PR environment✅Playwright e2e✅SigNoz:
severity_text IN ('ERROR', 'FATAL')over the deployment window: no rows returned. ✅service.name = 'xpenser-telegram-bot-pr-27': no rows/service telemetry returned in the checked window. This means there were no visible bot errors, but the PR telegram-bot service did not emit log telemetry for direct verification. SigNoz MCP cannot generate a reliable frontend link.