mirror of
https://github.com/tradecatlabs/vibe-coding-cn.git
synced 2026-08-16 04:18:04 +00:00
- Reorganize from 7 flat directories to 5 aggregated directories - 00-fundamentals: core concepts, glue coding, methodology - 01-getting-started: environment setup guides - 02-methodology: tools, tutorials, development guides - 03-practice: project examples (polymarket, telegram, fate-engine, etc.) - 04-resources: templates, tools, external resources - Remove duplicate files with underscore naming - Add README.md for 00-fundamentals and 02-methodology
842 B
842 B
telegram Markdown Code Block Format Fix Log 2025-12-15
Problem
Error when sending message after chart generation:
❌ Chart generation failed: Can't parse entities: can't find end of the entity starting at byte offset 168
Cause
The Markdown code block format in the header message in bot.py is incorrect.
The original code used string concatenation, adding \n after ```, which prevented the Telegram Markdown parser from correctly recognizing the code block boundary:
# Incorrect usage
header = (
"```\n"
f"{filename}\n"
"```\n"
)
Fix
Changed to use triple-quoted strings, ensuring ``` is on its own line:
# Correct usage
header = f"""Report in attachment
{filename} {ai_filename}
"""
Modified File
services/telegram-service/src/bot.pylines 293-308