To build the Docker container, execute the following command:
docker build -t sendtokindle .Before starting the bot, you need to configure the following environment variables:
| Variable | Description |
|---|---|
| UBOT_TELEGRAM_TOKEN | Telegram bot token |
| UBOT_EMAIL_FROM | Email address that the bot will use to send books |
| UBOT_PASSWORD | Email password |
| UBOT_EMAIL_TO | Kindle email address to which books will be sent |
| UBOT_SMTP_HOST | SMTP mail host |
After starting the bot and configuring the necessary environment variables, you can use it by sending a message to the bot containing the document you want to convert. The bot will then send the converted document to your Kindle email address.
For more information, you can check out the following links:
- Dev.to post
- If you have any questions or suggestions, feel free to message Michael at michael@fomenko.dev.