From 7c8ca8646f8cc9b5a67a41b3e9d654ed38264b1f Mon Sep 17 00:00:00 2001 From: milarin Date: Sun, 15 Jan 2023 21:06:48 +0100 Subject: [PATCH] default telegram message pattern improved --- envvars.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/envvars.go b/envvars.go index d207d2d..540b466 100644 --- a/envvars.go +++ b/envvars.go @@ -19,11 +19,10 @@ var ( template.New("anime-episode-filepath-pattern").Parse, ) - TelegramDownloadMessagePatternStr = logic.EscSeqReplacer.Replace(envvars.String("TELEGRAM_DOWNLOAD_MESSAGE_PATTERN", `Download started\n{{.Anime.Title.UserPreferred}}第{{.Episode}}話`)) + TelegramBotToken = envvars.String("TELEGRAM_API_TOKEN", "") + TelegramChatID = envvars.Int64("TELEGRAM_CHAT_ID", 0) + TelegramDownloadMessagePatternStr = logic.EscSeqReplacer.Replace(envvars.String("TELEGRAM_DOWNLOAD_MESSAGE_PATTERN", `Download started\n\n{{.Title.UserPreferred}} episode {{.Episode}}`)) TelegramDownloadMessagePattern = template.Must(template.New("telegram-download-message-pattern").Parse(TelegramDownloadMessagePatternStr)) DownloadAll = envvars.Bool("DOWNLOAD_ALL_ANIMES", false) - - TelegramBotToken = envvars.String("TELEGRAM_API_TOKEN", "") - TelegramChatID = envvars.Int64("TELEGRAM_CHAT_ID", 0) )