From 0aef51f242f712d3ad13a8cdcc0705969754c680 Mon Sep 17 00:00:00 2001 From: Ayaan Zaidi Date: Tue, 17 Feb 2026 23:02:33 +0530 Subject: [PATCH] style: format telegram import order openclaw#19257 thanks @akramcodez --- src/telegram/bot-native-command-menu.ts | 2 +- src/telegram/bot-native-commands.ts | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/telegram/bot-native-command-menu.ts b/src/telegram/bot-native-command-menu.ts index f0a02de2abb..5528fd06ff7 100644 --- a/src/telegram/bot-native-command-menu.ts +++ b/src/telegram/bot-native-command-menu.ts @@ -1,9 +1,9 @@ import type { Bot } from "grammy"; -import type { RuntimeEnv } from "../runtime.js"; import { normalizeTelegramCommandName, TELEGRAM_COMMAND_NAME_PATTERN, } from "../config/telegram-custom-commands.js"; +import type { RuntimeEnv } from "../runtime.js"; import { withTelegramApiErrorLogging } from "./api-logging.js"; export const TELEGRAM_MAX_COMMANDS = 100; diff --git a/src/telegram/bot-native-commands.ts b/src/telegram/bot-native-commands.ts index 15241918892..1448d6c8183 100644 --- a/src/telegram/bot-native-commands.ts +++ b/src/telegram/bot-native-commands.ts @@ -1,16 +1,6 @@ import type { Bot, Context } from "grammy"; -import type { CommandArgs } from "../auto-reply/commands-registry.js"; -import type { OpenClawConfig } from "../config/config.js"; -import type { ChannelGroupPolicy } from "../config/group-policy.js"; -import type { - ReplyToMode, - TelegramAccountConfig, - TelegramGroupConfig, - TelegramTopicConfig, -} from "../config/types.js"; -import type { RuntimeEnv } from "../runtime.js"; -import type { TelegramContext } from "./bot/types.js"; import { resolveChunkMode } from "../auto-reply/chunk.js"; +import type { CommandArgs } from "../auto-reply/commands-registry.js"; import { buildCommandTextFromArgs, findCommandByNativeName, @@ -24,12 +14,20 @@ import { dispatchReplyWithBufferedBlockDispatcher } from "../auto-reply/reply/pr import { listSkillCommandsForAgents } from "../auto-reply/skill-commands.js"; import { resolveCommandAuthorizedFromAuthorizers } from "../channels/command-gating.js"; import { createReplyPrefixOptions } from "../channels/reply-prefix.js"; +import type { OpenClawConfig } from "../config/config.js"; +import type { ChannelGroupPolicy } from "../config/group-policy.js"; import { resolveMarkdownTableMode } from "../config/markdown-tables.js"; import { normalizeTelegramCommandName, resolveTelegramCustomCommands, TELEGRAM_COMMAND_NAME_PATTERN, } from "../config/telegram-custom-commands.js"; +import type { + ReplyToMode, + TelegramAccountConfig, + TelegramGroupConfig, + TelegramTopicConfig, +} from "../config/types.js"; import { danger, logVerbose } from "../globals.js"; import { getChildLogger } from "../logging.js"; import { getAgentScopedMediaLocalRoots } from "../media/local-roots.js"; @@ -40,6 +38,7 @@ import { } from "../plugins/commands.js"; import { resolveAgentRoute } from "../routing/resolve-route.js"; import { resolveThreadSessionKeys } from "../routing/session-key.js"; +import type { RuntimeEnv } from "../runtime.js"; import { withTelegramApiErrorLogging } from "./api-logging.js"; import { firstDefined, isSenderAllowed, normalizeAllowFromWithStore } from "./bot-access.js"; import { @@ -59,6 +58,7 @@ import { resolveTelegramGroupAllowFromContext, resolveTelegramThreadSpec, } from "./bot/helpers.js"; +import type { TelegramContext } from "./bot/types.js"; import { evaluateTelegramGroupBaseAccess, evaluateTelegramGroupPolicyAccess,