anthropics / anthropics/claude-code

Telegram channel plugin: forum Topics support (message_thread_id in channel meta + reply tool)

Abierto Apto para principiantes
#87,321 0 comentarios 0 reacciones 0 asignados Ver en GitHub
area:plugins enhancement
Lenguaje dominante
Python
Estrellas
145k
Forks
23.1k
Métricas de merge de PR
Métricas de PR pendientes

Descripción

## Feature request for the official telegram channel plugin

Telegram supergroups with **Topics** (forums) are a natural UI for multi-session workflows: one topic per Claude Code session, the topics list as a session browser. The official telegram plugin currently makes this impossible:

- inbound messages drop `message_thread_id`, so the session cannot tell which topic the user wrote in;
- the `reply` tool has no way to post into a topic — answers land in General.

## Proposed change

Tiny and backward compatible (+14/−4 in server.ts):
1. include `message_thread_id` in the `` meta when `is_topic_message`;
2. accept optional `message_thread_id` in `reply` and pass it to sendMessage/sendPhoto/sendDocument;
3. one sentence in the instructions text telling the model to echo the thread id back.

A ready patch exists and has been running in production for days against a live bot (macOS/bun; verified topic routing incl. chunked replies and attachments, DM behavior unchanged): https://github.com/ipauler/claude-plugins-official/commit/f777c0c49a5eae431aeca4cf08564a77f007903e — it was submitted as anthropics/claude-plugins-official#5391 and auto-closed by policy (team-members-only repo), so filing it here as requested by the bot.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Start in server.ts and review the linked commit for the Telegram channel plugin's inbound metadata and reply handling. Check the sendMessage, sendPhoto, and sendDocument paths, then verify that topic replies and attachments preserve message_thread_id while direct-message behavior remains unchanged.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
typescript
Área
api, backend
Tipo de issue
Nueva funcionalidad
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Activo
Claridad
Bien especificado
Aptitud para principiantes
78/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.