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
9
bot.go
9
bot.go
@ -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))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user