telegram: move /new command to first position in menu
This commit is contained in:
parent
9883d5d897
commit
761c8a6737
@ -126,6 +126,14 @@ let cachedNativeRegistry: ReturnType<typeof getActivePluginRegistry> | null = nu
|
|||||||
|
|
||||||
function buildChatCommands(): ChatCommandDefinition[] {
|
function buildChatCommands(): ChatCommandDefinition[] {
|
||||||
const commands: ChatCommandDefinition[] = [
|
const commands: ChatCommandDefinition[] = [
|
||||||
|
defineChatCommand({
|
||||||
|
key: "new",
|
||||||
|
nativeName: "new",
|
||||||
|
description: "Start a new session.",
|
||||||
|
textAlias: "/new",
|
||||||
|
acceptsArgs: true,
|
||||||
|
category: "session",
|
||||||
|
}),
|
||||||
defineChatCommand({
|
defineChatCommand({
|
||||||
key: "help",
|
key: "help",
|
||||||
nativeName: "help",
|
nativeName: "help",
|
||||||
@ -395,14 +403,6 @@ function buildChatCommands(): ChatCommandDefinition[] {
|
|||||||
acceptsArgs: true,
|
acceptsArgs: true,
|
||||||
category: "session",
|
category: "session",
|
||||||
}),
|
}),
|
||||||
defineChatCommand({
|
|
||||||
key: "new",
|
|
||||||
nativeName: "new",
|
|
||||||
description: "Start a new session.",
|
|
||||||
textAlias: "/new",
|
|
||||||
acceptsArgs: true,
|
|
||||||
category: "session",
|
|
||||||
}),
|
|
||||||
defineChatCommand({
|
defineChatCommand({
|
||||||
key: "compact",
|
key: "compact",
|
||||||
description: "Compact the session context.",
|
description: "Compact the session context.",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user