Telegram bot that creates a text message from the link address of an Ebook.
#request [tags]
Title: [book title]
Author: [book author]
Publisher: [book publisher]
Link: [link received]
The available tags are:
- language tag, such as #italian, #french, etc
- kindle unlimited tag #KU
- audiobook tag #audiobook
- scribd tag #scribd for requests from Scribd
The tags are automatically added based on the url provided.
Example:
#request
Title: Serpentine
Author: Philip Pullman
Publisher: Knopf Books for Young Readers
Link: https://www.amazon.com/His-Dark-Materials-Philip-Pullman-ebook/dp/B08CL2WJ34/ref=tmm_kin_swatch_0?_encoding=UTF8&qid=1634305599&sr=8-1
Given an Amazon link of a Kindle book, it returns the request message.
Amazon supported links:
- amazon.com
- amazon.co.uk
- amazon.ca
- amazon.com.au
- amazon.in
- amazon.it
- amazon.de
- amazon.es
- amazon.fr
Given an Audible link of an audiobook, it returns the request message.
It always add the #audiobook tag.
Given a Scribd link of either an ebook or an audiobook, it returns the request message.
It always add the #scribd tag. If it is an audiobook, it also add the #audiobook tag.
- Cannot get language information from Scribd links
npm run build
Start script
npm start
ย
Define token and run the project
BOT_TOKEN="110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw" npm start
Replace the token in the command, which is invalid, with your own.