How i7mada249/ipynb-creator-bot works
Project type and purpose
• This is a single-service Telegram Bot written in Python.
• Purpose: receive text messages, parse them into Jupyter notebook cells, generate both a .ipynb file and a PDF, then send them back to the user.
File structure
• Top level:
• bot.py – the sole entry point and main logic
• requirements.txt – lists all Python dependencies (telegram API, nbformat, nbconvert, FPDF, Pillow, arabic-reshaper, python-bidi)
• Dockerfile – containerization config
• README.md, LICENSE, .gitattributes
• No frontend, database, or multiple microservices—everything lives in one process.
Extract architectural insights from the README
• External dependency: Telegram Bot API (python-telegram-bot)
• Core functionality layers:
• Message handling & dispatch
• Text-to-cell parsing (delimiter-based)
• Notebook assembly (nbformat)
• PDF export (nbconvert / FPDF / Pillow)
• RTL language support (arabic-reshaper, python-bidi)
• Deployment: environment variable for BOT_TOKEN, optional Docker container.