CMakey / ebook-sender-bot

Send ebook to kindle with Telegram Bot

Home Page:https://t.me/e_book_send_bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

English | 简体中文

ebook-sender-bot

Send E-Book to kindle with Telegram Bot.

Try it: https://t.me/e_book_send_bot

Usage

  1. Open bot link:https://t.me/e_book_send_bot
  2. Send /email your-kindle-email@kindle.com to set your kindle email address.
  3. Add bot email to your Approved Personal Document E-mail.
  4. Send a supported document to this bot and check your kindle.

Support document format

send directly

  • doc
  • docx
  • rtf
  • html
  • htm
  • txt
  • zip
  • mobi
  • pdf

convert to mobi and send

  • azw
  • azw1
  • azw3
  • azw4
  • fb2
  • epub
  • lrf
  • kfx
  • pdb
  • lit

Setup

  1. copy config.ini.example to config.ini
  2. install requirements
pip install -r requirments.txt
  1. install calibre
  2. run main.py
python main.py

config.ini

[default]
# mode: [dev] printf runtime log to console 
mode = dev
# Set a daily limit of e-mailing per user
email_send_limit = 10
# for example:
#     SQLite[recommended]: sqlite:///database.db
#     Mysql[recommended]: mysql+pool://username:passwordroot@127.0.0.1:3306/ebook_sender_bot?max_connections=20&stale_timeout=300
#     Mysql: connection pool: mysql://username:password@127.0.0.1:3306/ebook_sender_bot
database = mysql+pool://root:root@127.0.0.1:3306/ebook_sender_bot?max_connections=20&stale_timeout=300

[smtp]
host=smtp.gmail.com
port=465
username=your_email_address
password=your_email_account_password

[telegram]
# telegram tg_bot token
bot_token=your_telegram_bot_token
# your telegram chat id
developer_chat_id=your_telegram_chat_id

Preview

telegram-bot kindle

Todo

  • Send document to kindle email
  • mysql
  • document information
  • covert books with calibre
  • use configParse instead of os.getenv()
  • i18n
  • telegram MessageReply class
  • unique email
  • admin command
  • queue
  • test case

About

Send ebook to kindle with Telegram Bot

https://t.me/e_book_send_bot

License:GNU General Public License v3.0


Languages

Language:Python 100.0%