From b20e040faef0c34c7790c5da8f7efb16a0514793 Mon Sep 17 00:00:00 2001 From: Maksimov V Vladimir Date: Sat, 29 Nov 2025 14:45:32 +0300 Subject: [PATCH] names fix --- telegram_test.go | 2 +- tools.go | 2 +- tools_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/telegram_test.go b/telegram_test.go index 93fdda6..d0911dc 100644 --- a/telegram_test.go +++ b/telegram_test.go @@ -52,7 +52,7 @@ func TestSendTable(t *testing.T) { {"Слива Абрикосы Абрикосы", "100", "10", "0.5"}, } - msg := notify.BuildTelegramHTMLTable(rows) + msg := notify.BuildTelegramTable(rows) conf := loadConfig(t) bot, err := notify.NewTelegram(conf.Token, true) diff --git a/tools.go b/tools.go index 128b5e6..8ada29f 100644 --- a/tools.go +++ b/tools.go @@ -41,7 +41,7 @@ func padLeftVisual(s string, width int) string { } // BuildTelegramBoxTable строит ASCII-таблицу с рамками для Telegram HTML
-func BuildTelegramHTMLTable(rows [][]string) string {
+func BuildTelegramTable(rows [][]string) string {
 	if len(rows) == 0 {
 		return ""
 	}
diff --git a/tools_test.go b/tools_test.go
index 2acfee8..d612300 100644
--- a/tools_test.go
+++ b/tools_test.go
@@ -15,6 +15,6 @@ func TestCreateTable(t *testing.T) {
 		{"Киви", "+200", "1", "-1.2"},
 	}
 
-	msg := notify.BuildTelegramHTMLTable(rows)
+	msg := notify.BuildTelegramTable(rows)
 	log.Println(msg)
 }