diff --git a/commands/command.go b/commands/command.go index 05cdddb..5c22c3b 100644 --- a/commands/command.go +++ b/commands/command.go @@ -4,5 +4,6 @@ type Command string const ( Start = Command("/start") + Help = Command("/help") Ping = Command("/ping") ) diff --git a/main.go b/main.go index a1cdebc..d13cba6 100644 --- a/main.go +++ b/main.go @@ -66,6 +66,8 @@ func run() { switch command { case commands.Start: _, _ = bot.Send(tgbot.NewMessage(chatID, "Здравствуйте, я ваш дворецкий.")) + case commands.Help: + _, _ = bot.Send(tgbot.NewMessage(chatID, "Вот что я умею:\n\n1) Позвать всех")) case commands.Ping: _, _ = bot.Send(tgbot.NewMessage(chatID, "pong")) }