Skip to content

A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.

Keep Telegram sends from aborting the long poll

Fei24113d9ea12c5859
diff --git a/ds-bot/src/host/im/platforms/telegram.js b/ds-bot/src/host/im/platforms/telegram.js
index 34f2ed28..142f1c85 100644
--- a/ds-bot/src/host/im/platforms/telegram.js
+++ b/ds-bot/src/host/im/platforms/telegram.js
@@ -37,7 +37,8 @@ export default {
let selfName = ''
const call = async (method, params, { download = false, timeout = 30_000 } = {}) => {
- abort?.abort()
+ // Only stop() aborts the call in flight; a send or a callback answer must not
+ // kill a long poll that is still waiting.
abort = new AbortController()
const timer = setTimeout(() => abort.abort(new Error('timeout')), timeout)
try {