Open
Conversation
Save uploaded text-based files (Markdown, code, config, etc.) to
{session_cwd}/docs/inbox/ and forward the file path to Claude Code.
Follows the same pattern as the existing photo_handler.
https://claude.ai/code/session_01Db4zZKSaAkJrgHGzeLjRsz
- PDFs: saved directly to docs/inbox/ (Claude Code reads them natively) - Word docs (.docx/.doc): converted to Markdown via python-docx, saved as .md - Added python-docx dependency - Updated MIME type and extension allowlists https://claude.ai/code/session_01Db4zZKSaAkJrgHGzeLjRsz
Claude Code needs to know the file exists before processing the user's instruction. Reorder so the file path/read hint comes first, followed by the user's caption text. https://claude.ai/code/session_01Db4zZKSaAkJrgHGzeLjRsz
Prefixes human-readable assistant messages with 💬 so they're visually distinct from tool_use/tool_result messages in Telegram. https://claude.ai/code/session_01Db4zZKSaAkJrgHGzeLjRsz
- 🟦 User messages - 🟩 Assistant text - 🟧 Tool use / tool result - 🟪 Thinking https://claude.ai/code/session_01Db4zZKSaAkJrgHGzeLjRsz
- 💎 User messages - 🔮 Assistant text - 🛠️ Tool use / tool result - 🧠 Thinking https://claude.ai/code/session_01Db4zZKSaAkJrgHGzeLjRsz
mistletoe is imported directly in markdown_v2.py but was only available as a transitive dependency of telegramify-markdown, which isn't guaranteed. Add it explicitly to fix ModuleNotFoundError on install. https://claude.ai/code/session_01Db4zZKSaAkJrgHGzeLjRsz
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.
Fixes
ModuleNotFoundError: No module named 'mistletoe'on fresh install. The module is imported directly inmarkdown_v2.pybut was only pulled in as a transitive dep oftelegramify-markdown.https://claude.ai/code/session_01Db4zZKSaAkJrgHGzeLjRsz