renamed telegram message pattern

This commit is contained in:
milarin 2023-01-16 00:46:47 +01:00
parent 221339d580
commit f6fa27111b

View File

@ -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 {