Skip to content

feat(telegram): add native DM draft streaming with segmented stream results#340

Open
lurenjia534 wants to merge 1 commit intovercel:mainfrom
lurenjia534:main
Open

feat(telegram): add native DM draft streaming with segmented stream results#340
lurenjia534 wants to merge 1 commit intovercel:mainfrom
lurenjia534:main

Conversation

@lurenjia534
Copy link
Copy Markdown

Summary

Add native Telegram DM streaming via sendMessageDraft while preserving Chat SDK's existing post+edit fallback for non-DM threads.

This PR:

  • adds native private-chat draft streaming to the Telegram adapter
  • splits long streamed markdown into Telegram-safe persisted segments
  • retries without parse_mode when Telegram rejects markdown entity parsing
  • exposes segmented native stream results in the chat core
  • updates docs and feature matrices to reflect Telegram DM draft streaming

Test plan

  • pnpm check
  • pnpm typecheck
  • pnpm test:workspace
  • pnpm build

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 6, 2026

@lurenjia534 is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

@lurenjia534
Copy link
Copy Markdown
Author

Ah, I forgot to upload a video showing this PR

screen-20260407-075015-1775519367603-10mb.mp4

's effect it currently only works in private chats, since Telegram's official streaming API only allows us to use it in private conversations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant