GithubHelp home page GithubHelp logo

gabrielrf / send2kindlebot Goto Github PK

View Code? Open in Web Editor NEW
164.0 2.0 59.0 417 KB

Send to Kindle Telegram Bot

Home Page: http://t.me/Send2KindleBot

License: GNU General Public License v3.0

Python 88.82% Perl 9.93% Makefile 1.25%
telegram telegram-bot postfix python3 sqllite sqlite3 hacktoberfest

send2kindlebot's Introduction

Send2KindleBot Logo

Donate Deploy

About

This is a Telegram Bot that sends documents to Kindle devices. It runs on Python 3 and uses Postfix and SQLite3.

Try it!

Usage

In order to work, users must register on the bot two e-mails, Amazon's Account e-mail and Kindle's e-mail.

If you need help with your Kindle's e-mail, please, refer to: https://www.amazon.com/gp/sendtokindle/email

Setup

First of all, install Postfix on your computer/server. Make sure port 25 is opened so the bot can send e-mails.

# apt-get install postfix

After initial setup, copy both files from the folder postfix to /etc/postfix.

# mv postfix/* /etc/postfix
This configuration will allow e-mails to be sent only from localhost. This is important to avoid spamming from your server.

Make sure to restart postfix and check if its running

# service postfix restart
# service postfix status

Clone/Download this repository. Install requirements.

# pip3 install -r requirements.txt

Use Pipenv. Install requirements.

# pip3 install pipenv
# pipenv install -r requirements.txt

Make sure kindle.conf is properly configured.

cp kindle.conf_sample kindle.conf

TOKEN = Bot's token given by the BotFather.

logfile = Log file with 24 hour rotation.

data_base = Database location.

table = Table's name.

Run it

python3 pdftokindlebot.py

Contribute

To contribute install the development dependencies.

# pip3 install -r requirements.txt

Or use Pipenv to install.

# pip3 install pipenv
# pipenv install -r requirements.txt

Before sending your pull request, make sure you ran the linter.

# make lint

And the auto format.

# make format

Thanks

Bot icon made by Ariyasu. Thank you!

Contact: Discord ariyasu#9690

send2kindlebot's People

Contributors

architrixs avatar bocha13 avatar bureken avatar cipi1965 avatar cozyplanes avatar danielpclin avatar deadem avatar dedifferentiator avatar dependabot[bot] avatar flyingtwigs avatar gabrielrf avatar ghostpirate avatar giovannipessiva avatar hg98-park avatar humrochagf avatar igorrozani avatar jankowiakmaria avatar jciechowski avatar joes-madness avatar nclsppr avatar nefixestrada avatar nulf avatar pqeel avatar rougeth avatar rvben avatar schmelto avatar sleeping-barber avatar tducasse avatar tomg777 avatar waterloo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

send2kindlebot's Issues

Keep file name

Keep file name when a pdf is send to the bot.
The name is present in message.document.file_name

Once the file is uploaded to Telegram Servers the name is lost.

The way the bot is working now is

Bot status?

Thanks for building this!

Is it possible to host a service status page? Maybe use something free like https://betteruptime.com.

I just sent a file and a link. They weren't sent to my Kindle and I didn't get a "File sent" response.

Also clicking on the Telegram link is showing:

Screen Shot 2020-11-05 at 10 26 31 AM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.