mirror of
https://github.com/klmp200/kaamelott-soundboard-telegram-bot
synced 2024-11-23 08:43:22 +00:00
Meilleur affichage des citations sur les réponses inline
This commit is contained in:
parent
930386892d
commit
a3045bf915
7
bot.go
7
bot.go
@ -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))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user