add telegram notification configuration guide documents.#10
Merged
brokermr810 merged 1 commit intoJan 12, 2026
Merged
Conversation
woohaha
pushed a commit
to woohaha/QuantDinger
that referenced
this pull request
May 16, 2026
Fixes review issue OpenByteInc#10 — /list previously showed `—` for every code because cmd_watch always passed name=None and watchlist_add was INSERT OR IGNORE. Three coordinated changes: 1. QuantDingerClient.get_symbol_name() hits the public GET /api/market/symbols/search endpoint (unauthed; seed DB lookup), returns the first result's name or None on any error / no match / symbol-echo. Best-effort, never raises. 2. Storage.watchlist_add now uses UPSERT with COALESCE(old, new) so: - existing name is never overwritten (preserves prior intent) - existing NULL name CAN be backfilled by a later add with a real name (matches the lazy-fill use case) added_by / added_at stay from the original insert. 3. cmd_watch awaits get_symbol_name before storing; passes the result through. Reply now echoes the name when available (e.g. "✅ 已加入 watchlist: 600519 貴州茅台"). Pre-existing watchlist rows with NULL name will stay NULL until re-watched; users wanting to backfill can /unwatch + /watch the code. Tests: +5 (1 storage backfill, 4 get_symbol_name covering happy / no-match / symbol-echo / HTTP 500). Full suite 61/61. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
add the documents for signal to telegram notification configuration guide documents.