vercel / vercel/chat

Handle telegram delete events

Open
#725 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
2.4k
Forks
314
Avg merge
1d 18h
Merged PRs (30d)
63

Description

Problem Statement

Right now if you delete a message from the conversation the persisted state is not updated

Proposed Solution

listen for updateDeleteMessages event to remove deleted messages from persisted state

Alternatives Considered

No response

Use Case

Priority

Important

Contribution
  • I am willing to help implement this feature
Additional Context

Reference: https://core.telegram.org/api/updates#message-id-sequences

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the conversation persistence code and the handler for Telegram updates, then trace how message state is stored and updated. Use the Telegram updateDeleteMessages event as the reference; done means deleted messages are removed from persisted state and the relevant tests cover the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.