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: 9 months 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 (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-07T17:21:50.000Z (over 1 year ago)
- Last Synced: 2024-12-27T07:34:40.822Z (10 months ago)
- Topics: bot, summarize, summarize-bot, telegram, telegram-bot
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 1
- 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.
```