Skip to content

[Documentation] /sync requires Pin Messages; pinning does not appear used in code #30

Closed

Description

@goichiro-y

Note from reporter
I am new to filing issues on GitHub and am not sure whether the length or structure here is appropriate.
Japanese is my first language; I apologize if any wording is awkward. This issue was drafted with AI assistance.

Summary

During Telegram setup, /sync failed until Pin Messages was granted, even though I could not find any pin API usage in the codebase. This note reports that mismatch between runtime checks, docs, and behavior—not to request a reply or ongoing discussion.

Environment (for reference)

  • CursorRemote 0.1.46, Telegram transport under src/server/transports/telegram/
  • Supergroup with Topics; bot as administrator

What I saw

  • Manage Topics and Delete Messages ON, Pin Messages OFF → /sync reported missing Pin Messages
  • After enabling Pin Messages, /sync succeeded; I still did not notice the bot pinning chat messages (forum system messages aside)

Code reference

src/server/transports/telegram/commands.ts (before /sync):

  • Permission help lists Pin Messages (~L113–115)
  • if (!member.can_pin_messages) missing.push('Pin Messages') (~L124)

Search for pinMessage / pin_message in the repo surfaced this check only—not pin calls elsewhere.

Delete Messages does appear used (e.g. deleteMessage for ephemeral activity in base.ts), which makes that requirement understandable.

Documentation reference

Location Pin Messages
README.md Manual Setup (~L238) Only Manage Topics mentioned
docs/setup-guide.md (~L240) Manage Topics, Delete Messages, Pin Messages
/sync error text All three required

Observation (not a support request)

Required permissions, README, setup-guide, and actual API usage may deserve one consistent story (especially whether Pin is needed today). If requiring Pin was leftover from an earlier design, tightening /sync and the docs might help. I do not expect a response; posting this only so the inconsistency is on record.

Possible user impact

Users who prefer not to grant pin rights to bots may be blocked from /sync despite pinning not seeming to be part of current behavior. Mixed docs add friction during first-time setup.

Activity

  1. added a commit that references this issue on Jul 7, 2026
  2. len5ky commented on Jul 7, 2026

    @len5ky
    Owner

    Fixed in v0.1.47: you were right that nothing ever pins — removed both the docs requirement and the dead can_pin_messages check, so /sync no longer asks for Pin Messages at all.

  3. added a commit that references this issue on Nov 4, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions