diff --git a/template/program_message.go b/template/program_message.go index 147f3cc..b4b1c65 100644 --- a/template/program_message.go +++ b/template/program_message.go @@ -13,11 +13,11 @@ type programMessageTemplateArgs struct { } const ( - programMessageTemplateString = `{{ .Program.Name }} -{{ .Program.Genre }} -{{ .Program.Description }} -{{ .Service.Name }} -{{ .Program.StartAt |toTimeStr }}~{{ .Program.Duration | toDurationStr }} + programMessageTemplateString = `**{{ .Program.Name }}** +**ジャンル**:{{ .Program.Genre }} +**説明**:{{ .Program.Description }} +**放送局**:{{ .Service.Name }} **放送時間**:{{ .Program.StartAt |toTimeStr }}~{{ .Program.Duration | toDurationStr }} +**番組詳細** {{ .Program.Json | toExtendStr }}` ) diff --git a/template/utilf_func.go b/template/utilf_func.go index 7b8bcc8..da9e10c 100644 --- a/template/utilf_func.go +++ b/template/utilf_func.go @@ -41,7 +41,7 @@ func toExtendStr(j json.RawMessage) string { any := jsoniter.Get(b, "extended") str := "" for _, key := range any.Keys() { - str += fmt.Sprintf("%s:%s\n", key, any.Get(key).ToString()) + str += fmt.Sprintf("**%s**: %s\n", key, any.Get(key).ToString()) } return str }