#16483: feat(telegram): Process inbound edited_message events
channel: telegram
stale
size: XS
Enables processing of `edited_message` updates from Telegram by adding it to the allowed updates list.\n\nFixes #16467.
<!-- greptile_comment -->
<h3>Greptile Summary</h3>
Added `edited_message` to Telegram's allowed updates list to enable receiving message edit events from the Telegram API. The change follows the same pattern as the existing `message_reaction` update type by conditionally pushing it to the updates array if not already present.
However, there's an incomplete implementation: while the codebase has infrastructure for handling `edited_message` (e.g., `getTelegramSequentialKey` and `buildTelegramUpdateKey` already extract edited messages from context), there's no event handler registered for these updates. In grammY, `message` and `edited_message` are distinct event types - the existing `bot.on("message", ...)` handler won't process edited message updates.
<h3>Confidence Score: 3/5</h3>
- This PR is functionally incomplete but won't break existing functionality
- The change correctly adds `edited_message` to allowed updates using the established pattern, but without a corresponding handler in `bot-handlers.ts`, edited messages will be received and then silently ignored. This incomplete implementation means the feature won't work as intended, though it won't cause errors or break existing message handling.
- No files require special attention - the code is correct but incomplete. A handler needs to be added in `src/telegram/bot-handlers.ts` to process the newly-allowed updates.
<sub>Last reviewed commit: 6e19cd1</sub>
<!-- greptile_other_comments_section -->
<!-- /greptile_comment -->
Most Similar PRs
#23240: feat(telegram): Process inbound edited_message events
by GonzFC · 2026-02-22
90.4%
#7058: feat(telegram): add channel_post handler for broadcast channels
by waifu7498173 · 2026-02-02
76.4%
#14367: feat(telegram): add message read via inbound message store
by michaelquinlan88 · 2026-02-12
74.9%
#9701: feat: handle Signal message edits with [edited] marker (#9656)
by divol89 · 2026-02-05
74.7%
#21898: fix(telegram): auto-detect captionable messages for editMessageCaption
by ptrkstr · 2026-02-20
74.6%
#12950: feat: add Telegram pin/unpin message support
by alex-muradov · 2026-02-09
74.4%
#3174: Telegram: restore types after removing ts-nocheck
by yashgo0018 · 2026-01-28
74.2%
#18533: fix(telegram): handle 'file is too big' error for large files
by MisterGuy420 · 2026-02-16
73.6%
#8310: feat(telegram): Add allowBots support for groups (parity with Disco...
by vishaltandale00 · 2026-02-03
73.4%
#11920: Telegram: create forum topics via message tool (thread-create)
by larsderidder · 2026-02-08
73.3%