Telegram bot assistant to help you prepare ePubs. Uses ChatGPT-4o to write contextual notes.
- Upload any
.epubfile via Telegram - Select specific chapters or study the entire book
- Customize up to 10 study questions (or use smart defaults)
- Get three output formats:
- Annotated ePub with study notes injected into each chapter
- Word document (.docx) with all notes organized by chapter
- PDF with the same content
- Multi-language support (English, Spanish, Italian, French, German, Portuguese, Bulgarian)
- User access control via whitelist
- Rate limiting to manage API costs
- Admin notification and broadcast system
docker run --name askepub \
-e TOKEN=your-telegram-bot-token \
-e OPENAI_API_KEY=your-openai-key \
-e ADMIN_ID=your-telegram-user-id \
-e USER_IDS=id1,id2,id3 \
-v askepub-dbs:/app/dbs \
-v askepub-backups:/app/userBackups \
drumsergio/askepub:2.0.0docker compose up -dSee docker-compose.yml for the full configuration.
| Variable | Required | Description |
|---|---|---|
TOKEN |
Yes | Telegram bot token from @BotFather |
OPENAI_API_KEY |
Yes | OpenAI API key |
ADMIN_ID |
Yes | Telegram user ID of the bot admin |
TOKEN_NOTIFY |
No | Secondary bot token for admin notifications |
USER_IDS |
No | Comma-separated Telegram user IDs allowed to use the bot |
- Start a chat with your bot on Telegram
- Send
/start - Select your language
- Upload an
.epubfile - Choose which chapters to study
- Customize your study questions (or use defaults)
- Wait for the AI to generate notes
- Download your annotated ePub, DOCX, and PDF
/start- Start the bot and begin a study session/change_language- Change your interface language/cancel- Cancel the current operation
Feel free to dive in! Open an issue or submit PRs.
AskePub follows the Contributor Covenant Code of Conduct.
