Skip to content

Fix tg read pagination#97

Merged
yourconscience merged 1 commit into
mainfrom
fix-tg-read-pagination
Jul 2, 2026
Merged

Fix tg read pagination#97
yourconscience merged 1 commit into
mainfrom
fix-tg-read-pagination

Conversation

@yourconscience

Copy link
Copy Markdown
Owner

Summary

  • page large tg read requests through daemon-safe batches
  • add offset-id support to the Telegram read-only daemon
  • document large read behavior and cover batching with a unittest

Tests

  • uv run python -m py_compile tg server.py test_tg.py
  • uv run python -m unittest discover mcp/telegram-readonly
  • git diff --check
  • go test ./cmd/dotagents -skip TestAmpSetupE2E -count=1

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request implements automatic batching and paging for reading Telegram messages via the tg read command. It introduces a maximum batch size of 100 messages per call, adds support for an optional offset_id parameter to fetch older messages, and updates the CLI, daemon, and MCP tool to support this pagination. It also includes unit tests for the paging logic and updates the documentation across several README and SKILL files. I have no feedback to provide as there are no review comments.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@yourconscience yourconscience merged commit ee9cd7e into main Jul 2, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant