Files
Matthew Lewis ee1c025ea7 fix(telegram): fix DM replies failing with "chat not found" (#214)
* fix(telegram): fix DM replies failing with "chat not found"

postChannelMessage was double-wrapping the channel ID with the
telegram: prefix via encodeThreadId, producing "telegram:telegram:<chatId>".
This caused sendMessage to be called with chat_id "telegram" instead of
the actual chat ID. Pass the channel ID directly to postMessage which
already handles prefix resolution via resolveThreadId.

Made-with: Cursor

* test(telegram): add postChannelMessage tests

Verify channel ID is not double-prefixed and works with both
telegram:-prefixed and raw channel IDs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-10 20:55:25 -07:00
..
2026-01-02 13:56:55 -08:00

Changesets

Hello and welcome! This folder has been automatically generated by @changesets/cli, a build tool that works with multi-package repos, or single-package repos to help you version and publish your code. You can find the full documentation for it in our repository

We have a quick list of common questions to get you started engaging with this project in our documentation