Files
aleesa-telegram/README.md
2022-01-28 17:32:31 +03:00

1.5 KiB

Aleesa-Telegram-bot - Telegram chatty bot

About

It is based on Perl modules Telegram::Bot and Hailo as conversation generator.

I have to fork Telegram::Bot and update it according to features appeared in Telegram Bot API v5. Also, I decide to rename it to avoid collision in the future, now it is Teapot::Bot and is bundled with bot. When lib becomes mature enough, maybe I release it separately.

Bot config located in data/config.json, sample config provided as data/sample_config.json.

Bot can be run via bin/aleesa-telegram-bot and acts as daemon (double fork() and detaches stdio).

Installation

In order to run this application, you need to "bootstrap" it - download and build all required dependencies and libraries.

You'll need perl-5.18 or newer, "Development Tools" or similar group of packages, perl, perl-devel, perl-local-lib, perl-app-cpanm, sqlite-devel, zlib-devel, openssl-devel, libdb4-devel (Berkeley DB devel), make, hiredis-devel.

After installing required dependencies it is possible to run:


bash bootstrap.sh

and all libraries should be downloaded, built, tested and installed.

Running

This bot does not ultilize webhooks, so in order to run it only well internet connection is required, no public-available ip address is needed.