1
0
mirror of https://github.com/klmp200/kaamelott-soundboard-telegram-bot synced 2025-07-21 09:19:25 +00:00

Meilleur affichage des citations sur les réponses inline

This commit is contained in:
2020-05-06 01:04:13 +02:00
parent 930386892d
commit a3045bf915

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))
}