fernvenue / summarize-telegram-bot

A Telegram bot that can summarize content from link.

Repository from Github https://github.comfernvenue/summarize-telegram-botRepository from Github https://github.comfernvenue/summarize-telegram-bot

Summarize Telegram Bot

A Telegram bot that can summarize content from link.

TODO

  • Cache control.
  • Multiple language support.
  • Multiple LLMs support.

Usage

Install

First, clone the repo.

cd /etc
git clone https://github.com/fernvenue/summarize-telegram-bot
cd ./summarize-telegram-bot

Create Python virtual environment.

apt install python3 python3-venv
python3 -m venv venv

Install the requirments.

./venv/bin/pip3 install -r requirements

Create environment file.

vim ./.env

Check .env.example for the details.

Run

Once complete the installation, you can run the bot.

./venv/bin/python3 ./bot.py

If everything goes well, creae a systemd service for bot.

vim /etc/systemd/system/summarize-telegram-bot.service

Check systemd service template for the details, after that, you can run the bot as system service.

systemctl enable summarize-telegram-bot --now
systemctl status summarize-telegram-bot

Commands

You can just send commands list to BotFather to create commands, here's an example list:

help - Show this help message.
purge - Purge the cached content from the database.
summarize - Summarize the message you replied to or the message with a link.

About

A Telegram bot that can summarize content from link.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%