Skip to content

Wait for new messages: tg messages wait #24

Closed

Description

@neoromantic

An agent in a conversation has to block until someone replies. Today it can only poll tg sql. telegram-mcp has tools that wait for new events or for a message to settle, plus an event feed.

Proposed:

  • tg messages wait [--chat <peer>] [--after <id>] [--timeout 60] [--settle 3] returns the new messages as JSON, or a documented timeout result.
  • tg messages watch [--chat <peer>] streams NDJSON.

Both read what the daemon stores, so the daemon stays read-only and no second Telegram session is opened. Depends on #15, #16 and #19.

Done when wait returns within about a second of the daemon storing a message, and the timeout result is in the docs.

Activity

  1. added
    enhancement
    on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions