Skip to content

feat(telegram): add progress_updates and show_typing settings#210

Open
Smvl7 wants to merge 4 commits intobanteg:masterfrom
Smvl7:feature/configure-progress-updates
Open

feat(telegram): add progress_updates and show_typing settings#210
Smvl7 wants to merge 4 commits intobanteg:masterfrom
Smvl7:feature/configure-progress-updates

Conversation

@Smvl7
Copy link

@Smvl7 Smvl7 commented Feb 15, 2026

feat(telegram): add progress_updates and show_typing configuration settings

Description

This PR introduces new configuration options to the TelegramTransport to allow finer control over user feedback during long-running operations. Currently, the transport defaults to streaming full progress updates, which can be noisy in certain contexts.

Key Changes

  1. Added progress_updates setting:

    • Controls the frequency of progress messages sent to the user.
    • Options:
      • "full" (default): retains existing behavior (streaming updates).
      • "once": sends an initial "working" message but suppresses subsequent intermediate updates until completion.
      • "none": suppresses all progress messages; only the final result is sent.
  2. Added show_typing setting:

    • Type: bool (default: False).
    • When enabled, the bot sends a continuous "typing" action to the chat while processing, providing a subtle visual cue to the user without decluttering the chat history with messages.
  3. Implementation:

  4. Fixes:

    • Improved takopi.__init__ version retrieval to gracefully handle cases where the package is not installed (e.g., during local development), preventing PackageNotFoundError.

Verification


Checklist

  • Tests passed.
  • Code style and linting checked.
  • Backward compatibility maintained (defaults match previous behavior).

@Smvl7 Smvl7 marked this pull request as draft February 15, 2026 22:38
@Smvl7 Smvl7 marked this pull request as ready for review February 15, 2026 23:07
@Smvl7
Copy link
Author

Smvl7 commented Feb 15, 2026

I checked it on my installation, everything is OK 👍

@banteg banteg added the enhancement New feature or request label Mar 2, 2026
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