This is a simple bot that sends PacktPub's current free ebook offer to a Telegram chat.
On unix based systems, run ./build.sh
on the root of the project.
This bot expects a config.json
file to be present at the same directory as itself, with the following contents:
{
"token": "<your-bot-token>",
"chat_id": <the-chat-id-to-send-the-message-to>,
"use_eu_url": true/false
}
Note: The use_eu_url
flag changes the message's link to the EU free offers website instead.
This bot does not run automatically, but you can configure a service in you operating system of choice to run it periodically.