openclaw/src/telegram
Siddhant Jain 020fecef5c fix(telegram): answer callback queries immediately to prevent retries
Telegram retries callback queries if they aren't acknowledged quickly.
Previously, answerCallbackQuery was called in a finally block AFTER
processing, which could take several seconds for agent responses.

This change moves answerCallbackQuery to immediately after basic
validation, before any processing begins. This prevents Telegram
from sending duplicate callbacks while the agent is thinking.

Fixes duplicate callback handling when agent processing is slow.
2026-01-21 03:04:28 +00:00
..
bot fix: normalize gateway dev mode detection 2026-01-18 01:08:47 +00:00
accounts.test.ts fix: align channel config schemas and env precedence 2026-01-17 00:43:05 +00:00
accounts.ts CLI: streamline startup paths and env parsing 2026-01-18 23:10:39 +00:00
allowed-updates.ts fix: refine telegram reactions (#964) (thanks @bohdanpodvirnyi) 2026-01-15 17:20:17 +00:00
audit.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
audit.ts fix: normalize gateway dev mode detection 2026-01-18 01:08:47 +00:00
bot-access.ts fix: stabilize ci checks 2026-01-19 00:34:26 +00:00
bot-handlers.ts fix(telegram): answer callback queries immediately to prevent retries 2026-01-21 03:04:28 +00:00
bot-message-context.sender-prefix.test.ts fix: unify inbound sender labels 2026-01-17 05:21:09 +00:00
bot-message-context.ts refactor: normalize cli command hints 2026-01-20 07:43:00 +00:00
bot-message-dispatch.ts fix: scope history injection to pending-only 2026-01-16 23:52:42 +00:00
bot-message.test.ts fix: emit diagnostics across channels 2026-01-21 00:30:34 +00:00
bot-message.ts fix: emit diagnostics across channels 2026-01-21 00:30:34 +00:00
bot-native-commands.ts fix: honor telegram pairing allowlists for native commands 2026-01-18 22:52:00 +00:00
bot-updates.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
bot.create-telegram-bot.accepts-group-messages-mentionpatterns-match-without-botusername.test.ts feat: make inbound envelopes configurable 2026-01-18 18:50:37 +00:00
bot.create-telegram-bot.applies-topic-skill-filters-system-prompts.test.ts fix(security): gate slash commands by sender 2026-01-17 05:25:42 +00:00
bot.create-telegram-bot.blocks-all-group-messages-grouppolicy-is.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
bot.create-telegram-bot.dedupes-duplicate-callback-query-updates-by-update.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
bot.create-telegram-bot.installs-grammy-throttler.test.ts feat: make inbound envelopes configurable 2026-01-18 18:50:37 +00:00
bot.create-telegram-bot.matches-tg-prefixed-allowfrom-entries-case-insensitively.test.ts refactor: prune legacy group prefixes 2026-01-17 08:47:25 +00:00
bot.create-telegram-bot.matches-usernames-case-insensitively-grouppolicy-is.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
bot.create-telegram-bot.routes-dms-by-telegram-accountid-binding.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
bot.create-telegram-bot.sends-replies-without-native-reply-threading.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
bot.media.downloads-media-file-path-no-file-download.test.ts fix(telegram): aggregate split inbound messages 2026-01-15 03:04:59 +00:00
bot.media.includes-location-text-ctx-fields-pins.test.ts test: stabilize slow and flaky tests 2026-01-16 06:24:58 +00:00
bot.test.ts fix: honor telegram pairing allowlists for native commands 2026-01-18 22:52:00 +00:00
bot.ts feat: enable telegram reaction notifications by default 2026-01-16 20:51:42 +00:00
caption.ts refactor: share telegram caption splitting 2026-01-17 03:50:09 +00:00
download.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
download.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
draft-chunking.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
draft-chunking.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
draft-stream.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
fetch.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
format.test.ts fix: telegram html formatting (#435, thanks @RandyVentures) 2026-01-08 02:34:32 +01:00
format.ts Format: apply oxfmt fixes 2026-01-15 01:27:16 +00:00
group-migration.test.ts fix(telegram): migrate group config on supergroup IDs (#906) 2026-01-15 01:10:30 +00:00
group-migration.ts Format: fix report + telegram formatting 2026-01-15 01:27:16 +00:00
index.ts feat: unify provider reaction tools 2026-01-07 04:16:39 +01:00
inline-buttons.test.ts refactor: prune legacy group targets 2026-01-17 09:01:47 +00:00
inline-buttons.ts fix: allow telegram prefixes/topics for inline buttons (#1072) — thanks @danielz1z 2026-01-17 07:49:57 +00:00
monitor.test.ts refactor!: rename chat providers to channels 2026-01-13 08:40:39 +00:00
monitor.ts refactor: centralize concurrency resolution 2026-01-20 10:41:56 +00:00
pairing-store.test.ts fix(security): lock down inbound DMs by default 2026-01-06 17:51:56 +01:00
pairing-store.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
probe.ts fix: normalize gateway dev mode detection 2026-01-18 01:08:47 +00:00
proxy.ts refactor: lint cleanups and helpers 2025-12-23 00:28:55 +00:00
reaction-level.test.ts feat: default telegram reaction level minimal 2026-01-16 20:35:47 +00:00
reaction-level.ts feat: default telegram reaction level minimal 2026-01-16 20:35:47 +00:00
send.caption-split.test.ts chore(auth): rename Claude CLI to Claude Code CLI (#915) 2026-01-14 19:57:42 +00:00
send.preserves-thread-params-plain-text-fallback.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
send.returns-undefined-empty-input.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
send.ts refactor: share telegram caption splitting 2026-01-17 03:50:09 +00:00
sent-message-cache.test.ts fix: lint errors 2026-01-15 17:07:38 +00:00
sent-message-cache.ts fix: lint errors 2026-01-15 17:07:38 +00:00
targets.test.ts refactor: prune legacy group targets 2026-01-17 09:01:47 +00:00
targets.ts refactor: prune legacy group targets 2026-01-17 09:01:47 +00:00
token.test.ts fix: prefer config tokens over env for discord/telegram 2026-01-16 23:13:00 +00:00
token.ts fix: prefer config tokens over env for discord/telegram 2026-01-16 23:13:00 +00:00
update-offset-store.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
update-offset-store.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
voice.test.ts refactor: consolidate reply/media helpers 2026-01-10 02:41:16 +01:00
voice.ts refactor: unify inline directives and media fetch 2026-01-10 03:01:04 +01:00
webhook-set.ts style(telegram): format bot init 2026-01-09 13:57:06 +01:00
webhook.test.ts fix: refine telegram reactions (#964) (thanks @bohdanpodvirnyi) 2026-01-15 17:20:17 +00:00
webhook.ts fix: emit diagnostics across channels 2026-01-21 00:30:34 +00:00