Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dudynets/telegram-summarize-bot
A Telegram bot that summarizes messages from a chat using AI.
https://github.com/dudynets/telegram-summarize-bot
llama2-13b ollama summarizer telegram
Last synced: 3 months ago
JSON representation
A Telegram bot that summarizes messages from a chat using AI.
- Host: GitHub
- URL: https://github.com/dudynets/telegram-summarize-bot
- Owner: dudynets
- License: mit
- Created: 2024-02-17T22:31:27.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-07-17T20:50:35.000Z (7 months ago)
- Last Synced: 2024-07-18T01:08:39.057Z (7 months ago)
- Topics: llama2-13b, ollama, summarizer, telegram
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 16
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Telegram Summarize Bot
A Telegram bot that summarizes messages from a chat.
> Developed by [Oleksandr Dudynets](https://dudynets.dev)
## Overview
When you add the bot to a chat, it start listening to all text messages and save them to a history file.
Then, when any user replies to some message with the command `/summarize`, the bot will summarize all messages that were sent since the replied message.## Getting Started
### Prerequisites
- [Python](https://www.python.org/)
- [Ollama](https://ollama.com/)
- [Compatible model from Ollama's library](https://ollama.com/library) (e.g. `llama2:13b`)### Installation and Usage
1. Clone the repository
```sh
git clone https://github.com/dudynets/Telegram-Summarize-Bot
```
2. Install the required packages
```sh
pip install -r requirements.txt
```
3. Create a `.env` file in the root directory and add the following environment variables:
```env
TELEGRAM_BOT_TOKEN=
```
4. Run the bot
```sh
python app.py
```
5. Add the bot to a group chat, send some messages and try to summarize them using the `/summarize` command.## License
Distributed under the [MIT](https://choosealicense.com/licenses/mit/) License.
See [LICENSE](LICENSE) for more information.