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)
}