Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fernvenue/summarize-telegram-bot
A Telegram bot that can summarize content from link.
https://github.com/fernvenue/summarize-telegram-bot
bot summarize summarize-bot telegram telegram-bot
Last synced: 19 days ago
JSON representation
A Telegram bot that can summarize content from link.
- Host: GitHub
- URL: https://github.com/fernvenue/summarize-telegram-bot
- Owner: fernvenue
- License: bsd-3-clause
- Created: 2024-06-07T14:47:22.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-06-07T17:21:50.000Z (7 months ago)
- Last Synced: 2024-06-08T16:35:50.673Z (7 months ago)
- Topics: bot, summarize, summarize-bot, telegram, telegram-bot
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Summarize Telegram Bot
A Telegram bot that can summarize content from link.
## TODO
- [x] 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](./.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](./summarize-telegram-bot.service) 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.
```