mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-07-08 22:14:52 +08:00
feat: set full commands
This commit is contained in:
@@ -31,6 +31,10 @@ func Init() {
|
|||||||
logger.L.Info("Bot logged in")
|
logger.L.Info("Bot logged in")
|
||||||
_, err = Client.BotsSetBotCommands(&telegram.BotCommandScopeDefault{}, "", []*telegram.BotCommand{
|
_, err = Client.BotsSetBotCommands(&telegram.BotCommandScopeDefault{}, "", []*telegram.BotCommand{
|
||||||
{Command: "start", Description: "开始使用"},
|
{Command: "start", Description: "开始使用"},
|
||||||
|
{Command: "help", Description: "显示帮助"},
|
||||||
|
{Command: "silent", Description: "静默模式"},
|
||||||
|
{Command: "storage", Description: "设置默认存储位置"},
|
||||||
|
{Command: "save", Description: "保存所回复文件"},
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.L.Errorf("Failed to set bot commands: ", err)
|
logger.L.Errorf("Failed to set bot commands: ", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user