renamed telegram message pattern
This commit is contained in:
parent
221339d580
commit
f6fa27111b
@ -19,7 +19,7 @@ var (
|
|||||||
TelegramBotToken = envvars.String("TELEGRAM_API_TOKEN", "")
|
TelegramBotToken = envvars.String("TELEGRAM_API_TOKEN", "")
|
||||||
TelegramChatID = envvars.Int64("TELEGRAM_CHAT_ID", 0)
|
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}}`))
|
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) {
|
Uid = envvars.Object("UID", 1000, func(s string) (int, error) {
|
||||||
if uid, err := strconv.Atoi(s); err == nil {
|
if uid, err := strconv.Atoi(s); err == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user