telegram-bot-server
An extendable webserver for communication with the Telegram Bot API.
Description
telegram-bot-server is a Node.js powered webserver with MongoDB integration for running your own Telegram Bot as well as a REST API. With the help of Telegram bots you can do quite a lot of useful things.
Just to give some examples:
- Gathering weather information based on your location
- Fetching arrival / departure times of public transportation
- Sending automated messages
- IoT
You can make your bot public for other users or just use it for private purposes.
This application provides one example bot command (ping
) innately but you can easily integrate your own ones into the current system.
See the Commands
section for more information.
Prerequisites
- Node.js
- MongoDB
- Telegram Bot
- Internet connection
Installation
First of all, create a new MongoDB database:
use telegram-api-server
Afterwards, copy the environment file and enter your secret information:
cp .env.example .env
Now…