Static Post Bot
1.0.0
Telegram Bot for making posts to a static website
This was rather an test project for DOM Manipulation from NodeJS.
Not suitable for production/deployment.
If you send the bot a message and you have permission to perform actions, you will be prompted with a menu where you can
Once an option is clicked, just follow the instructions of the bot.
Posts consist of an image and a text.
The pictures can be enlarged on click.
Here is a live demo to see what it looks like:
https://nulldev.github.io/Static-Post-Bot/public_html/
//TODO
The config is rather self explaining.
It can be found here.
Option | Explanation |
---|---|
telegram_token | Your Telegram-Bot API Key/Token |
admins | Array of User ID's who are allowed to use the bot |
path_to_html | Path to the HTML file where the posts will be applied to |
allowed_image_types | Array of supported file extenson for images |
markdown | Should all messages parsed as markdown? (E.g. Parse *text* as text) |
everything after markdown |
All other config entries are just the messages the bot sends. They can be customized. |
Thats it pretty much ?
(click the pictures for full size)