Skip to content

Conversation

@magicxor
Copy link
Owner

@magicxor magicxor commented Oct 2, 2025

Extends the bot's functionality to handle group chats, introducing specific rules for brevity in responses within group contexts.

This change ensures the bot provides concise answers by default in group chats, while still allowing users to request more detailed information when needed.

It also addresses an issue where group chats were not handled differently, leading to overly verbose responses.

Extends the bot's functionality to handle group chats, introducing specific rules for brevity in responses within group contexts.

This change ensures the bot provides concise answers by default in group chats, while still allowing users to request more detailed information when needed.

It also addresses an issue where group chats were not handled differently, leading to overly verbose responses.
Copilot AI review requested due to automatic review settings October 2, 2025 13:56
@magicxor magicxor self-assigned this Oct 2, 2025
@magicxor magicxor added the enhancement New feature or request label Oct 2, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR extends the Telegram bot's functionality to handle group chats differently from private chats by introducing brevity rules. The main purpose is to ensure the bot provides concise responses by default in group chat contexts while maintaining the ability for users to request detailed information when needed.

Key changes:

  • Added group chat detection logic throughout the message handling pipeline
  • Introduced group-specific system prompt rules emphasizing brevity
  • Modified method signatures to pass group chat context through the entire call chain

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
Pacos/Services/TelegramBotService.cs Detects group chat type and passes it to mention handler
Pacos/Services/GenerativeAi/ChatService.cs Modifies system prompt generation to include group chat rules
Pacos/Services/ChatCommandHandlers/MentionHandler.cs Updates method signatures to propagate group chat context
Pacos/Constants/Const.cs Adds group chat-specific brevity rules and updates existing prompt

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@magicxor magicxor merged commit fa6576f into staging Oct 2, 2025
2 checks passed
@magicxor magicxor deleted the feature/group-chat-brief-msg branch October 2, 2025 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants