add /start and /ping commands
This commit is contained in:
@@ -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"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user