From 4aba14c4c7d57c8e191af92d2c363112a3ac09a1 Mon Sep 17 00:00:00 2001 From: krau <71133316+krau@users.noreply.github.com> Date: Sat, 12 Oct 2024 13:05:12 +0800 Subject: [PATCH] feat: set full commands --- bot/bot.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bot/bot.go b/bot/bot.go index 3aac132..a1eff59 100644 --- a/bot/bot.go +++ b/bot/bot.go @@ -31,6 +31,10 @@ func Init() { logger.L.Info("Bot logged in") _, err = Client.BotsSetBotCommands(&telegram.BotCommandScopeDefault{}, "", []*telegram.BotCommand{ {Command: "start", Description: "开始使用"}, + {Command: "help", Description: "显示帮助"}, + {Command: "silent", Description: "静默模式"}, + {Command: "storage", Description: "设置默认存储位置"}, + {Command: "save", Description: "保存所回复文件"}, }) if err != nil { logger.L.Errorf("Failed to set bot commands: ", err)