telegram: move /new command to first position in menu

This commit is contained in:
Javi VC 2026-01-27 21:36:27 +01:00
parent 9883d5d897
commit 761c8a6737

View File

@ -126,6 +126,14 @@ let cachedNativeRegistry: ReturnType<typeof getActivePluginRegistry> | null = nu
function buildChatCommands(): ChatCommandDefinition[] {
const commands: ChatCommandDefinition[] = [
defineChatCommand({
key: "new",
nativeName: "new",
description: "Start a new session.",
textAlias: "/new",
acceptsArgs: true,
category: "session",
}),
defineChatCommand({
key: "help",
nativeName: "help",
@ -395,14 +403,6 @@ function buildChatCommands(): ChatCommandDefinition[] {
acceptsArgs: true,
category: "session",
}),
defineChatCommand({
key: "new",
nativeName: "new",
description: "Start a new session.",
textAlias: "/new",
acceptsArgs: true,
category: "session",
}),
defineChatCommand({
key: "compact",
description: "Compact the session context.",