diff options
| author | Kenneth Lien <kenneth@anthropic.com> | 2026-03-20 11:27:09 -0700 |
|---|---|---|
| committer | Kenneth Lien <kenneth@anthropic.com> | 2026-03-20 11:27:09 -0700 |
| commit | 5c58308be4c6f234a90bc93464bc2c065c4a54f0 (patch) | |
| tree | 81c7ce17b9d5c501a04f365599a740644f088a7b /external_plugins/telegram | |
| parent | 90accf6fd2008fe0ee9578ebc088740c3a754d58 (diff) | |
discord/telegram: guide assistant to send new reply on completionkenneth/discord-edit-notif-guidance
Message edits don't trigger push notifications on the user's device.
Update system instructions and edit_message tool description to steer
the assistant toward edit-for-progress + new-reply-on-completion.
Fixes #786
Diffstat (limited to 'external_plugins/telegram')
| -rw-r--r-- | external_plugins/telegram/server.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/external_plugins/telegram/server.ts b/external_plugins/telegram/server.ts index 8acd52a2..19e24414 100644 --- a/external_plugins/telegram/server.ts +++ b/external_plugins/telegram/server.ts @@ -343,7 +343,7 @@ const mcp = new Server( '', 'Messages from Telegram arrive as <channel source="telegram" chat_id="..." message_id="..." user="..." ts="...">. If the tag has an image_path attribute, Read that file — it is a photo the sender attached. Reply with the reply tool — pass chat_id back. Use reply_to (set to a message_id) only when replying to an earlier message; the latest message doesn\'t need a quote-reply, omit reply_to for normal responses.', '', - 'reply accepts file paths (files: ["/abs/path.png"]) for attachments. Use react to add emoji reactions, and edit_message to update a message you previously sent (e.g. progress → result).', + 'reply accepts file paths (files: ["/abs/path.png"]) for attachments. Use react to add emoji reactions, and edit_message for interim progress updates. Edits don\'t trigger push notifications — when a long task completes, send a new reply so the user\'s device pings.', '', "Telegram's Bot API exposes no history or search — you only see messages as they arrive. If you need earlier context, ask the user to paste it or summarize.", '', @@ -391,7 +391,7 @@ mcp.setRequestHandler(ListToolsRequestSchema, async () => ({ }, { name: 'edit_message', - description: 'Edit a message the bot previously sent. Useful for progress updates (send "working…" then edit to the result).', + description: 'Edit a message the bot previously sent. Useful for interim progress updates. Edits don\'t trigger push notifications — send a new reply when a long task completes so the user\'s device pings.', inputSchema: { type: 'object', properties: { |
