Skip to content

guamoko995/gemini-tg-assistent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gemini-TG-Assistant

License: MIT License: Apache 2.0 Rust 1.92.0

A lightweight, no-nonsense Telegram assistant using Google's Gemini AI. Focused on simplicity, context summarization, and clean architecture.

Project Status

🚀 Work in Progress: For a detailed list of planned features and current progress, please check our Roadmap.

Architecture

The bot leverages a polling mechanism via teloxide to capture incoming updates. All messages, including metadata regarding replies, quotes, and forwards, are persisted in a database to ensure structural context is maintained.

Key components:

  1. Message Processing & Storage: Captures full interaction history, preserving the thread structure and message relationships.
  2. Context Management: On incoming requests (private chats or direct mentions), the system retrieves the relevant thread history from the database.
  3. Summarization Engine: Periodically condenses historical data into summaries to optimize token usage and prevent context window exhaustion.
  4. Model Interaction: The aggregated context, enriched with metadata, is sent to the Gemini API with instructions to continue the dialogue based on the established conversation flow.
  5. Content Filtering: Currently, messages with media are excluded from the processing pipeline, focusing exclusively on textual data.

License

Licensed under either of Apache License 2.0 or MIT at your option.

About

Minimalist Gemini assistant for Telegram chats. Built with Rust.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages