NullDev / Static-Post-Bot

:satellite: Telegram Bot for making posts to a static website
Apache License 2.0
6 stars 1 forks source link
dom dom-manipulation nodejs nulldev post static-site telegram telegram-bot

Static Post Bot


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.

How it works and what it does:

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/

Additional Features

Install instructions:

//TODO

Config:

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 :smile_cat:

Screenshots

(click the pictures for full size)