1
0
mirror of https://github.com/klmp200/kaamelott-soundboard-telegram-bot synced 2024-05-29 02:49:39 +00:00

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

7
bot.go
View File

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