From c7715f0e7f656f22eb32c9329ebc2cf6342e2682 Mon Sep 17 00:00:00 2001 From: ISSEI <46990203+MosaIssei@users.noreply.github.com> Date: Tue, 28 Mar 2023 09:40:02 +0330 Subject: [PATCH] Update tgbot.go --- web/service/tgbot.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/service/tgbot.go b/web/service/tgbot.go index e5524781..9608e79a 100644 --- a/web/service/tgbot.go +++ b/web/service/tgbot.go @@ -117,14 +117,14 @@ func (t *Tgbot) answerCommand(message *tgbotapi.Message, chatId int64, isAdmin b case "help": msg = "This bot is providing you some specefic data from the server.\n\n Please choose:" case "start": - msg = "Hello " + message.From.FirstName + " 👋" + msg = "سلام " + message.From.FirstName + " 👋" if isAdmin { hostname, _ := os.Hostname() msg += "\nWelcome to " + hostname + " management bot" } - msg += "\n\nI can do some magics for you, please choose:" + msg += "\n\nچه کمکی میتونم بکنم:" case "status": - msg = "bot is ok ✅" + msg = "ربات در حال کار می باشد✅" case "usage": if len(message.CommandArguments()) > 1 { if isAdmin { @@ -198,8 +198,8 @@ func (t *Tgbot) SendAnswer(chatId int64, msg string, isAdmin bool) { ) var numericKeyboardClient = tgbotapi.NewInlineKeyboardMarkup( tgbotapi.NewInlineKeyboardRow( - tgbotapi.NewInlineKeyboardButtonData("Get Usage", "client_traffic"), - tgbotapi.NewInlineKeyboardButtonData("Commands", "client_commands"), + tgbotapi.NewInlineKeyboardButtonData("میزان استفاده", "client_traffic"), + tgbotapi.NewInlineKeyboardButtonData("کامند ها", "client_commands"), ), ) msgConfig := tgbotapi.NewMessage(chatId, msg)