fix(command): expose history in chat command menus

Made-with: Cursor
This commit is contained in:
Xubin Ren
2026-04-27 18:23:35 +08:00
committed by Xubin Ren
parent 8ed10ac7df
commit 2b886ffd1f
5 changed files with 47 additions and 2 deletions
+1
View File
@@ -195,6 +195,7 @@ if DISCORD_AVAILABLE:
("stop", "Stop the current task", "/stop"),
("restart", "Restart the bot", "/restart"),
("status", "Show bot status", "/status"),
("history", "Show recent conversation messages", "/history"),
)
for name, description, command_text in commands:
+9 -1
View File
@@ -12,7 +12,14 @@ from typing import Any, Literal
from loguru import logger
from pydantic import Field
from telegram import BotCommand, InlineKeyboardButton, InlineKeyboardMarkup, ReactionTypeEmoji, ReplyParameters, Update
from telegram import (
BotCommand,
InlineKeyboardButton,
InlineKeyboardMarkup,
ReactionTypeEmoji,
ReplyParameters,
Update,
)
from telegram.error import BadRequest, NetworkError, TimedOut
from telegram.ext import Application, CallbackQueryHandler, ContextTypes, MessageHandler, filters
from telegram.request import HTTPXRequest
@@ -253,6 +260,7 @@ class TelegramChannel(BaseChannel):
BotCommand("stop", "Stop the current task"),
BotCommand("restart", "Restart the bot"),
BotCommand("status", "Show bot status"),
BotCommand("history", "Show recent conversation messages"),
BotCommand("dream", "Run Dream memory consolidation now"),
BotCommand("dream_log", "Show the latest Dream memory change"),
BotCommand("dream_restore", "Restore Dream memory to an earlier version"),