Skip to content

Add mistletoe as explicit dependency#10

Open
JanusMarko wants to merge 7 commits intomainfrom
claude/telegram-markdown-upload-NH4CJ
Open

Add mistletoe as explicit dependency#10
JanusMarko wants to merge 7 commits intomainfrom
claude/telegram-markdown-upload-NH4CJ

Conversation

@JanusMarko
Copy link
Copy Markdown
Owner

Fixes ModuleNotFoundError: No module named 'mistletoe' on fresh install. The module is imported directly in markdown_v2.py but was only pulled in as a transitive dep of telegramify-markdown.

https://claude.ai/code/session_01Db4zZKSaAkJrgHGzeLjRsz

claude added 7 commits March 27, 2026 00:20
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants