Send eBooks from Telegram directly to your Kindle via your kindle email. Supports PDF, EPUB, and MOBI files.
- Set your Kindle email address with the bot
- Add the bot's email address to your Kindle's approved email list
- Send or forward ebook file to the bot
- The bot automatically emails the book to your Kindle
/start
: Get started and see basic instructions/help
: View all available commands/set_kindle_email
: Configure your Kindle email address
- Only Kindle email addresses (ending with @kindle.com) are accepted
- Maximum file size is strictly enforced at 20MB
- Telegram account and bot token from BotFather
- SMTP credentials from AWS SES
-
Clone the repository
git clone https://github.com/yinkakun/book-to-kindle-bot.git cd book-to-kindle-bot
-
Install dependencies
go mod tidy
-
Create a
.env
file with required variablesDB_PATH=bot.db BOT_EMAIL=[email protected] # Email used to send books TELEGRAM_BOT_TOKEN=your_telegram_bot_token AWS_SES_SMTP_USERNAME=your_ses_username AWS_SES_SMTP_PASSWORD=your_ses_password
-
Run the application
go run main.go
This project is not affiliated with Amazon, Kindle, or Telegram. Use responsibly and respect copyright laws.