From f6fa27111bc5fd60072f6cb513760470386b2abd Mon Sep 17 00:00:00 2001 From: milarin Date: Mon, 16 Jan 2023 00:46:47 +0100 Subject: [PATCH] renamed telegram message pattern --- envvars.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/envvars.go b/envvars.go index 2469a2e..f22512d 100644 --- a/envvars.go +++ b/envvars.go @@ -19,7 +19,7 @@ var ( TelegramBotToken = envvars.String("TELEGRAM_API_TOKEN", "") TelegramChatID = envvars.Int64("TELEGRAM_CHAT_ID", 0) TelegramOrganizeMessagePatternStr = logic.EscSeqReplacer.Replace(envvars.String("TELEGRAM_ORGANIZE_MESSAGE_PATTERN", `Download finished\n\n{{.Title.UserPreferred}} episode {{.Episode}}`)) - TelegramOrganizeMessagePattern = template.Must(template.New("telegram-organize-message-pattern").Parse(TelegramOrganizeMessagePatternStr)) + TelegramOrganizeMessagePattern = template.Must(template.New("TELEGRAM_ORGANIZE_MESSAGE_PATTERN").Parse(TelegramOrganizeMessagePatternStr)) Uid = envvars.Object("UID", 1000, func(s string) (int, error) { if uid, err := strconv.Atoi(s); err == nil {