MCPcopy Index your code
hub / github.com/dudynets/Telegram-Summarize-Bot

github.com/dudynets/Telegram-Summarize-Bot @v0.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.0.1 ↗ · + Follow
9 symbols 47 edges 7 files 3 documented · 33% updated 1y agov0.0.1 · 2024-02-17★ 753 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

drawing

Telegram Summarize Bot

A Telegram bot that summarizes messages from a chat.

Developed by Oleksandr Dudynets

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

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=<your-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 License. See LICENSE for more information.

Core symbols most depended-on inside this repo

nano_to_seconds
called by 4
src/helpers/nano_to_seconds.py
main
called by 1
src/app.py
get_chat_history
called by 1
src/core/get_chat_history.py
save_message
called by 1
src/core/save_message.py
replaceMessage
called by 1
src/core/save_message.py
summarize
called by 1
src/core/summarize.py
message_handler
called by 0
src/app.py
summarize_handler
called by 0
src/app.py

Shape

Function 9

Languages

Python100%

Modules by API surface

src/app.py4 symbols
src/core/save_message.py2 symbols
src/helpers/nano_to_seconds.py1 symbols
src/core/summarize.py1 symbols
src/core/get_chat_history.py1 symbols

For agents

$ claude mcp add Telegram-Summarize-Bot \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page