Meilleur affichage des citations sur les réponses inline

This commit is contained in:
Antoine Bartuccio 2020-05-06 01:04:13 +02:00
parent 930386892d
commit a3045bf915
Signed by: klmp200
GPG Key ID: E7245548C53F904B
1 changed files with 7 additions and 2 deletions

9
bot.go
View File

@ -118,10 +118,15 @@ func main() {
url := fmt.Sprintf("%s/%s", cfg.Domain, sound.File)
log.Println(url)
results[i] = &tb.AudioResult{
URL: url,
Caption: sound.Episode,
URL: url,
Caption: fmt.Sprintf(
"<i>%s</i>\n\n%s",
sound.Episode,
sound.Title,
),
Title: sound.Title,
Performer: sound.Character,
ParseMode: tb.ModeHTML,
}
results[i].SetResultID(strconv.Itoa(i))
}